/* Locally hosted Cairo variable font. Latin and Arabic subsets share one variable family. */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/cairo-latin-variable.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0102, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/cairo-arabic-variable.woff2") format("woff2");
  unicode-range: U+0020, U+0041, U+00A0, U+00C1, U+0102, U+060C-060D, U+0615, U+061B, U+061F, U+0621-063A, U+0640-0656, U+0658, U+0660-0671, U+0679, U+067E, U+0686, U+0688, U+0691, U+0698, U+06A1, U+06A4, U+06A9, U+06AF, U+06BA, U+06BE, U+06C1-06C3, U+06CC, U+06D2-06D4, U+06F0-06F9, U+FB51, U+FB57-FB59, U+FB67-FB69, U+FB6B-FB6D, U+FB7B-FB7D, U+FB89, U+FB8B, U+FB8D, U+FB8F-FB91, U+FB93-FB95, U+FB9F, U+FBA7-FBA9, U+FBAB-FBAD, U+FBAF, U+FBB1-FBB9, U+FBBD-FBBE, U+FBE8-FBE9, U+FBFD-FBFF, U+FC43-FC44, U+FC64-FC65, U+FC67-FC6B, U+FC6D-FC71, U+FC73-FC77, U+FC79-FC7B, U+FC86-FC87, U+FC8A-FC8B, U+FC8D-FC8F, U+FC91-FC92, U+FC94, U+FC96, U+FCFB-FCFE, U+FD05-FD08, U+FD0D-FD10, U+FD17-FD1A, U+FD21-FD24, U+FD29-FD2C, U+FD3E-FD3F, U+FDF2, U+FE82, U+FE84, U+FE86, U+FE88, U+FE8A-FE8C, U+FE8E, U+FE90-FE92, U+FE94, U+FE96-FE98, U+FE9A-FE9C, U+FE9E-FEA0, U+FEA2-FEA4, U+FEA6-FEA8, U+FEAA, U+FEAC, U+FEAE, U+FEB0, U+FEB2-FEB4, U+FEB6-FEB8, U+FEBA-FEBC, U+FEBE-FEC0, U+FEC2-FEC4, U+FEC6-FEC8, U+FECA-FECC, U+FECE-FED0, U+FED2-FED4, U+FED6-FED8, U+FEDA-FEDC, U+FEDE-FEE0, U+FEE2-FEE4, U+FEE6-FEE8, U+FEEA-FEEC, U+FEEE, U+FEF0, U+FEF2-FEFC;
}

:root {
  color-scheme: light;
  --tf-font: "Cairo", Tahoma, Arial, sans-serif;
  --tf-bg: #fffdfc;
  --tf-surface: #ffffff;
  --tf-surface-alt: #f9f9fb;
  --tf-text: #0e2045;
  --tf-muted: #65718a;
  --tf-border: #e4e3e1;
  --tf-accent: #6C006E;
  --tf-header: #fffdfc;
  --tf-shadow: 0 12px 35px rgba(14, 32, 69, .06);
  --tf-radius: 12px;
  --tf-container: 1300px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tf-bg);
  color: var(--tf-text);
  font-family: var(--tf-font);
  font-size: 15px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--tf-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--tf-container)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--tf-header);
  border-bottom: 1px solid var(--tf-border);
  box-shadow: 0 3px 18px rgba(0,0,0,.025);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.site-branding { flex: 0 0 auto; min-width: 150px; }
.custom-logo { max-height: 54px; width: auto; }
.site-title { color: var(--tf-text); font-size: 25px; font-weight: 800; line-height: 1.2; }
.site-tagline { margin: 3px 0 0; color: var(--tf-muted); font-size: 11px; }
.primary-navigation { flex: 1; }
.menu-list, .menu-list ul, .footer-menu { list-style: none; padding: 0; margin: 0; }
.menu-list { display: flex; align-items: center; gap: 22px; }
.menu-list a { color: var(--tf-text); font-weight: 600; font-size: 13px; }
.menu-list .current-menu-item > a, .menu-list a:hover { color: var(--tf-accent); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-button, .menu-toggle {
  width: 38px; height: 38px; border: 1px solid var(--tf-border);
  background: var(--tf-surface); color: var(--tf-text); border-radius: 50%;
}
.icon-button { font-size: 20px; line-height: 1; }
.menu-toggle { display: none; padding: 9px; }
.menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: currentColor; margin: 4px 0; }
.header-search { padding-block: 0 16px; }
.header-search form, .search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 44px; border: 1px solid var(--tf-border); border-radius: 8px; padding: 8px 14px; background: var(--tf-surface); color: var(--tf-text); }
.search-submit, .button-link {
  border: 0; border-radius: 8px; background: var(--tf-accent); color: #fff;
  padding: 9px 18px; font-weight: 700;
}
.site-shell { min-height: 60vh; padding-block: 30px 60px; }
.content-area { width: 100%; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 38px; align-items: start; }
.main-column { min-width: 0; }
.featured-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  overflow: hidden; background: var(--tf-surface); border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius); box-shadow: var(--tf-shadow); margin-bottom: 46px;
}
.featured-image { display: block; min-height: 300px; background: var(--tf-surface-alt); }
.featured-image img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.featured-copy { padding: clamp(24px, 4vw, 48px); align-self: center; }
.eyebrow { display: inline-block; color: var(--tf-accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.featured-copy h1 { margin: 10px 0 12px; font-size: clamp(25px, 3vw, 38px); line-height: 1.45; }
.featured-copy h1 a { color: var(--tf-text); }
.featured-copy p { color: var(--tf-muted); margin: 0 0 20px; }
.text-link { font-size: 13px; font-weight: 800; }
.homepage-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.homepage-heading h2 { margin: 2px 0 0; font-size: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { min-width: 0; overflow: hidden; background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--tf-shadow); }
.card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tf-surface-alt); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .card-image img { transform: scale(1.025); }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tf-muted); font-size: 42px; font-weight: 800; }
.card-content { padding: 16px 17px 18px; }
.card-categories, .article-categories { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; font-weight: 700; }
.card-categories a, .article-categories a { color: var(--tf-accent); }
.card-title { margin: 8px 0; font-size: 17px; line-height: 1.55; }
.card-title a { color: var(--tf-text); }
.card-excerpt { margin: 0; color: var(--tf-muted); font-size: 12px; line-height: 1.8; }
.card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--tf-muted); font-size: 11px; margin-top: 14px; }
.site-sidebar { min-width: 0; }
.widget { background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 18px; margin-bottom: 20px; }
.widget-title { margin: 0 0 13px; font-size: 16px; }
.topic-list, .recent-list { list-style: none; padding: 0; margin: 0; }
.topic-list li + li, .recent-list li + li { border-top: 1px solid var(--tf-border); }
.topic-list a, .recent-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--tf-text); font-size: 12px; }
.topic-list span { color: var(--tf-muted); }
.archive-header { margin-bottom: 25px; }
.archive-header h1 { margin: 4px 0 12px; font-size: 28px; }
.archive-description { color: var(--tf-muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--tf-muted); font-size: 11px; margin-bottom: 18px; }
.breadcrumbs a { color: var(--tf-muted); }
.article-main { min-width: 0; }
.article-layout { grid-template-columns: minmax(0, 780px) 280px; justify-content: space-between; }
.article-header { margin-bottom: 18px; }
.article-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.45; margin: 8px 0 12px; letter-spacing: -.02em; }
.article-featured-image { margin: 22px 0 0; border-radius: var(--tf-radius); overflow: hidden; background: var(--tf-surface-alt); }
.article-featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-tools { margin: 14px 0; }
.share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-links a, .share-links button { border: 1px solid var(--tf-border); background: var(--tf-surface); color: var(--tf-text); border-radius: 20px; padding: 5px 12px; font-size: 11px; }
.share-links .is-saved { color: var(--tf-accent); border-color: var(--tf-accent); }
.table-of-contents { margin: 22px 0; padding: 18px 20px; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); background: var(--tf-surface-alt); }
.table-of-contents[hidden] { display: none; }
.toc-title { display: block; margin-bottom: 8px; }
.table-of-contents ol { margin: 0; padding-inline-start: 22px; }
.table-of-contents li { padding: 2px 0; font-size: 13px; }
.table-of-contents .toc-subitem { margin-inline-start: 16px; font-size: 12px; }
.entry-content { font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin: 1.8em 0 .65em; font-size: 27px; line-height: 1.5; }
.entry-content h3 { margin: 1.5em 0 .55em; font-size: 22px; line-height: 1.5; }
.entry-content h4 { font-size: 18px; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-inline-start: 4px solid var(--tf-accent); background: var(--tf-surface-alt); border-radius: 8px; }
.entry-content .table-scroll-wrapper { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; margin: 1.25em 0; }
.entry-content .table-scroll-wrapper:focus-visible { outline: 2px solid var(--tf-accent); outline-offset: 3px; }
.entry-content table { width: max-content; min-width: 100%; max-width: none; border-collapse: collapse; display: table; }
.entry-content th, .entry-content td { min-width: 110px; }
.entry-content th, .entry-content td { border: 1px solid var(--tf-border); padding: 9px 12px; }
.entry-content pre, .entry-content code { direction: ltr; text-align: left; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--tf-surface-alt); border-radius: 8px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.7em; }
.article-footer { border-top: 1px solid var(--tf-border); margin-top: 30px; padding-top: 20px; }
.article-tags { margin-bottom: 14px; }
.article-tags a { display: inline-block; margin: 0 0 6px 6px; padding: 3px 9px; border-radius: 20px; background: var(--tf-surface-alt); color: var(--tf-muted); font-size: 11px; }
.related-posts { margin-top: 38px; }
.related-posts h2 { font-size: 22px; margin-bottom: 16px; }
.post-grid--related { grid-template-columns: repeat(3, minmax(0,1fr)); }
.page-article { max-width: 820px; margin-inline: auto; }
.page-header h1 { font-size: 34px; }
.pagination, .nav-links { margin-top: 28px; display: flex; justify-content: center; gap: 7px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--tf-border); border-radius: 8px; color: var(--tf-text); }
.page-numbers.current { background: var(--tf-accent); color: #fff; border-color: var(--tf-accent); }
.comments-area { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--tf-border); }
.comment-list { padding-inline-start: 22px; }
.error-page { text-align: center; max-width: 650px; margin: 50px auto; }
.error-code { font-size: 90px; font-weight: 800; line-height: 1; color: var(--tf-accent); }
.error-page .search-form { margin: 20px auto; max-width: 480px; }
.site-footer { border-top: 1px solid var(--tf-border); background: var(--tf-surface-alt); }
.footer-inner { padding-block: 35px 18px; }
.footer-brand > a { color: var(--tf-text); font-size: 20px; font-weight: 800; }
.footer-brand p { color: var(--tf-muted); font-size: 12px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-menu a { color: var(--tf-muted); font-size: 12px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 24px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--tf-border); margin-top: 25px; padding-top: 14px; color: var(--tf-muted); font-size: 11px; }
.skip-link, .screen-reader-text, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; inset-inline-start: 10px; width: auto; height: auto; clip: auto; padding: 10px; background: var(--tf-surface); z-index: 9999; }
@media (max-width: 1050px) {
  .content-layout, .article-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 24px; }
  .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .menu-list { gap: 14px; }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--tf-container)); }
  .header-inner { min-height: 64px; gap: 12px; }
  .site-branding { margin-inline-end: auto; }
  .site-title { font-size: 21px; }
  .menu-toggle { display: block; order: 3; }
  .header-actions { order: 2; }
  .primary-navigation { display: none; position: absolute; inset-inline: 0; top: 100%; padding: 12px 18px 18px; background: var(--tf-header); border-bottom: 1px solid var(--tf-border); box-shadow: var(--tf-shadow); }
  .primary-navigation.is-open { display: block; }
  .menu-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .menu-list li a { display: block; padding: 9px 0; }
  .featured-hero { grid-template-columns: 1fr; }
  .featured-image, .featured-image img { min-height: 0; aspect-ratio: 16 / 9; }
  .featured-copy { padding: 22px; }
  .content-layout, .article-layout { grid-template-columns: 1fr; }
  .site-sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .widget { margin-bottom: 0; }
  .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .card-content { padding: 12px; }
  .card-title { font-size: 14px; }
  .card-excerpt { display: none; }
  .card-meta { gap: 8px; font-size: 10px; }
  .article-title { font-size: 27px; }
  .entry-content { font-size: 15px; }
  .entry-content h2 { font-size: 23px; }
  .entry-content h3 { font-size: 19px; }
}
@media (max-width: 430px) {
  .post-grid, .post-grid--related, .site-sidebar, .footer-widgets { grid-template-columns: 1fr; }
  .homepage-heading { align-items: center; }
  .homepage-heading h2 { font-size: 21px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Preserve and style existing Gutenberg/Newspack homepage sections during migration. */
.homepage-content { width: 100%; }
.homepage-content > * { max-width: 100%; }
.homepage-content .wp-block-newspack-blocks-carousel,
.homepage-content .wp-block-newspack-blocks-homepage-articles { margin-block: 24px 36px; }
.homepage-content .wp-block-newspack-blocks-carousel { overflow: hidden; border-radius: var(--tf-radius); }
.homepage-content .wp-block-newspack-blocks-homepage-articles .article-section-title { font-size: 24px; margin-block: 26px 16px; }
.homepage-content .wp-block-newspack-blocks-homepage-articles article { border-bottom: 1px solid var(--tf-border); padding-block: 14px; }
.homepage-content .wp-block-newspack-blocks-homepage-articles .entry-title { font-size: 17px; line-height: 1.6; }
.homepage-content .wp-block-newspack-blocks-homepage-articles .entry-title a { color: var(--tf-text); }
.homepage-content .wp-block-newspack-blocks-homepage-articles .entry-meta { color: var(--tf-muted); font-size: 11px; }
.homepage-content .wp-block-separator { border-color: var(--tf-border); margin-block: 28px; }


/* Thaqafati editorial refinements — v0.1.3 */
:root {
  color-scheme: light;
  --tf-accent: #6C006E;
  --tf-header: #6C006E;
}
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999;
  background: #6C006E !important;
  background-color: #6C006E !important;
  border-bottom: 0;
  box-shadow: 0 4px 18px rgba(36, 0, 38, .16);
}
.header-inner { min-height: 68px; }
.site-title, .menu-list a, .menu-list .current-menu-item > a,
.menu-list a:hover { color: #fff; }
.site-title { letter-spacing: -.02em; }
.custom-logo { filter: brightness(0) invert(1); }
.icon-button, .menu-toggle {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.32);
}
.menu-toggle span:not(.screen-reader-text) { background: #fff; }
.header-search {
  background: #6C006E;
  border: 0;
  padding-block: 0 16px;
}
.header-search .search-field {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
}
.header-search .search-field::placeholder { color: rgba(255,255,255,.75); }
.header-search .search-submit { background: #fff; color: #6C006E; }
.menu-list .current-menu-item > a,
.menu-list a:hover { opacity: .82; }
.article-header { margin-bottom: 12px; }
.article-title {
  max-width: 100%;
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1.3;
  letter-spacing: -.025em;
  margin: 7px 0 8px;
  text-wrap: pretty;
}
.article-meta { margin-top: 8px; gap: 10px; }
.article-featured-image { margin: 16px 0 0; }
.article-featured-image img { aspect-ratio: 16 / 9; }
.article-tools { margin: 10px 0 14px; }
.share-links { gap: 9px; }
.share-links .share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--tf-border);
  border-radius: 50%;
  background: var(--tf-surface);
  color: var(--tf-text);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.share-links .share-icon:hover {
  color: var(--tf-accent);
  border-color: var(--tf-accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.share-links .share-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.share-links .bookmark-toggle[aria-pressed="true"] {
  color: var(--tf-accent);
  border-color: var(--tf-accent);
  background: rgba(108,0,110,.06);
}
.table-of-contents {
  margin: 18px 0 24px;
  padding: 18px 22px;
  background: #faf7fa;
  border: 1px solid #eaddea;
  border-radius: 14px;
}
.table-of-contents .toc-title { font-size: 17px; font-weight: 800; }
.table-of-contents ol { padding-inline-start: 22px; }
.table-of-contents li { padding: 3px 0; font-size: 13px; }
.table-of-contents .toc-subitem { display: none; }
.entry-content {
  font-size: 16px;
  line-height: 1.88;
}
.entry-content p { margin: 0 0 .82em; }
.entry-content figure { margin: 1em 0 1.15em; }
.entry-content h2 {
  margin: 1.45em 0 .5em;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.4;
}
.entry-content h3 {
  margin: 1.1em 0 .4em;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.45;
  font-weight: 700;
}
.entry-content h4 { font-size: 16px; }
.entry-content img { border-radius: 10px; }
.references-box {
  margin: 30px 0 18px;
  padding: 22px 24px;
  border: 1px solid #e7d7e8;
  border-inline-start: 4px solid #6C006E;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf7fb 0%, #f6eff7 100%);
  box-shadow: 0 8px 24px rgba(75, 0, 77, .045);
}
.references-box h2,
.references-box h3 {
  margin: 0 0 12px !important;
  font-size: 21px !important;
}
.references-box p { margin: 0 0 9px; font-size: 13px; }
.references-box a { overflow-wrap: anywhere; }
.related-posts { margin-top: 34px; }
.related-posts h2 { font-size: 21px; margin-bottom: 16px; }
.post-grid--related { grid-template-columns: repeat(3, minmax(0,1fr)); }
.post-grid--related .card-title { font-size: 15px; line-height: 1.55; }
.widget p { margin: 0; }
/* Widget links retain their natural inline behavior unless a component styles them. */
.widget p a { display: inline; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; }
.widget p a:hover { color: var(--tf-accent); text-decoration: underline; }
@media (max-width: 760px) {
  .site-header { top: 0; }
  .header-inner { min-height: 62px; }
  .article-title { font-size: 26px; line-height: 1.35; }
  .article-featured-image { margin-top: 13px; }
  .entry-content { font-size: 15px; line-height: 1.85; }
  .entry-content h2 { font-size: 22px; }
  .entry-content h3 { font-size: 18px; }
  .references-box { padding: 17px; }
}

/* v0.1.5: enforce the approved header color and sticky behavior */
.site-header { position: sticky !important; top: 0 !important; z-index: 99999 !important; background: #6C006E !important; background-color: #6C006E !important; }
.site-header .header-inner { background: transparent !important; }
.site-header .site-title, .site-header .menu-list a, .site-header .icon-button, .site-header .menu-toggle { color: #fff !important; }


/* v0.1.6: description placement, sticky-header anchor offset, isolated references. */
.article-description { margin: 14px 0 12px; padding: 12px 16px; border: 1px solid #eaddea; border-inline-start: 3px solid #6C006E; border-radius: 10px; background: #faf7fa; color: #26324a; font-size: 14px; line-height: 1.8; }
.entry-content h2[id] { scroll-margin-top: 105px; }
html { scroll-behavior: smooth; }
.references-box { display: block; width: 100%; }
.references-box > * { max-width: 100%; }
.references-box > p:last-child { margin-bottom: 0; }


/* v0.1.7 refinements from visual review */
.article-categories { display: none !important; }
.article-layout {
  grid-template-columns: minmax(0, 780px) 280px;
  justify-content: start;
  column-gap: 20px;
}
@media (max-width: 1050px) {
  .article-layout { column-gap: 16px; }
}
.entry-content hr,
.entry-content .wp-block-separator {
  display: none !important;
}
.references-box {
  margin: 30px 0 18px;
}
.references-box > * {
  margin-inline: 0;
}


/* v0.1.8: restore left sidebar placement and slightly widen article column. */
.article-layout {
  width: 100%;
  grid-template-columns: minmax(0, 820px) 280px;
  justify-content: space-between;
  column-gap: 28px;
}
@media (max-width: 1180px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    column-gap: 24px;
  }
}
@media (max-width: 760px) {
  .article-layout { grid-template-columns: 1fr; }
}


/* v0.1.9: compact homepage carousel with a popular-posts widget on its left. */
.homepage-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  direction: rtl;
  margin: 18px 0 34px;
}
.homepage-carousel-column { min-width: 0; }
.homepage-carousel-column .wp-block-a8c-posts-carousel {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.homepage-popular-widget {
  min-width: 0;
  align-self: stretch;
  padding: 22px 24px;
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow);
}
.homepage-popular-widget .widget-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tf-border);
}
.homepage-popular-list {
  margin: 0;
  padding: 0 20px 0 0;
}
.homepage-popular-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--tf-border);
  color: var(--tf-accent);
}
.homepage-popular-list li:last-child { border-bottom: 0; }
.homepage-popular-list a {
  color: var(--tf-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}
.homepage-sections { min-width: 0; }
@media (max-width: 760px) {
  .homepage-feature-row { grid-template-columns: 1fr; gap: 16px; }
  .homepage-popular-widget { order: 2; }
}


/* v0.2.0: smaller landscape thumbnails in homepage article sections. */
.homepage-sections .wp-block-post-featured-image,
.homepage-sections .wp-block-latest-posts__featured-image,
.homepage-sections .wp-block-jetpack-blogroll-item__image,
.homepage-sections .jetpack-blogroll-item__image,
.homepage-sections .wp-block-a8c-blog-posts .post-thumbnail,
.homepage-sections .wp-block-jetpack-posts .post-thumbnail {
  width: min(34%, 300px) !important;
  max-width: 300px !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
  flex: 0 0 34%;
}
.homepage-sections .wp-block-post-featured-image img,
.homepage-sections .wp-block-latest-posts__featured-image img,
.homepage-sections .wp-block-jetpack-blogroll-item__image img,
.homepage-sections .jetpack-blogroll-item__image img,
.homepage-sections .wp-block-a8c-blog-posts .post-thumbnail img,
.homepage-sections .wp-block-jetpack-posts .post-thumbnail img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 190px !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}
.homepage-sections .wp-block-post,
.homepage-sections .wp-block-latest-posts li,
.homepage-sections .wp-block-jetpack-blogroll-item,
.homepage-sections .jetpack-blogroll-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
@media (max-width: 760px) {
  .homepage-sections .wp-block-post-featured-image,
  .homepage-sections .wp-block-latest-posts__featured-image,
  .homepage-sections .wp-block-jetpack-blogroll-item__image,
  .homepage-sections .jetpack-blogroll-item__image,
  .homepage-sections .wp-block-a8c-blog-posts .post-thumbnail,
  .homepage-sections .wp-block-jetpack-posts .post-thumbnail {
    width: 38% !important;
    max-width: 160px !important;
    flex-basis: 38%;
  }
  .homepage-sections .wp-block-post,
  .homepage-sections .wp-block-latest-posts li,
  .homepage-sections .wp-block-jetpack-blogroll-item,
  .homepage-sections .jetpack-blogroll-item {
    gap: 12px;
  }
}


/* v0.2.1: homepage latest-posts become a two-column grid with 16:9 thumbnails. */
.homepage-sections .wp-block-latest-posts,
.homepage-sections .wp-block-post-template,
.homepage-sections .wp-block-jetpack-blogroll,
.homepage-sections .wp-block-jetpack-blog-posts,
.homepage-sections .wp-block-a8c-blog-posts,
.homepage-sections .wp-block-jetpack-posts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: start !important;
}
.homepage-sections .wp-block-latest-posts > li,
.homepage-sections .wp-block-post-template > li,
.homepage-sections .wp-block-jetpack-blogroll > *,
.homepage-sections .wp-block-jetpack-blog-posts > *,
.homepage-sections .wp-block-a8c-blog-posts > *,
.homepage-sections .wp-block-jetpack-posts > * {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  gap: 10px !important;
  margin: 0 !important;
}
.homepage-sections .wp-block-post-featured-image,
.homepage-sections .wp-block-latest-posts__featured-image,
.homepage-sections .wp-block-jetpack-blogroll-item__image,
.homepage-sections .jetpack-blogroll-item__image,
.homepage-sections .wp-block-a8c-blog-posts .post-thumbnail,
.homepage-sections .wp-block-jetpack-posts .post-thumbnail,
.homepage-sections .wp-block-jetpack-blog-posts .post-thumbnail,
.homepage-sections .wp-block-jetpack-blog-posts .entry-featured-image,
.homepage-sections .wp-block-a8c-blog-posts .entry-featured-image,
.homepage-sections .wp-block-jetpack-posts .entry-featured-image {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  flex: none !important;
  overflow: hidden !important;
  margin: 0 !important;
}
.homepage-sections .wp-block-post-featured-image img,
.homepage-sections .wp-block-latest-posts__featured-image img,
.homepage-sections .wp-block-jetpack-blogroll-item__image img,
.homepage-sections .jetpack-blogroll-item__image img,
.homepage-sections .wp-block-a8c-blog-posts .post-thumbnail img,
.homepage-sections .wp-block-jetpack-posts .post-thumbnail img,
.homepage-sections .wp-block-jetpack-blog-posts .post-thumbnail img,
.homepage-sections .wp-block-jetpack-blog-posts .entry-featured-image img,
.homepage-sections .wp-block-a8c-blog-posts .entry-featured-image img,
.homepage-sections .wp-block-jetpack-posts .entry-featured-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}
.homepage-sections .wp-block-latest-posts__post-excerpt,
.homepage-sections .wp-block-post-excerpt,
.homepage-sections .wp-block-post-title {
  min-width: 0;
}
@media (max-width: 760px) {
  .homepage-sections .wp-block-latest-posts,
  .homepage-sections .wp-block-post-template,
  .homepage-sections .wp-block-jetpack-blogroll,
  .homepage-sections .wp-block-jetpack-blog-posts,
  .homepage-sections .wp-block-a8c-blog-posts,
  .homepage-sections .wp-block-jetpack-posts {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}


/* v0.2.2 — actual homepage markup fixes (front-page.php uses .homepage and .homepage-sections). */
.homepage {
  width: 100%;
}
.homepage .homepage-intro {
  margin-bottom: 18px;
}
.homepage .homepage-intro > p {
  margin: 0 0 18px;
}

/* Category sections: larger, clear section headings and compact landscape cards. */
.homepage-sections .wp-block-a8c-blog-posts {
  width: 100%;
  min-width: 0;
}
.homepage-sections .wp-block-a8c-blog-posts h2,
.homepage-sections .wp-block-a8c-blog-posts h3,
.homepage-sections .wp-block-a8c-blog-posts .section-title,
.homepage-sections .wp-block-a8c-blog-posts .article-section-title,
.homepage-sections .wp-block-a8c-blog-posts .wp-block-heading {
  font-size: clamp(22px, 1.8vw, 27px) !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  margin-block: 24px 16px !important;
}
.homepage-sections .wp-block-a8c-blog-posts article {
  min-width: 0;
}
.homepage-sections .wp-block-a8c-blog-posts article .post-thumbnail,
.homepage-sections .wp-block-a8c-blog-posts article .entry-featured-image,
.homepage-sections .wp-block-a8c-blog-posts article figure,
.homepage-sections .wp-block-a8c-blog-posts article .post-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  flex: none !important;
  margin: 0 0 10px !important;
}
.homepage-sections .wp-block-a8c-blog-posts article .post-thumbnail img,
.homepage-sections .wp-block-a8c-blog-posts article .entry-featured-image img,
.homepage-sections .wp-block-a8c-blog-posts article figure img,
.homepage-sections .wp-block-a8c-blog-posts article .post-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}
.homepage-sections .wp-block-a8c-blog-posts .entry-title,
.homepage-sections .wp-block-a8c-blog-posts .entry-title a {
  font-size: clamp(17px, 1.35vw, 21px) !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
}
.homepage-sections .wp-block-a8c-blog-posts .entry-meta {
  font-size: 12px !important;
}

/* Featured slider: editorial card design with image-led slide and gradient title panel. */
.homepage-feature-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 28px !important;
  direction: rtl;
}
.homepage-carousel-column {
  display: flex !important;
  min-width: 0;
  align-self: stretch !important;
}
.homepage-carousel-column > .wp-block-a8c-posts-carousel,
.homepage-carousel-column > .thaqafati-carousel-modern,
.homepage-carousel-column > * {
  width: 100% !important;
  min-width: 0;
  flex: 1 1 auto !important;
}
.homepage-carousel-column .wp-block-a8c-posts-carousel,
.homepage-carousel-column .thaqafati-carousel-modern {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #101a2d !important;
  box-shadow: 0 16px 38px rgba(12, 24, 45, .17) !important;
  isolation: isolate;
}
.homepage-carousel-column .swiper,
.homepage-carousel-column .swiper-wrapper,
.homepage-carousel-column .swiper-slide {
  height: 100%;
}
.homepage-carousel-column .swiper-slide {
  position: relative !important;
  min-height: 360px;
  overflow: hidden !important;
  border-radius: 18px !important;
}
.homepage-carousel-column .swiper-slide img,
.homepage-carousel-column .wp-block-a8c-posts-carousel img,
.homepage-carousel-column .thaqafati-carousel-modern img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 360px;
  object-fit: cover !important;
}
.homepage-carousel-column .swiper-slide .entry-wrapper,
.homepage-carousel-column .swiper-slide .entry-content,
.homepage-carousel-column .swiper-slide .post-content,
.homepage-carousel-column .swiper-slide .wp-block-a8c-posts-carousel__content,
.homepage-carousel-column .swiper-slide .wp-block-a8c-posts-carousel__post-content {
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: 3 !important;
  width: 100% !important;
  padding: 34px 30px 26px !important;
  color: #fff !important;
  background: linear-gradient(180deg, rgba(8, 18, 35, 0) 0%, rgba(8, 18, 35, .82) 45%, #081223 100%) !important;
}
.homepage-carousel-column .swiper-slide h2,
.homepage-carousel-column .swiper-slide h3,
.homepage-carousel-column .swiper-slide .entry-title,
.homepage-carousel-column .swiper-slide .entry-title a {
  color: #fff !important;
  font-size: clamp(22px, 2.15vw, 31px) !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.24);
}
.homepage-carousel-column .swiper-slide .entry-meta,
.homepage-carousel-column .swiper-slide .entry-meta a,
.homepage-carousel-column .swiper-slide time {
  color: rgba(255,255,255,.88) !important;
}
.homepage-carousel-column .swiper-button-next,
.homepage-carousel-column .swiper-button-prev,
.homepage-carousel-column button {
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(108, 0, 110, .92) !important;
  color: #fff !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.22) !important;
}
.homepage-carousel-column .swiper-pagination-bullet {
  width: 9px !important;
  height: 9px !important;
  border-radius: 20px !important;
  opacity: .55 !important;
  transition: width .2s ease, opacity .2s ease;
}
.homepage-carousel-column .swiper-pagination-bullet-active {
  width: 26px !important;
  opacity: 1 !important;
  background: var(--tf-accent) !important;
}
.homepage-popular-widget {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
  align-self: stretch !important;
  padding: 22px 24px !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 32px rgba(14, 32, 69, .07) !important;
}
.homepage-popular-list {
  flex: 1 1 auto;
}

/* Footer redesign: match MARBPixel's clean dark product-footer language. */
.site-footer {
  background: #101a2d !important;
  color: #e8edf6 !important;
  border-top: 4px solid var(--tf-accent) !important;
  margin-top: 18px;
}
.site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.3fr) minmax(180px, 1fr) minmax(220px, 1fr);
  align-items: start;
  gap: 26px 44px;
  padding-block: 20px 18px !important;
}
.site-footer .footer-brand-logo {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 0 10px auto;
  background: transparent !important;
}
.site-footer .footer-brand > a {
  display: inline-block;
  color: #fff !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.3;
  margin-bottom: 10px;
}
.site-footer .footer-brand p {
  max-width: 390px;
  color: #b9c4d5 !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
}
.site-footer .footer-navigation { align-self: start; }
.site-footer .footer-menu {
  display: flex !important;
  flex-direction: column;
  gap: 10px !important;
}
.site-footer .footer-menu a {
  color: #d8e0ec !important;
  font-size: 14px !important;
  transition: color .2s ease;
}
.site-footer .footer-menu a:hover { color: #fff !important; }
.site-footer .footer-widgets {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  margin: 0 !important;
}
.site-footer .footer-widget,
.site-footer .footer-widget p { color: #b9c4d5 !important; }
.site-footer .footer-widget .widget-title {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}
.site-footer .footer-bottom {
  grid-column: 1 / -1;
  display: flex !important;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,.14) !important;
  margin-top: 10px !important;
  padding-top: 18px !important;
  color: #9eacc0 !important;
  font-size: 12px !important;
}
.site-footer a { color: #e5d0e7; }
.site-footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .site-footer .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .homepage-feature-row { grid-template-columns: 1fr !important; gap: 16px !important; }
  .homepage-carousel-column .swiper-slide { min-height: 280px; }
  .homepage-carousel-column .swiper-slide img,
  .homepage-carousel-column .wp-block-a8c-posts-carousel img { min-height: 280px; }
  .homepage-carousel-column .swiper-slide .entry-wrapper,
  .homepage-carousel-column .swiper-slide .entry-content,
  .homepage-carousel-column .swiper-slide .post-content,
  .homepage-carousel-column .swiper-slide .wp-block-a8c-posts-carousel__content,
  .homepage-carousel-column .swiper-slide .wp-block-a8c-posts-carousel__post-content { padding: 22px 18px 18px !important; }
  .homepage-sections .wp-block-a8c-blog-posts h2,
  .homepage-sections .wp-block-a8c-blog-posts h3,
  .homepage-sections .wp-block-a8c-blog-posts .section-title,
  .homepage-sections .wp-block-a8c-blog-posts .article-section-title { font-size: 22px !important; }
  .site-footer .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .site-footer .footer-brand { grid-column: auto; }
  .site-footer .footer-bottom { flex-direction: column; gap: 5px; }
}


/* v0.2.3: accessible, correctly directed carousel controls; remove autoplay toggle. */
.homepage-carousel-column .swiper-button-prev,
.homepage-carousel-column .swiper-button-next {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 50% !important;
  background: rgba(16,26,45,.78) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.24) !important;
  backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.homepage-carousel-column .swiper-button-prev:hover,
.homepage-carousel-column .swiper-button-next:hover {
  background: #6C006E !important;
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(0,0,0,.3) !important;
}
.homepage-carousel-column .swiper-button-prev::after,
.homepage-carousel-column .swiper-button-next::after {
  content: none !important;
  display: none !important;
}
/* Use one text glyph per control; remove the old border-built chevrons to prevent doubled strokes. */
.homepage-carousel-column .swiper-button-prev::before,
.homepage-carousel-column .swiper-button-next::before {
  display: block !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 38px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  transform: none !important;
}
.homepage-carousel-column .swiper-button-prev::before {
  content: "‹" !important;
}
.homepage-carousel-column .swiper-button-next::before {
  content: "›" !important;
}
/* The autoplay pause/play control is intentionally removed from the slider UI. */
.homepage-carousel-column .swiper-button-pause,
.homepage-carousel-column .swiper-button-play,
.homepage-carousel-column .swiper-autoplay-button,
.homepage-carousel-column .swiper-button-toggle,
.homepage-carousel-column [aria-label*="pause" i],
.homepage-carousel-column [title*="pause" i],
.homepage-carousel-column [aria-label*="إيقاف"],
.homepage-carousel-column [title*="إيقاف"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width: 700px) {
  .homepage-carousel-column .swiper-button-prev,
  .homepage-carousel-column .swiper-button-next {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
}


/* v0.2.6: Swiper renders the visual controls in RTL order, so swap glyphs.
   Suppress all inner icon markup so each control shows exactly one chevron. */
.homepage-carousel-column .swiper-button-prev,
.homepage-carousel-column .swiper-button-next {
  font-size: 0 !important;
  overflow: hidden !important;
}
.homepage-carousel-column .swiper-button-prev::after,
.homepage-carousel-column .swiper-button-next::after {
  content: none !important;
  display: none !important;
}
.homepage-carousel-column .swiper-button-prev svg,
.homepage-carousel-column .swiper-button-next svg,
.homepage-carousel-column .swiper-button-prev i,
.homepage-carousel-column .swiper-button-next i,
.homepage-carousel-column .swiper-button-prev span,
.homepage-carousel-column .swiper-button-next span {
  display: none !important;
  visibility: hidden !important;
}
.homepage-carousel-column .swiper-button-prev::before,
.homepage-carousel-column .swiper-button-next::before {
  display: block !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 38px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  transform: none !important;
  position: static !important;
}
/* In this RTL carousel, the .prev element is visually on the right. */
.homepage-carousel-column .swiper-button-prev::before {
  content: "›" !important;
}
.homepage-carousel-column .swiper-button-next::before {
  content: "‹" !important;
}


/* v0.2.7 — editorial three-column footer, RTL-first. */
.site-footer.thaqafati-footer {
  position: relative;
  isolation: isolate;
  background: #101a2d !important;
  color: #e8edf6 !important;
  border-top: 4px solid #6C006E !important;
  padding: 52px 24px 22px !important;
}
.site-footer.thaqafati-footer .footer-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .9fr) !important;
  direction: rtl;
  align-items: start;
  gap: 34px 56px !important;
  max-width: 1180px;
  margin-inline: auto;
}
.site-footer.thaqafati-footer .footer-brand {
  grid-column: auto !important;
  min-width: 0;
  text-align: right;
}
.site-footer.thaqafati-footer .footer-brand-name {
  display: inline-block;
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1.3;
  font-weight: 800 !important;
  letter-spacing: -.5px;
  text-decoration: none !important;
  margin-bottom: 14px;
}
.site-footer.thaqafati-footer .footer-description {
  max-width: 340px;
  margin: 0 !important;
  color: #bac6d8 !important;
  font-size: 14px !important;
  line-height: 2 !important;
}
.site-footer.thaqafati-footer .footer-heading {
  position: relative;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.5;
  font-weight: 800 !important;
  margin: 0 0 22px !important;
  padding-bottom: 12px;
}
.site-footer.thaqafati-footer .footer-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 4px;
  background: #a32aa5;
}
.site-footer.thaqafati-footer .footer-link-list,
.site-footer.thaqafati-footer .footer-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  gap: 13px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-footer.thaqafati-footer .footer-link-list li,
.site-footer.thaqafati-footer .footer-menu li {
  margin: 0 !important;
  padding: 0 !important;
}
.site-footer.thaqafati-footer .footer-link-list a,
.site-footer.thaqafati-footer .footer-menu a {
  display: inline-block;
  color: #c4cede !important;
  font-size: 14px !important;
  line-height: 1.7;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease;
}
.site-footer.thaqafati-footer .footer-link-list a:hover,
.site-footer.thaqafati-footer .footer-menu a:hover {
  color: #fff !important;
  transform: translateX(-3px);
}
.site-footer.thaqafati-footer .footer-navigation {
  margin: 0 !important;
}
.site-footer.thaqafati-footer .footer-widgets {
  grid-column: 1 / -1;
}
.site-footer.thaqafati-footer .footer-bottom {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,.14) !important;
  margin: 10px 0 0 !important;
  padding: 19px 0 0 !important;
  color: #9eacc0 !important;
  font-size: 12px !important;
}
.site-footer.thaqafati-footer a:focus-visible {
  outline: 2px solid #d98cdb;
  outline-offset: 4px;
  border-radius: 3px;
}
@media (max-width: 900px) {
  .site-footer.thaqafati-footer .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px 36px !important;
  }
  .site-footer.thaqafati-footer .footer-brand {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 600px) {
  .site-footer.thaqafati-footer { padding: 36px 20px 20px !important; }
  .site-footer.thaqafati-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .site-footer.thaqafati-footer .footer-brand { grid-column: auto !important; }
  .site-footer.thaqafati-footer .footer-heading { margin-bottom: 16px !important; }
  .site-footer.thaqafati-footer .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
  }
}


/* v0.2.9 — guaranteed spacing for the actual related-posts widget markup. */
#block-99 ul.thaqafati-related-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}
#block-99 ul.thaqafati-related-list > li {
  display: block !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  line-height: 1.9 !important;
  border-bottom: 1px solid rgba(16, 26, 45, .12) !important;
}
#block-99 ul.thaqafati-related-list > li:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
#block-99 ul.thaqafati-related-list > li > a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.9 !important;
}




/* v0.3.1 — related articles: restore featured images in the actual theme card template. */
body.single-post section.related-posts > .post-grid.post-grid--related {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  grid-template-columns: none !important;
}
body.single-post section.related-posts > .post-grid.post-grid--related > article.post-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
  min-height: 145px !important;
  margin: 0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(16,26,45,.12) !important;
  border-radius: 14px !important;
  background: #fff !important;
}
body.single-post section.related-posts > .post-grid.post-grid--related > article.post-card > a.card-image {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  flex: 0 0 190px !important;
  width: 190px !important;
  height: 125px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
}
body.single-post section.related-posts > .post-grid.post-grid--related > article.post-card > a.card-image img,
body.single-post section.related-posts > .post-grid.post-grid--related > article.post-card > a.card-image .wp-post-image {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}
body.single-post section.related-posts > .post-grid.post-grid--related > article.post-card > .card-content {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: right !important;
  padding: 0 !important;
}
body.single-post section.related-posts .post-card .card-title {
  margin: 5px 0 8px !important;
  line-height: 1.6 !important;
}
body.single-post section.related-posts .post-card .card-excerpt {
  display: block !important;
  margin: 0 0 8px !important;
  line-height: 1.7 !important;
}
@media (max-width: 600px) {
  body.single-post section.related-posts > .post-grid.post-grid--related > article.post-card {
    gap: 12px !important;
    min-height: 105px !important;
    padding: 10px !important;
  }
  body.single-post section.related-posts > .post-grid.post-grid--related > article.post-card > a.card-image {
    flex-basis: 112px !important;
    width: 112px !important;
    height: 84px !important;
  }
  body.single-post section.related-posts .post-card .card-title {
    font-size: 15px !important;
  }
  body.single-post section.related-posts .post-card .card-excerpt {
    display: none !important;
  }
}


/* v0.3.2 — refined single-row editorial header (no category navigation bar). */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  background: #6C006E !important;
  background-image: linear-gradient(105deg, #5B075F 0%, #6C006E 52%, #760879 100%) !important;
  border: 0 !important;
  box-shadow: 0 5px 20px rgba(40, 0, 43, .18) !important;
}
.site-header .header-inner {
  min-height: 82px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(20px, 3vw, 48px) !important;
  padding-block: 8px !important;
}
.site-header .site-branding {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  order: 1 !important;
}
.site-header .site-title {
  display: inline-block;
  color: #fff !important;
  font-size: clamp(28px, 2.2vw, 34px) !important;
  font-weight: 850 !important;
  letter-spacing: -.035em !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
}
.site-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.site-header .custom-logo {
  display: block;
  max-height: 58px !important;
  width: auto !important;
  filter: brightness(0) invert(1);
}
.site-header .primary-navigation {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
  min-width: 0;
  order: 2 !important;
  background: transparent !important;
}
.site-header .menu-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: clamp(18px, 2.1vw, 32px) !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-header .menu-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0 !important;
  color: rgba(255,255,255,.91) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: color .2s ease, opacity .2s ease;
}
.site-header .menu-list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: #F1C7F2;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}
.site-header .menu-list a:hover,
.site-header .menu-list .current-menu-item > a,
.site-header .menu-list .current_page_item > a {
  color: #fff !important;
}
.site-header .menu-list a:hover::after,
.site-header .menu-list .current-menu-item > a::after,
.site-header .menu-list .current_page_item > a::after {
  transform: scaleX(1);
}
.site-header .header-actions {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  order: 3 !important;
}
.site-header .search-toggle {
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.34) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  font-size: 23px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.site-header .search-toggle:hover {
  background: rgba(255,255,255,.23) !important;
  border-color: rgba(255,255,255,.65) !important;
  transform: translateY(-1px);
}
.site-header .menu-toggle {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}
.site-header .menu-toggle span:not(.screen-reader-text) {
  background: #fff !important;
}
.site-header .header-search {
  background: #6C006E !important;
  border: 0 !important;
  padding: 0 0 16px !important;
}
.site-header .header-search input[type="search"] {
  min-height: 44px;
  border-radius: 10px;
}
@media (max-width: 900px) {
  .site-header .header-inner {
    min-height: 72px !important;
    gap: 18px !important;
  }
  .site-header .menu-list {
    gap: 15px !important;
  }
  .site-header .menu-list a {
    font-size: 14px !important;
  }
}
@media (max-width: 760px) {
  .site-header .header-inner {
    min-height: 66px !important;
    gap: 12px !important;
  }
  .site-header .site-title {
    font-size: 25px !important;
  }
  .site-header .custom-logo {
    max-height: 46px !important;
  }
  .site-header .menu-toggle {
    display: block !important;
    order: 2 !important;
  }
  .site-header .header-actions {
    order: 3 !important;
  }
  .site-header .primary-navigation {
    display: none !important;
    position: absolute !important;
    inset-inline: 0 !important;
    top: 100% !important;
    padding: 12px 20px 18px !important;
    background: #630066 !important;
    border-top: 1px solid rgba(255,255,255,.14) !important;
    border-bottom: 0 !important;
    box-shadow: 0 12px 24px rgba(30,0,32,.2) !important;
  }
  .site-header .primary-navigation.is-open {
    display: block !important;
  }
  .site-header .menu-list {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .site-header .menu-list a {
    display: flex !important;
    min-height: 44px;
    padding: 9px 0 !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .site-header .menu-list a::after {
    display: none;
  }
}


/* v0.3.3 — align the desktop menu toward the left, keeping the logo right and search at the far left. */
@media (min-width: 761px) {
  .site-header .primary-navigation {
    justify-content: flex-end !important;
  }
}


/* v0.3.4 — place the RTL desktop menu at the physical left side of its available space. */
@media (min-width: 761px) {
  .site-header .primary-navigation {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
  }
  .site-header .primary-navigation .menu-list {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Keep mobile navigation as a compact dropdown panel rather than a full-width hit area. */
@media (max-width: 760px) {
  .site-header .primary-navigation {
    width: auto !important;
    max-width: min(340px, calc(100vw - 28px)) !important;
    inset-inline: 14px auto !important;
    right: auto !important;
    left: 14px !important;
    border-radius: 0 0 14px 14px !important;
  }
}


/* v0.3.5 — full-screen mobile navigation overlay, anchored to the physical left. */
@media (max-width: 760px) {
  .site-header {
    position: sticky !important;
    z-index: 100000 !important;
    isolation: isolate !important;
  }
  .site-header .header-inner {
    position: relative !important;
    z-index: 100002 !important;
  }
  .site-header .menu-toggle {
    position: relative !important;
    z-index: 100004 !important;
  }
  .site-header .primary-navigation,
  .site-header .primary-navigation.is-open {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    /* stylelint-disable-next-line declaration-block-no-duplicate-properties -- Preserve the vh/dvh viewport fallback pair. */
    height: 100vh !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 100px 30px 36px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(145deg, #56005b 0%, #6C006E 55%, #39003f 100%) !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 100003 !important;
    direction: ltr !important;
    text-align: left !important;
  }
  .site-header .primary-navigation:not(.is-open) {
    display: none !important;
  }
  .site-header .primary-navigation.is-open {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  .site-header .primary-navigation .menu-list {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: min(100%, 420px) !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: left !important;
  }
  .site-header .primary-navigation .menu-list > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.22) !important;
  }
  .site-header .primary-navigation .menu-list a {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
    padding: 12px 4px !important;
    color: #fff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-align: left !important;
    border: 0 !important;
  }
  .site-header .primary-navigation .menu-list a::after {
    display: none !important;
  }
  .site-header .menu-toggle {
    z-index: 100004 !important;
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.6) !important;
  }
  .site-header .menu-toggle[aria-expanded="true"] {
    position: fixed !important;
    top: 12px !important;
    left: 14px !important;
    right: auto !important;
    z-index: 100005 !important;
  }
}


/* v0.3.6 — compact mobile dropdown, physically left-aligned; hamburger beside search. */
@media (max-width: 760px) {
  .site-header .header-inner {
    position: relative !important;
    display: flex !important;
    justify-content: flex-end !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  /* Keep the brand at the physical right and place the menu control at the left. */
  .site-header .site-branding {
    order: 3 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  .site-header .header-actions {
    order: 1 !important;
    margin: 0 !important;
  }
  .site-header .menu-toggle,
  .site-header .menu-toggle[aria-expanded="true"] {
    position: absolute !important;
    top: 12px !important;
    left: 82px !important;
    right: auto !important;
    order: 2 !important;
    z-index: 100006 !important;
  }
  .site-header .primary-navigation,
  .site-header .primary-navigation.is-open {
    position: absolute !important;
    top: 100% !important;
    left: 14px !important;
    right: auto !important;
    bottom: auto !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: min(280px, calc(100vw - 28px)) !important;
    height: auto !important;
    max-height: min(70vh, 520px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 18px !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-top: 0 !important;
    border-radius: 0 0 14px 14px !important;
    background: linear-gradient(145deg, #56005b 0%, #6C006E 70%, #39003f 100%) !important;
    box-shadow: 0 12px 28px rgba(30,0,32,.24) !important;
    overflow-y: auto !important;
    z-index: 100005 !important;
    direction: rtl !important;
    text-align: right !important;
  }
  .site-header .primary-navigation:not(.is-open) {
    display: none !important;
  }
  .site-header .primary-navigation.is-open {
    display: block !important;
  }
  .site-header .primary-navigation .menu-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: max-content !important;
    min-width: 170px !important;
    max-width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
  }
  .site-header .primary-navigation .menu-list > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.2) !important;
  }
  .site-header .primary-navigation .menu-list > li:last-child {
    border-bottom: 0 !important;
  }
  .site-header .primary-navigation .menu-list a {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 2px !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-align: right !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .site-header .primary-navigation .menu-list a::after {
    display: none !important;
  }
}


/* v0.3.7 — deterministic mobile header positions and content-sized dropdown. */
@media screen and (max-width: 760px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100000 !important;
    overflow: visible !important;
  }
  .site-header > .header-inner.container {
    display: block !important;
    position: relative !important;
    height: 66px !important;
    min-height: 66px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .site-header > .header-inner.container > .site-branding {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 2 !important;
  }
  .site-header > .header-inner.container > .header-actions {
    position: absolute !important;
    top: 50% !important;
    left: 14px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 4 !important;
  }
  .site-header > .header-inner.container > .menu-toggle,
  .site-header > .header-inner.container > .menu-toggle[aria-expanded="true"] {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    left: 72px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    z-index: 5 !important;
  }
  .site-header > .primary-navigation,
  .site-header > .primary-navigation.is-open {
    position: absolute !important;
    top: 100% !important;
    left: 14px !important;
    right: auto !important;
    bottom: auto !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: calc(100vw - 28px) !important;
    height: auto !important;
    max-height: 70vh !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-top: 0 !important;
    border-radius: 0 0 12px 12px !important;
    background: #6C006E !important;
    box-shadow: 0 10px 24px rgba(25,0,28,.25) !important;
    overflow-y: auto !important;
    z-index: 100001 !important;
    direction: rtl !important;
  }
  .site-header > .primary-navigation:not(.is-open) {
    display: none !important;
  }
  .site-header > .primary-navigation.is-open {
    display: block !important;
  }
  .site-header > .primary-navigation .menu-list {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: max-content !important;
    min-width: 160px !important;
    max-width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-header > .primary-navigation .menu-list > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.2) !important;
  }
  .site-header > .primary-navigation .menu-list > li:last-child {
    border-bottom: 0 !important;
  }
  .site-header > .primary-navigation .menu-list a {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 9px 0 !important;
    white-space: nowrap !important;
    color: #fff !important;
    font-size: 16px !important;
    text-align: right !important;
    border: 0 !important;
  }
}


/* v0.3.8 — visible hamburger strokes and near-full-width mobile dropdown. */
@media screen and (max-width: 760px) {
  .site-header .menu-toggle,
  .site-header .menu-toggle[aria-expanded="true"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px !important;
    color: #fff !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  .site-header .menu-toggle > span:not(.screen-reader-text) {
    display: block !important;
    flex: 0 0 2px !important;
    width: 21px !important;
    min-width: 21px !important;
    max-width: 21px !important;
    height: 2px !important;
    min-height: 2px !important;
    max-height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .site-header .primary-navigation,
  .site-header .primary-navigation.is-open {
    position: absolute !important;
    top: 100% !important;
    left: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    /* stylelint-disable-next-line declaration-block-no-duplicate-properties -- Preserve the vh/dvh viewport fallback pair. */
    max-height: calc(100vh - 90px) !important;
    max-height: calc(100dvh - 90px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 22px 16px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-top: 0 !important;
    border-radius: 0 0 14px 14px !important;
    background: linear-gradient(145deg, #56005b 0%, #6C006E 70%, #39003f 100%) !important;
    box-shadow: 0 12px 28px rgba(25,0,28,.25) !important;
    overflow-y: auto !important;
    z-index: 100005 !important;
    direction: rtl !important;
    text-align: right !important;
  }
  .site-header .primary-navigation:not(.is-open) {
    display: none !important;
  }
  .site-header .primary-navigation.is-open {
    display: block !important;
  }
  .site-header .primary-navigation .menu-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
  }
  .site-header .primary-navigation .menu-list > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.2) !important;
  }
  .site-header .primary-navigation .menu-list > li:last-child {
    border-bottom: 0 !important;
  }
  .site-header .primary-navigation .menu-list a {
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 0 !important;
    white-space: nowrap !important;
    color: #fff !important;
    font-size: 17px !important;
    text-align: right !important;
    border: 0 !important;
  }
}


/* v0.4.0 — category directory: two compact category columns, six latest posts each. */
.categories-directory-header {
  margin: 8px 0 24px !important;
  text-align: right !important;
}
.categories-directory-header h1 {
  margin: 0 0 6px !important;
  color: var(--tf-heading, #101a2d) !important;
  font-size: 30px !important;
  line-height: 1.35 !important;
}
.categories-directory-header p {
  margin: 0 !important;
  color: var(--tf-muted, #7b8496) !important;
  font-size: 14px !important;
}
.categories-directory-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: start !important;
  width: 100% !important;
}
.category-directory-card {
  min-width: 0 !important;
  padding: 16px 18px 12px !important;
  border: 1px solid rgba(16,26,45,.13) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 3px 14px rgba(16,26,45,.035) !important;
}
.category-directory-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 10px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(16,26,45,.15) !important;
}
.category-directory-heading h2 {
  margin: 0 !important;
  font-size: 19px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
}
.category-directory-heading h2 a {
  color: var(--tf-heading, #101a2d) !important;
  text-decoration: none !important;
}
.category-directory-more {
  flex: 0 0 auto !important;
  color: #6C006E !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.category-directory-posts {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.category-directory-post {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid rgba(16,26,45,.09) !important;
}
.category-directory-post:last-child {
  border-bottom: 0 !important;
  padding-bottom: 2px !important;
}
.category-directory-thumb {
  display: block !important;
  flex: 0 0 82px !important;
  width: 82px !important;
  height: 60px !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  background: #f0edf2 !important;
}
.category-directory-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.category-directory-placeholder {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg,#eee7f0,#d8cadd) !important;
}
.category-directory-post-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: right !important;
}
.category-directory-post-info h3 {
  margin: 0 0 5px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
}
.category-directory-post-info h3 a {
  color: var(--tf-heading, #101a2d) !important;
  text-decoration: none !important;
}
.category-directory-post-info h3 a:hover,
.category-directory-heading h2 a:hover {
  color: #6C006E !important;
}
.category-directory-post-info time {
  display: block !important;
  color: var(--tf-muted, #7b8496) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}
@media (max-width: 900px) {
  .categories-directory-grid {
    gap: 14px !important;
  }
  .category-directory-card {
    padding: 13px !important;
  }
  .category-directory-thumb {
    flex-basis: 72px !important;
    width: 72px !important;
    height: 54px !important;
  }
}
@media (max-width: 640px) {
  .categories-directory-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .category-directory-card {
    padding: 14px 15px 10px !important;
  }
  .category-directory-thumb {
    flex-basis: 88px !important;
    width: 88px !important;
    height: 64px !important;
  }
  .category-directory-post-info h3 {
    font-size: 14px !important;
  }
}


/* v0.4.1 — ensure the category directory template is laid out as a compact two-column grid. */
.categories-directory-page {
  width: min(100% - 40px, 1320px) !important;
  margin-inline: auto !important;
}
.categories-directory-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
.category-directory-thumb {
  flex: 0 0 76px !important;
  width: 76px !important;
  height: 54px !important;
}
.category-directory-card {
  min-width: 0 !important;
}
@media (max-width: 640px) {
  .categories-directory-page {
    width: min(100% - 24px, 1320px) !important;
  }
  .categories-directory-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}


/* v0.4.2 — homepage category widgets use the compact category-directory card design. */
.homepage-category-widgets {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 26px auto 34px !important;
}
.homepage-category-card {
  min-width: 0 !important;
  padding: 14px 18px 10px !important;
  border: 1px solid rgba(16,26,45,.13) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 3px 14px rgba(16,26,45,.035) !important;
}
.homepage-category-card .category-directory-heading {
  margin-bottom: 8px !important;
}
.homepage-category-card .category-directory-post {
  gap: 10px !important;
  padding: 8px 0 !important;
}
.homepage-category-card .category-directory-thumb {
  flex-basis: 76px !important;
  width: 76px !important;
  height: 54px !important;
}
.homepage-category-card .category-directory-post-info h3 {
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin-bottom: 3px !important;
}
.homepage-category-card .category-directory-post-info time {
  font-size: 10px !important;
}
@media (max-width: 700px) {
  .homepage-category-widgets {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .homepage-category-card {
    padding: 13px 15px 9px !important;
  }
}

/* v0.4.3 — sidebar layout fixes (loaded from the active theme stylesheet). */
.site-sidebar #block-102,
.site-sidebar #block-103,
.site-sidebar #top-posts-3,
.site-sidebar #block-104 {
  box-sizing: border-box !important;
  padding: 16px !important;
  border: 1px solid rgba(16,26,45,.13) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(16,26,45,.045) !important;
  margin: 0 0 16px !important;
}

/* Social sharing: compact, evenly spaced branded actions. */
.site-sidebar #block-102 .tf-sidebar-title,
.site-sidebar #block-103 .tf-sidebar-title {
  margin: 0 0 9px !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: right !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}
.site-sidebar #block-102 .tf-sidebar-note,
.site-sidebar #block-103 .tf-sidebar-note {
  margin: 0 0 13px !important;
  color: #657086 !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  text-align: right !important;
}
.site-sidebar #block-102 .tf-social-links {
  display: flex !important;
  flex-flow: row nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 9px !important;
}
.site-sidebar #block-102 .tf-social-link {
  display: inline-flex !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font: 800 17px/1 Arial,sans-serif !important;
  text-decoration: none !important;
  box-shadow: 0 2px 7px rgba(16,26,45,.12) !important;
}
.site-sidebar #block-102 .tf-social-facebook { background: #1877f2 !important; }
.site-sidebar #block-102 .tf-social-x { background: #111 !important; }
.site-sidebar #block-102 .tf-social-telegram { background: #229ed9 !important; }
.site-sidebar #block-102 .tf-social-rss { background: #f28c18 !important; font-size: 11px !important; }

/* Newsletter: clean stacked input and full-width purple submit button. */
.site-sidebar #block-103 .tf-sidebar-newsletter,
.site-sidebar #block-103 .tf-sidebar-newsletter .wp-block-group__inner-container,
.site-sidebar #block-103 .jetpack_subscription_widget,
.site-sidebar #block-103 .wp-block-jetpack-subscriptions__container,
.site-sidebar #block-103 form {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
.site-sidebar #block-103 form {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}
.site-sidebar #block-103 form p#subscribe-email,
.site-sidebar #block-103 form p#subscribe-submit {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-sidebar #block-103 form input[type="email"] {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  box-sizing: border-box !important;
  border: 1px solid #d7dbe3 !important;
  border-radius: 9px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  direction: rtl !important;
  text-align: right !important;
  font-family: inherit !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
.site-sidebar #block-103 form button,
.site-sidebar #block-103 form input[type="submit"] {
  display: block !important;
  width: 100% !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #6C006E !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

/* Most read: thumbnail on the right, title on the left (RTL layout). */
.site-sidebar #top-posts-3 .widgets-list-layout { margin: 0 !important; padding: 0 !important; }
.site-sidebar #top-posts-3 .widgets-list-layout li {
  display: flex !important;
  flex-direction: row-reverse !important;
  direction: ltr !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid rgba(16,26,45,.09) !important;
}
.site-sidebar #top-posts-3 .widgets-list-layout li > a:first-child {
  display: block !important;
  flex: 0 0 56px !important;
  width: 56px !important;
  margin: 0 !important;
}
.site-sidebar #top-posts-3 .widgets-list-layout-blavatar {
  display: block !important;
  width: 56px !important;
  height: 48px !important;
  object-fit: cover !important;
  border-radius: 7px !important;
  margin: 0 !important;
}
.site-sidebar #top-posts-3 .widgets-list-layout-links {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  direction: rtl !important;
  text-align: right !important;
  line-height: 1.6 !important;
}

/* Suggested posts: image first, title underneath each image. */
.site-sidebar #block-104 ul.tf-suggested-posts {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.site-sidebar #block-104 ul.tf-suggested-posts > li {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(16,26,45,.09) !important;
}
.site-sidebar #block-104 ul.tf-suggested-posts > li:last-child { border-bottom: 0 !important; }
.site-sidebar #block-104 .wp-block-latest-posts__featured-image {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.site-sidebar #block-104 .wp-block-latest-posts__featured-image a { display: block !important; width: 100% !important; }
.site-sidebar #block-104 .wp-block-latest-posts__featured-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: 9px !important;
}
.site-sidebar #block-104 .wp-block-latest-posts__post-title {
  display: block !important;
  width: 100% !important;
  color: #6C006E !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
  text-align: right !important;
}
@media (max-width: 760px) {
  .site-sidebar #block-102, .site-sidebar #block-103, .site-sidebar #top-posts-3, .site-sidebar #block-104 {
    padding: 14px !important;
    margin-bottom: 14px !important;
  }
}


/* v0.4.5: header navigation order and search icon refinement. */
.site-header .primary-navigation .menu-list {
  flex-direction: row-reverse !important;
}
.site-header .header-actions .search-toggle {
  font-size: 29px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}


/* v0.4.7: target the real sidebar wrapper and correct desktop navigation order. */
@media (min-width: 761px) {
  .site-header .primary-navigation .menu-list {
    direction: rtl !important;
    flex-direction: row-reverse !important;
    justify-content: center !important;
  }
  .site-header .primary-navigation .menu-list > li,
  .site-header .primary-navigation .menu-list > li > a {
    direction: rtl !important;
  }
}
.site-header .header-actions > .search-toggle {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}
.site-header .header-actions > .search-toggle .search-icon-svg {
  display: block !important;
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  min-height: 27px !important;
  color: currentColor !important;
  overflow: visible !important;
}

/* Jetpack newsletter markup: style the actual form and its two paragraph rows. */
.site-sidebar #block-103 .jetpack_subscription_widget,
.site-sidebar #block-103 .wp-block-jetpack-subscriptions__container,
.site-sidebar #block-103 form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
.site-sidebar #block-103 form p#subscribe-email,
.site-sidebar #block-103 form p#subscribe-submit {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
}
.site-sidebar #block-103 form input[type="email"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid #d7dbe3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  direction: rtl !important;
  text-align: right !important;
  font-family: inherit !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
.site-sidebar #block-103 form button,
.site-sidebar #block-103 form input[type="submit"] {
  display: block !important;
  width: 100% !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #6C006E !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}


/* v0.4.9: stable desktop header layout.
   Menu order is managed by WordPress menu_order, not nth-child selectors. */
@media (min-width: 761px) {
  .site-header > .header-inner.container {
    position: relative;
  }
  .site-header > .header-inner.container > .primary-navigation {
    position: absolute;
    left: 104px;
    right: auto;
    top: 50%;
    width: max-content;
    max-width: calc(100% - 190px);
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
  }
  .site-header > .header-inner.container > .primary-navigation .menu-list {
    display: flex;
    flex-direction: row;
    direction: ltr;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .site-header > .header-inner.container > .primary-navigation .menu-list > li {
    order: initial;
    margin: 0;
    white-space: nowrap;
  }
}


/* v0.4.11 — archive/category cards: consistent 16:9 thumbnails and aligned card content. */
body.archive:not(.home) .post-grid {
  align-items: stretch;
}
body.archive:not(.home) .post-grid > .post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.archive:not(.home) .post-grid > .post-card > .card-image {
  aspect-ratio: 16 / 9;
}
body.archive:not(.home) .post-grid > .post-card > .card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
}
body.archive:not(.home) .post-grid > .post-card .card-title {
  min-height: 3.1em;
  line-height: 1.55;
}
body.archive:not(.home) .post-grid > .post-card .card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.archive:not(.home) .post-grid > .post-card .card-meta {
  margin-top: auto;
  padding-top: 14px;
}
body.archive:not(.home) .archive-header {
  margin-bottom: 30px;
  padding-bottom: 4px;
}
body.archive:not(.home) .archive-header h1 {
  line-height: 1.4;
}
body.archive:not(.home) .archive-description {
  max-width: 780px;
  line-height: 1.9;
}
body.archive:not(.home) .main-column > .pagination {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--tf-border);
}
body.archive:not(.home) .main-column > .pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  font-weight: 700;
}
@media (max-width: 600px) {
  body.archive:not(.home) .archive-header { margin-bottom: 20px; }
  body.archive:not(.home) .post-grid > .post-card .card-title { min-height: 0; }
}


/* v0.4.13: reserve stable mobile space for the homepage feature slider.
   This prevents the popular-posts widget below it from jumping as carousel
   slides and their images initialize. Desktop layout is intentionally unchanged. */
@media (max-width: 760px) {
  .homepage-feature-row {
    align-items: start !important;
  }
  .homepage-carousel-column {
    display: block !important;
    height: 280px !important;
    min-height: 280px !important;
    align-self: start !important;
  }
  .homepage-carousel-column > .wp-block-a8c-posts-carousel,
  .homepage-carousel-column > .thaqafati-carousel-modern,
  .homepage-carousel-column > * {
    height: 280px !important;
    min-height: 280px !important;
  }
  .homepage-carousel-column .wp-block-a8c-posts-carousel,
  .homepage-carousel-column .thaqafati-carousel-modern,
  .homepage-carousel-column .swiper,
  .homepage-carousel-column .swiper-wrapper,
  .homepage-carousel-column .swiper-slide {
    height: 280px !important;
    min-height: 280px !important;
  }
  .homepage-popular-widget {
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
  }
  .homepage-popular-list {
    flex: 0 0 auto !important;
  }
}


/* v0.4.14: replace the homepage JavaScript carousel with two static featured cards. */
.homepage-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  align-content: start;
}
.homepage-feature-card {
  min-width: 0;
  overflow: hidden;
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(14, 32, 69, .08);
}
.homepage-feature-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf0f5;
}
.homepage-feature-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.homepage-feature-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eee8f0, #dfe5ef);
}
.homepage-feature-card__body {
  padding: 12px 14px 15px;
  text-align: right;
}
.homepage-feature-card__body time {
  display: block;
  margin-bottom: 7px;
  color: var(--tf-muted);
  font-size: 11px;
}
.homepage-feature-card__body h2 {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.65;
  font-weight: 700;
}
.homepage-feature-card__body h2 a {
  color: var(--tf-text);
  text-decoration: none;
}
.homepage-feature-card__body h2 a:hover { color: var(--tf-accent); }
@media (max-width: 760px) {
  .homepage-featured-grid { gap: 10px; }
  .homepage-feature-card { border-radius: 14px; }
  .homepage-feature-card__body { padding: 9px 10px 12px; }
  .homepage-feature-card__body h2 { font-size: 13px; line-height: 1.55; }
  .homepage-feature-row { align-items: start !important; }
}

/* v0.4.16 — compact footer brand and remove header tagline. */
.site-header .site-tagline { display: none !important; }
.site-footer.thaqafati-footer { padding: 20px 24px 18px !important; }
.site-footer.thaqafati-footer .footer-inner { gap: 24px 56px !important; }
.site-footer.thaqafati-footer .footer-brand-logo { display:block; width:140px; max-width:100%; height:auto; object-fit:contain; margin:0 0 10px auto; background:transparent !important; }
.site-footer.thaqafati-footer .footer-brand-name { margin-bottom:0 !important; }
.site-footer.thaqafati-footer .footer-description { display:none !important; }
@media (max-width:600px) { .site-footer.thaqafati-footer { padding:18px 20px 18px !important; } }


/* v0.4.18 — concise footer brand description without duplicate site title. */
.site-footer.thaqafati-footer .footer-brand-logo {
  display: block;
  width: 140px;
  height: auto;
  max-width: 100%;
  margin: 0 0 14px auto;
  object-fit: contain;
}
.site-footer.thaqafati-footer .footer-brand-tagline {
  color: #fff !important;
  font-size: 21px !important;
  line-height: 1.5;
  font-weight: 800 !important;
  margin: 0 0 9px !important;
}
.site-footer.thaqafati-footer .footer-description {
  max-width: 340px;
  margin: 0 !important;
  color: #c4cede !important;
  font-size: 14px !important;
  line-height: 2 !important;
}


/* v0.4.20: preserve the established footer logo and make the MARBDATA credit explicit. */
.site-footer.thaqafati-footer .footer-brand-logo {
  display: block !important;
  width: 140px !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain;
  margin: 0 0 14px !important;
}
.site-footer.thaqafati-footer .footer-bottom .footer-credit {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #d8e0ec !important;
}
.site-footer.thaqafati-footer .footer-bottom .footer-credit-link {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.site-footer.thaqafati-footer .footer-bottom .footer-credit-link:hover {
  color: #f0b4ee !important;
}

/* Consistent keyboard focus indicators across theme and embedded form controls. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #ffcf33;
  outline-offset: 3px;
}
:where(input, select, textarea):focus-visible {
  border-color: #6C006E;
}

/* Accessible inline feedback for share and copy actions. */
.share-links .share-status { flex-basis: 100%; color: var(--tf-muted, #666); font-size: 12px; line-height: 1.6; }


/* v0.4.36 — suggested-post widget: always stack each title beneath its image. */
.site-sidebar #block-104 ul.tf-suggested-posts > li,
.site-sidebar #block-104 .wp-block-latest-posts__list > li,
.site-sidebar #block-104 ul.wp-block-latest-posts > li {
  display: flex !important; flex-direction: column !important; align-items: stretch !important;
  width: 100% !important; min-width: 0 !important;
}
.site-sidebar #block-104 .wp-block-latest-posts__featured-image,
.site-sidebar #block-104 .wp-block-latest-posts__post-title {
  float: none !important; clear: both !important; width: 100% !important; max-width: 100% !important;
}
.site-sidebar #block-104 .wp-block-latest-posts__featured-image { order: 0 !important; }
.site-sidebar #block-104 .wp-block-latest-posts__post-title {
  order: 1 !important; display: block !important; margin: 7px 0 0 !important;
  text-align: right !important; white-space: normal !important; overflow-wrap: anywhere !important;
}
.site-sidebar #block-104 .wp-block-latest-posts__featured-image img {
  display: block !important; width: 100% !important; height: auto !important;
  aspect-ratio: 16 / 9 !important; object-fit: cover !important;
}


/* v0.4.37: stack the actual Latest Posts block in the active sidebar.
   The widget uses .tf-sidebar-suggested and Gutenberg's .alignleft class;
   target these real classes rather than the inactive widget's old ID. */
.tf-sidebar-suggested .tf-suggested-posts > li {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
}
.tf-sidebar-suggested .tf-suggested-posts .wp-block-latest-posts__featured-image,
.tf-sidebar-suggested .tf-suggested-posts .wp-block-latest-posts__post-title {
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.tf-sidebar-suggested .tf-suggested-posts .wp-block-latest-posts__featured-image {
  order: 0 !important;
  margin-bottom: 0 !important;
}
.tf-sidebar-suggested .tf-suggested-posts .wp-block-latest-posts__featured-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}
.tf-sidebar-suggested .tf-suggested-posts .wp-block-latest-posts__post-title {
  order: 1 !important;
  margin-top: 7px !important;
  text-align: right !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}