/*
Theme Name: Sai Magazine
Theme URI: https://dmninjas.in/
Author: DM Ninjas
Description: Lightweight, accessible magazine theme for Sai Prashnavali. Grid archives, universal sidebars, stable media sizing, and Yoast SEO compatibility.
Version: 1.6.8
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sai-magazine
*/

:root {
  --sm-bg: #ffffff;
  --sm-surface: #f7f7f5;
  --sm-text: #202124;
  --sm-muted: #666b73;
  --sm-line: #e5e7eb;
  --sm-accent: #9a5b16;
  --sm-accent-dark: #70400e;
  --sm-max: 1180px;
  --sm-sidebar: 320px;
  --sm-radius: 10px;
  --sm-shadow: 0 6px 24px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--sm-bg);color:var(--sm-text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:16px;line-height:1.7;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
iframe{max-width:100%}
a{color:var(--sm-accent-dark);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--sm-accent)}
button,input,select,textarea{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{position:fixed!important;top:10px;left:10px;width:auto;height:auto;padding:10px 14px;background:#fff;clip:auto;z-index:99999}

.site-shell{width:min(100% - 32px,var(--sm-max));margin-inline:auto}
.site-header{background:#fff;border-bottom:1px solid var(--sm-line);position:relative;z-index:20}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:82px}
.site-branding{display:flex;align-items:center;min-width:0}
.custom-logo-link{display:inline-flex;align-items:center}
.custom-logo{width:auto;max-height:58px}
.site-title{margin:0;font-size:1.45rem;line-height:1.2;font-weight:750}
.site-title a{text-decoration:none;color:var(--sm-text)}
.site-description{margin:4px 0 0;color:var(--sm-muted);font-size:.86rem}

.menu-toggle{display:none;border:1px solid var(--sm-line);background:#fff;padding:8px 11px;border-radius:7px;cursor:pointer}
.primary-nav ul{display:flex;align-items:center;flex-wrap:wrap;gap:6px 22px;list-style:none;margin:0;padding:0}
.primary-nav li{position:relative}
.primary-nav a{display:block;padding:12px 0;text-decoration:none;color:var(--sm-text);font-weight:600;font-size:.94rem}
.primary-nav a:hover,.primary-nav .current-menu-item>a{color:var(--sm-accent)}
.primary-nav .sub-menu{position:absolute;top:100%;left:0;display:none;width:230px;padding:8px;background:#fff;border:1px solid var(--sm-line);box-shadow:var(--sm-shadow);border-radius:8px}
.primary-nav li:hover>.sub-menu,.primary-nav li:focus-within>.sub-menu{display:block}
.primary-nav .sub-menu li{width:100%}
.primary-nav .sub-menu a{padding:9px 10px;font-weight:500}

.site-main-wrap{padding:36px 0 54px}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) var(--sm-sidebar);gap:38px;align-items:start}
.content-area{min-width:0}
.sidebar{min-width:0}

.page-header{margin:0 0 26px;padding-bottom:18px;border-bottom:1px solid var(--sm-line)}
.page-title,.entry-title{margin:0;color:#17181a;line-height:1.22;letter-spacing:-.025em}
.page-title{font-size:clamp(1.7rem,3vw,2.4rem)}
.archive-description{color:var(--sm-muted);max-width:760px}

.posts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.post-card{background:#fff;border:1px solid var(--sm-line);border-radius:var(--sm-radius);overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.025);min-width:0}
.post-card:hover{box-shadow:var(--sm-shadow)}
.card-thumb{display:block;background:var(--sm-surface);aspect-ratio:16/9;overflow:hidden}
.card-thumb img{width:100%;height:100%;object-fit:cover}
.card-body{padding:20px}
.card-title{font-size:1.25rem;line-height:1.35;margin:5px 0 10px;letter-spacing:-.015em}
.card-title a{text-decoration:none;color:var(--sm-text)}
.card-title a:hover{color:var(--sm-accent)}
.entry-meta{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--sm-muted);font-size:.82rem}
.card-excerpt{margin-top:12px;color:#4c5056;font-size:.95rem}
.read-more{display:inline-block;margin-top:8px;font-weight:700;text-decoration:none}

.single-article,.page-article{min-width:0}
.single-header{margin-bottom:24px}
.single-header .entry-title{font-size:clamp(2rem,4vw,3.05rem)}
.featured-image{margin:0 0 28px;border-radius:var(--sm-radius);overflow:hidden;background:var(--sm-surface);aspect-ratio:16/9}
.featured-image img{width:100%;height:100%;object-fit:cover}
.entry-content{font-size:1.05rem;overflow-wrap:anywhere}
.entry-content>*:first-child{margin-top:0}
.entry-content h2{font-size:1.7rem;line-height:1.3;margin:2.1em 0 .65em}
.entry-content h3{font-size:1.35rem;line-height:1.35;margin:1.8em 0 .55em}
.entry-content p,.entry-content ul,.entry-content ol{margin:0 0 1.25em}
.entry-content blockquote{margin:1.7em 0;padding:16px 22px;border-left:4px solid var(--sm-accent);background:var(--sm-surface)}
.entry-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.entry-content th,.entry-content td{border:1px solid var(--sm-line);padding:10px 12px}
.entry-content figure{margin-left:0;margin-right:0}
.entry-content img{border-radius:8px}
.entry-footer{margin-top:34px;padding-top:20px;border-top:1px solid var(--sm-line)}

.ad-slot{width:100%;min-height:280px;display:flex;align-items:center;justify-content:center;background:#fafafa;border:1px dashed #d8dadd;color:#8b8f96;font-size:.78rem;text-align:center;overflow:hidden}
.ad-slot--horizontal{min-height:110px;margin:0 0 28px}

.widget{margin-bottom:26px;padding:20px;background:#fff;border:1px solid var(--sm-line);border-radius:var(--sm-radius)}
.widget-title{font-size:1.03rem;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid var(--sm-line)}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:8px 0;border-bottom:1px solid #f0f1f2}
.widget li:last-child{border-bottom:0}
.widget a{text-decoration:none}
.widget_search .wp-block-search__inside-wrapper,.search-form{display:flex;gap:7px}
.search-field{width:100%;min-width:0;border:1px solid var(--sm-line);padding:10px;border-radius:6px}
.search-submit{border:0;background:var(--sm-accent-dark);color:#fff;padding:10px 13px;border-radius:6px;cursor:pointer}

.pagination,.nav-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:34px}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 11px;border:1px solid var(--sm-line);border-radius:6px;text-decoration:none}
.page-numbers.current{background:var(--sm-accent-dark);color:#fff;border-color:var(--sm-accent-dark)}
.post-navigation{margin-top:32px;padding-top:24px;border-top:1px solid var(--sm-line)}
.post-navigation .nav-links{justify-content:space-between}

.site-footer{border-top:1px solid var(--sm-line);background:#fafaf9;padding:42px 0 24px}
.footer-widgets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.footer-widget{min-width:0}
.footer-bottom{margin-top:30px;padding-top:20px;border-top:1px solid var(--sm-line);color:var(--sm-muted);font-size:.88rem}

.alignwide{max-width:1100px;margin-left:auto;margin-right:auto}
.alignfull{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw)}

@media (max-width:960px){
  .menu-toggle{display:inline-block}
  .header-inner{flex-wrap:wrap;padding:12px 0}
  .primary-nav{display:none;width:100%}
  .primary-nav.is-open{display:block}
  .primary-nav ul{display:block}
  .primary-nav a{padding:10px 0}
  .primary-nav .sub-menu{position:static;display:block;width:auto;border:0;box-shadow:none;padding:0 0 0 16px}
  .content-layout{grid-template-columns:1fr}
  .sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .widget{margin:0}
}
@media (max-width:640px){
  .site-shell{width:min(100% - 22px,var(--sm-max))}
  .site-main-wrap{padding-top:24px}
  .posts-grid{grid-template-columns:1fr;gap:20px}
  .sidebar,.footer-widgets{grid-template-columns:1fr}
  .single-header .entry-title{font-size:2rem}
  .entry-content{font-size:1rem}
}

/* Premium editorial refinement */
:root {
  --sm-bg: #ffffff;
  --sm-surface: #f6f4ef;
  --sm-text: #111111;
  --sm-muted: #626262;
  --sm-line: #dedbd3;
  --sm-accent: #c9a44c;
  --sm-accent-dark: #8a681c;
  --sm-black: #090909;
  --sm-gold-soft: #f4ead0;
  --sm-radius: 3px;
  --sm-shadow: 0 18px 45px rgba(0,0,0,.09);
}

body { background:#fff; color:var(--sm-text); }
.site-header {
  background:var(--sm-black);
  border-bottom:1px solid rgba(201,164,76,.48);
  color:#fff;
}
.site-title a,.site-description,.primary-nav a { color:#fff; }
.site-description { color:#cacaca; }
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item>a { color:var(--sm-accent); }
.primary-nav .sub-menu {
  background:#111;
  border-color:#2d2d2d;
  border-top:2px solid var(--sm-accent);
  box-shadow:0 20px 45px rgba(0,0,0,.28);
}
.menu-toggle {
  background:#111;
  color:#fff;
  border-color:#4b4b4b;
}
.menu-toggle:hover,.menu-toggle:focus-visible { border-color:var(--sm-accent); color:var(--sm-accent); }

.site-main-wrap { background:#fff; }
.page-title,.entry-title,.card-title,.widget-title { color:#0b0b0b; }
.page-title,.entry-title { font-family:Georgia,"Times New Roman",serif; font-weight:700; }
.page-header { border-bottom-color:var(--sm-accent); }
.post-card,.widget {
  border-color:#e4e0d8;
  box-shadow:0 8px 28px rgba(0,0,0,.045);
}
.post-card { transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.post-card:hover { transform:translateY(-3px); border-color:#d1bd88; box-shadow:var(--sm-shadow); }
.card-title a:hover,.widget a:hover,.read-more:hover { color:var(--sm-accent-dark); }
.read-more { color:#151515; border-bottom:2px solid var(--sm-accent); }
.search-submit,.page-numbers.current { background:#111; border-color:#111; }
.search-submit:hover,.search-submit:focus-visible { background:var(--sm-accent-dark); }

.site-footer {
  background:var(--sm-black);
  color:#fff;
  border-top:2px solid var(--sm-accent);
}
.site-footer .widget,.site-footer .footer-widget { background:transparent; color:#fff; border-color:#303030; box-shadow:none; }
.site-footer .widget-title { color:#fff; border-bottom-color:#3a3a3a; }
.site-footer a { color:#fff; }
.site-footer a:hover,.site-footer a:focus-visible { color:var(--sm-accent); }
.footer-bottom { color:#bdbdbd; border-top-color:#303030; }
.footer-bottom ul { display:flex; flex-wrap:wrap; gap:10px 22px; margin:0 0 16px; padding:0; list-style:none; }

/* Yoast FAQ block: accessible accordion, progressively enhanced by JS. */
.schema-faq { margin:2rem 0; border-top:1px solid #d8d3c8; }
.schema-faq-section { margin:0; border:1px solid #d8d3c8; border-top:0; background:#fff; }
.schema-faq-question { display:block; margin:0; font-size:1.05rem; line-height:1.4; }
.schema-faq-toggle {
  width:100%; min-height:58px; display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding:16px 18px; border:0; background:#fff; color:#111; text-align:left;
  font-weight:750; cursor:pointer;
}
.schema-faq-toggle:hover,.schema-faq-toggle:focus-visible { background:var(--sm-gold-soft); }
.schema-faq-toggle:focus-visible { outline:3px solid var(--sm-accent); outline-offset:-3px; }
.schema-faq-icon { position:relative; flex:0 0 18px; width:18px; height:18px; }
.schema-faq-icon::before,.schema-faq-icon::after { content:""; position:absolute; top:8px; left:1px; width:16px; height:2px; background:#111; }
.schema-faq-icon::after { transform:rotate(90deg); transition:transform .18s ease; }
.schema-faq-toggle[aria-expanded="true"] .schema-faq-icon::after { transform:rotate(0); }
.schema-faq-answer { margin:0; padding:0 18px 18px; color:#363636; }
.schema-faq-answer[hidden] { display:none; }

:where(a,button,input,select,textarea):focus-visible { outline:3px solid var(--sm-accent); outline-offset:3px; }
::selection { background:var(--sm-accent); color:#111; }

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}

@media (max-width:960px) {
  .primary-nav .sub-menu { background:transparent; border-top:0; }
}

/* Luxury typography, comments and footer refinement - v1.3.0 */
:root {
  --sm-display-font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sm-body-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sm-ink: #14120f;
  --sm-champagne: #d8bd78;
  --sm-champagne-soft: #f7f1e4;
}

body {
  font-family: var(--sm-body-font);
  color: var(--sm-ink);
  letter-spacing: .002em;
}

h1,h2,h3,h4,h5,h6,
.page-title,.entry-title,.card-title,.widget-title,
.comments-title,.comment-reply-title {
  font-family: var(--sm-display-font);
  letter-spacing: -.018em;
}

.entry-content {
  max-width: 78ch;
  line-height: 1.82;
}

.entry-content h2,
.entry-content h3 {
  color: #12100d;
  font-weight: 700;
}

/* Premium comments presentation */
.comments-area {
  margin-top: 52px;
  padding-top: 0;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 24px;
  color: #13110e;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.comment-list,
.comment-list .children {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.comment-list .children {
  margin: 20px 0 0 42px;
}

.comment-list > li,
.comment-list .children > li {
  margin: 0 0 24px;
}

.comment-body {
  position: relative;
  padding: 24px 26px 22px 92px;
  background: #fff;
  border: 1px solid #e8e1d3;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(31, 24, 13, .055);
}

.comment-author .avatar {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ddd2bb, 0 8px 20px rgba(0,0,0,.09);
}

.comment-author .fn,
.comment-author .fn a {
  color: #17130e;
  font-family: var(--sm-display-font);
  font-size: 1.08rem;
  font-style: normal;
  font-weight: 700;
  text-decoration: none;
}

.comment-author .says { color: #7a7266; font-size: .85rem; }
.comment-metadata { margin-top: 3px; font-size: .82rem; color: #82796b; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-metadata a:hover { color: var(--sm-accent-dark); }
.comment-content { margin-top: 16px; color: #302b25; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 15px; }
.reply a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid #d9c795;
  border-radius: 999px;
  color: #5d4510;
  background: #fffdf8;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.reply a:hover,.reply a:focus-visible { background: var(--sm-champagne-soft); color:#251b06; }

.comment-respond {
  margin-top: 38px;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(145deg, #fbf8f1 0%, #fff 72%);
  border: 1px solid #e6dcc7;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(31, 24, 13, .06);
}

.comment-notes,
.logged-in-as,
.must-log-in { margin: 0 0 22px; color: #6d655b; font-size: .92rem; }

.comment-form p { margin: 0 0 20px; }
.comment-form label {
  display: block;
  margin-bottom: 7px;
  color: #24201a;
  font-size: .88rem;
  font-weight: 700;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #17130f;
  background: #fff;
  border: 1px solid #d8d0c2;
  border-radius: 9px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.025);
}
.comment-form textarea {
  min-height: 170px;
  resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #b58e35;
  outline: 3px solid rgba(201,164,76,.2);
  outline-offset: 0;
}
.comment-form-cookies-consent { display:flex; align-items:flex-start; gap:10px; }
.comment-form-cookies-consent input { margin-top:6px; }
.comment-form-cookies-consent label { margin:0; font-weight:500; }
.form-submit { margin-bottom: 0!important; }
.form-submit .submit {
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #0b0b0b;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.form-submit .submit:hover,.form-submit .submit:focus-visible {
  border-color: #8b691c;
  background: #8b691c;
}

/* Footer: luxurious cards with no divider lines */
.site-footer {
  border: 0;
  padding: 58px 0 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(201,164,76,.10), transparent 28%),
    linear-gradient(180deg, #090909 0%, #050505 100%);
}

.footer-widgets { gap: 26px; }
.site-footer .widget,
.site-footer .footer-widget {
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 44px rgba(0,0,0,.18);
}
.site-footer .widget { padding: 26px 24px; }
.site-footer .widget-title {
  margin-bottom: 17px;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 1.12rem;
}
.site-footer .widget-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 11px;
  border-radius: 999px;
  background: var(--sm-champagne);
}
.site-footer .widget li {
  padding: 7px 0;
  border: 0;
}
.site-footer .widget a {
  color: #f2f0eb;
  line-height: 1.55;
  text-decoration: none;
}
.site-footer .widget a:hover,
.site-footer .widget a:focus-visible { color: var(--sm-champagne); }
.footer-bottom {
  margin-top: 30px;
  padding-top: 8px;
  border: 0;
  color: #aaa59c;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #efe5c9; }

@media (max-width:640px) {
  .comment-body { padding: 78px 18px 20px; }
  .comment-author .avatar { top:18px; left:18px; }
  .comment-list .children { margin-left: 18px; }
  .comment-respond { padding: 22px 18px; }
}

/* Related articles, luxury blog interactions and security UI - v1.4.0 */
.posts-grid .post-card {
  position: relative;
  isolation: isolate;
  border: 1px solid #e5dfd2;
  background: linear-gradient(180deg, #fff 0%, #fdfbf7 100%);
  box-shadow: 0 14px 38px rgba(25, 19, 9, .065);
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s ease, border-color .32s ease;
}
.posts-grid .post-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--sm-champagne), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .32s ease;
  z-index: 2;
}
.posts-grid .post-card:hover,
.posts-grid .post-card:focus-within {
  transform: translateY(-8px);
  border-color: #cfb56f;
  box-shadow: 0 24px 58px rgba(25, 19, 9, .14);
}
.posts-grid .post-card:hover::after,
.posts-grid .post-card:focus-within::after { transform: scaleX(1); }
.card-thumb { position: relative; }
.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 28%, rgba(255,255,255,.24) 46%, transparent 64%);
  transform: translateX(-130%);
  transition: transform .7s ease;
  pointer-events: none;
}
.card-thumb img { transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.post-card:hover .card-thumb img,
.post-card:focus-within .card-thumb img { transform: scale(1.055); filter: saturate(1.04) contrast(1.02); }
.post-card:hover .card-thumb::after,
.post-card:focus-within .card-thumb::after { transform: translateX(130%); }
.card-title a { transition: color .2s ease; }
.read-more { position: relative; padding-bottom: 3px; }
.read-more::after {
  content: "→";
  display: inline-block;
  margin-left: 7px;
  transition: transform .2s ease;
}
.post-card:hover .read-more::after,
.post-card:focus-within .read-more::after { transform: translateX(4px); }

.related-posts {
  margin-top: clamp(48px, 7vw, 78px);
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid #e4dccb;
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 0%, rgba(216,189,120,.20), transparent 30%),
    linear-gradient(145deg, #fbf7ee 0%, #fff 68%);
  box-shadow: 0 24px 65px rgba(25, 19, 9, .075);
}
.related-posts-heading { margin-bottom: 25px; }
.section-kicker {
  margin: 0 0 5px;
  color: #806018;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.related-posts-heading h2 {
  margin: 0;
  color: #12100c;
  font-family: var(--sm-display-font);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.2;
}
.related-posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(142,112,44,.2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22,17,8,.055);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.related-card:hover,
.related-card:focus-within { transform: translateY(-5px); border-color:#c7a754; box-shadow:0 20px 40px rgba(22,17,8,.12); }
.related-card-thumb { display:block; aspect-ratio:16/10; overflow:hidden; background:#f2eee5; }
.related-card-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.related-card:hover .related-card-thumb img,
.related-card:focus-within .related-card-thumb img { transform:scale(1.05); }
.related-card-body { padding: 18px; }
.related-card h3 { margin: 7px 0 14px; font-size:1.08rem; line-height:1.38; }
.related-card h3 a { color:#17130d; text-decoration:none; }
.related-card h3 a:hover,
.related-card h3 a:focus-visible { color:#806018; }
.related-read-more { color:#6e5113; font-size:.84rem; font-weight:800; text-decoration:none; }

.sai-comment-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 800px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .posts-grid .post-card,
  .card-thumb img,
  .card-thumb::after,
  .read-more::after,
  .related-card,
  .related-card-thumb img { transition: none !important; transform: none !important; }
}

/* Modern premium typography system - v1.5.0 */
:root {
  --sm-display-font: "Bodoni 72", Didot, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sm-body-font: "Avenir Next", Avenir, "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
  --sm-ui-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sm-reading-width: 72ch;
}

html { font-size: 100%; }
body {
  font-family: var(--sm-body-font);
  font-size: clamp(1rem, .985rem + .08vw, 1.05rem);
  line-height: 1.72;
  letter-spacing: -.004em;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6,
.page-title,.entry-title,.card-title,.widget-title,
.comments-title,.comment-reply-title,
.related-posts-heading h2,
.comment-author .fn,
.comment-author .fn a {
  font-family: var(--sm-display-font);
  font-weight: 700;
  font-kerning: normal;
  text-wrap: balance;
}

h1,.page-title,.entry-title {
  letter-spacing: -.042em;
}
h2 { letter-spacing: -.032em; }
h3,h4 { letter-spacing: -.022em; }

.site-title {
  font-family: var(--sm-display-font);
  font-size: clamp(1.5rem, 1.25rem + .65vw, 2rem);
  font-weight: 700;
  letter-spacing: -.035em;
}
.site-description {
  font-family: var(--sm-ui-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 650;
}

.primary-nav a {
  font-family: var(--sm-ui-font);
  font-size: .8rem;
  font-weight: 720;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.primary-nav .sub-menu a {
  font-size: .76rem;
  letter-spacing: .045em;
  text-transform: none;
}

.page-title { font-size: clamp(2rem, 4vw, 3.25rem); }
.single-header .entry-title {
  max-width: 20ch;
  font-size: clamp(2.35rem, 5.4vw, 4.55rem);
  line-height: 1.04;
}

.entry-meta,
.section-kicker,
.comment-metadata,
.read-more,
.related-read-more,
.form-submit .submit,
.search-submit,
.page-numbers,
.comment-form label {
  font-family: var(--sm-ui-font);
}
.entry-meta {
  font-size: .74rem;
  font-weight: 680;
  letter-spacing: .075em;
  line-height: 1.5;
  text-transform: uppercase;
}

.entry-content {
  max-width: var(--sm-reading-width);
  color: #29251f;
  font-family: var(--sm-body-font);
  font-size: clamp(1.035rem, 1rem + .14vw, 1.12rem);
  line-height: 1.88;
  letter-spacing: -.006em;
}
.entry-content > p:first-of-type {
  font-size: clamp(1.12rem, 1.05rem + .28vw, 1.28rem);
  line-height: 1.78;
  color: #211d18;
}
.entry-content h2 {
  margin-top: 2.15em;
  margin-bottom: .58em;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  line-height: 1.18;
}
.entry-content h3 {
  margin-top: 1.85em;
  font-size: clamp(1.38rem, 1.8vw, 1.72rem);
  line-height: 1.26;
}
.entry-content h4 {
  margin: 1.65em 0 .55em;
  font-size: 1.15rem;
  line-height: 1.35;
}
.entry-content strong { color:#15120e; font-weight:750; }
.entry-content em { font-family: var(--sm-display-font); font-size:1.03em; }
.entry-content li { margin-bottom:.42em; }
.entry-content blockquote {
  font-family: var(--sm-display-font);
  font-size: clamp(1.18rem, 1.1rem + .3vw, 1.38rem);
  line-height: 1.62;
  letter-spacing: -.012em;
}
.entry-content blockquote cite {
  display:block;
  margin-top:.8em;
  font-family:var(--sm-ui-font);
  font-size:.7rem;
  font-style:normal;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.card-title {
  font-size: clamp(1.32rem, 1.2rem + .35vw, 1.55rem);
  line-height: 1.23;
  letter-spacing: -.026em;
}
.card-excerpt {
  color:#514b42;
  font-size:.96rem;
  line-height:1.7;
}
.read-more,.related-read-more {
  font-size:.74rem;
  font-weight:780;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.widget-title {
  font-size:1.18rem;
  line-height:1.25;
  letter-spacing:-.018em;
}
.widget,
.widget a {
  font-size:.94rem;
  line-height:1.58;
}
.site-footer .widget a { letter-spacing:-.004em; }
.footer-bottom {
  font-family:var(--sm-ui-font);
  font-size:.78rem;
  letter-spacing:.025em;
}

.comments-title,.comment-reply-title {
  font-size:clamp(1.75rem, 2.5vw, 2.35rem);
  letter-spacing:-.03em;
}
.comment-author .fn,
.comment-author .fn a {
  font-size:1.15rem;
  letter-spacing:-.016em;
}
.comment-content {
  font-size:1rem;
  line-height:1.76;
}
.comment-form label {
  font-size:.76rem;
  letter-spacing:.07em;
  text-transform:uppercase;
}

button,input,select,textarea {
  font-family:var(--sm-ui-font);
  letter-spacing:normal;
}

@supports (text-wrap: pretty) {
  p,li,.card-excerpt,.comment-content { text-wrap:pretty; }
}

@media (max-width:640px) {
  body { line-height:1.68; }
  .single-header .entry-title { max-width:none; line-height:1.08; }
  .entry-content { line-height:1.8; }
  .primary-nav a { letter-spacing:.055em; }
}

/* Modern luxury header and full-site refinement - v1.6.0 */
:root {
  --sm-header-black: #080808;
  --sm-header-deep: #10100f;
  --sm-luxury-gold: #c7a35a;
  --sm-luxury-gold-light: #ead9ad;
  --sm-cream: #f7f3ea;
  --sm-modern-shadow: 0 24px 70px rgba(21, 17, 10, .12);
}

body {
  background: #fff;
  color: #171511;
  font-family: var(--sm-body-font);
  font-kerning: normal;
}

.site-header {
  position: relative;
  z-index: 1000;
  min-height: 132px;
  border: 0;
  background: var(--sm-header-black);
  box-shadow: 0 1px 0 rgba(199, 163, 90, .28);
}
.header-main {
  background:
    radial-gradient(circle at 50% -120%, rgba(199,163,90,.22), transparent 47%),
    linear-gradient(135deg, #050505 0%, #11110f 52%, #070707 100%);
}
.header-inner {
  min-height: 86px;
  justify-content: center;
  padding-block: 13px;
}
.site-branding { justify-content: center; text-align: center; }
.custom-logo { max-height: 60px; width: auto; }
.site-title {
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.55rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.site-title a { color: #fff; }
.site-description {
  margin-top: 8px;
  color: var(--sm-luxury-gold-light);
  letter-spacing: .18em;
}
.header-navigation-row {
  min-height: 46px;
  border-top: 1px solid rgba(255,255,255,.065);
  background: rgba(5,5,5,.97);
}
.primary-nav { display: flex; justify-content: center; }
.primary-nav > .primary-menu,
.primary-nav > div > ul {
  min-height: 46px;
  justify-content: center;
  gap: 0;
}
.primary-nav li { display: flex; align-items: center; }
.primary-nav a {
  position: relative;
  padding: 15px 18px 14px;
  color: #f5f3ed;
  font-size: .76rem;
  letter-spacing: .12em;
}
.primary-nav > ul > li > a::after,
.primary-nav > .primary-menu > li > a::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 9px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sm-luxury-gold), transparent);
  transform: scaleX(0);
  transition: transform .24s ease;
}
.primary-nav > ul > li:hover > a::after,
.primary-nav > ul > li:focus-within > a::after,
.primary-nav > ul > li.current-menu-item > a::after,
.primary-nav > .primary-menu > li:hover > a::after,
.primary-nav > .primary-menu > li:focus-within > a::after,
.primary-nav > .primary-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item > a { color: var(--sm-luxury-gold-light); }

.submenu-toggle {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: -12px;
  margin-right: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sm-luxury-gold-light);
  cursor: pointer;
}
.submenu-toggle span {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px);
  transition: transform .2s ease;
}
.submenu-toggle[aria-expanded="true"] span { transform: rotate(225deg) translate(-1px,-1px); }
.submenu-toggle:focus-visible { outline: 2px solid var(--sm-luxury-gold); outline-offset: 2px; border-radius: 50%; }

.primary-nav .sub-menu {
  top: calc(100% + 1px);
  display: block;
  width: 270px;
  padding: 10px;
  border: 1px solid rgba(199,163,90,.28);
  border-radius: 0 0 10px 10px;
  background: rgba(13,13,12,.99);
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu li { display: block; }
.primary-nav .sub-menu a {
  padding: 11px 13px;
  border-radius: 5px;
  color: #ece8dd;
  font-size: .78rem;
  letter-spacing: .035em;
}
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible { background: rgba(199,163,90,.12); color: #fff1c8; }
.primary-nav .sub-menu .sub-menu { top: -10px; left: calc(100% + 10px); }

.menu-toggle,
.menu-backdrop { display: none; }

.site-main-wrap { padding-top: clamp(32px, 4vw, 58px); }
.page-header {
  position: relative;
  padding-bottom: 24px;
  border: 0;
}
.page-header::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 20px;
  background: var(--sm-luxury-gold);
}
.page-title,.entry-title { color: #12100d; }

.post-card {
  border-radius: 14px;
  background: #fff;
}
.card-body { padding: 24px 24px 26px; }
.card-thumb { aspect-ratio: 16/10; }
.card-title { margin-top: 9px; }
.read-more {
  color: #6f5014;
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.single-header {
  max-width: 940px;
  margin-bottom: 30px;
}
.single-header .entry-title { max-width: 21ch; }
.featured-image {
  border-radius: 16px;
  box-shadow: var(--sm-modern-shadow);
}
.entry-content h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 12px;
  background: var(--sm-luxury-gold);
}
.widget {
  border-color: #e7dfd0;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(24,19,10,.045);
}
.widget-title { border: 0; padding-bottom: 0; }
.widget-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 10px;
  background: var(--sm-luxury-gold);
}

/* Render desktop sections at their real height. Estimated intrinsic sizes can
   improve mobile paint time, but on wide layouts they can create visible shifts. */
.related-posts,
.comments-area,
.sidebar .widget,
.site-footer {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

@media (max-width: 960px) {
  .site-header { min-height: 76px; }
  .header-main { position: relative; z-index: 3; }
  .header-inner {
    min-height: 76px;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-block: 9px;
  }
  .site-branding { justify-content: flex-start; text-align: left; }
  .custom-logo { max-height: 50px; }
  .site-title { font-size: clamp(1.45rem, 5.8vw, 1.95rem); }
  .site-description { display: none; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 48px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(234,217,173,.36);
    border-radius: 7px;
    background: rgba(255,255,255,.035);
    color: #fff;
  }
  .menu-toggle-label {
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
  }
  .menu-toggle-lines { display: grid; gap: 4px; width: 20px; }
  .menu-toggle-lines span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: currentColor;
    transition: transform .22s ease, opacity .18s ease;
  }
  .menu-is-open .menu-toggle-lines span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .menu-is-open .menu-toggle-lines span:nth-child(2) { opacity: 0; }
  .menu-is-open .menu-toggle-lines span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .header-navigation-row {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: min(88vw, 390px);
    min-height: 100dvh;
    padding-top: 86px;
    border: 0;
    background:
      radial-gradient(circle at 100% 0, rgba(199,163,90,.16), transparent 38%),
      #0b0b0a;
    box-shadow: -24px 0 70px rgba(0,0,0,.35);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.2,.75,.25,1), visibility .28s;
  }
  .menu-is-open .header-navigation-row { transform: translateX(0); visibility: visible; }
  .header-navigation-row .site-shell { width: 100%; }
  .primary-nav { display: block; width: 100%; max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul,
  .primary-nav > .primary-menu,
  .primary-nav > div > ul { display: block; min-height: 0; padding: 8px 22px 30px; }
  .primary-nav li {
    display: grid;
    grid-template-columns: minmax(0,1fr) 44px;
    border-bottom: 1px solid rgba(255,255,255,.075);
  }
  .primary-nav li > a { padding: 16px 2px; }
  .primary-nav > ul > li > a::after,
  .primary-nav > .primary-menu > li > a::after { display: none; }
  .submenu-toggle {
    width: 44px;
    height: 44px;
    margin: 4px 0;
  }
  .primary-nav .sub-menu,
  .primary-nav .sub-menu .sub-menu {
    position: static;
    grid-column: 1 / -1;
    display: none;
    width: auto;
    padding: 0 0 10px 14px;
    border: 0;
    border-left: 1px solid rgba(199,163,90,.35);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .primary-nav li.submenu-open > .sub-menu { display: block; }
  .primary-nav .sub-menu li { display: block; border: 0; }
  .primary-nav .sub-menu a { padding: 10px 12px; }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,.54);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
  }
  .menu-is-open .menu-backdrop { opacity: 1; visibility: visible; }
  body.mobile-menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .card-body { padding: 21px 19px 23px; }
  .featured-image { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .header-navigation-row,
  .menu-toggle-lines span,
  .primary-nav .sub-menu,
  .submenu-toggle span { transition: none !important; }
}


/* Single-line luxury desktop header - v1.6.1 */
@media (min-width: 961px) {
  .site-header {
    min-height: 82px;
  }
  .header-main {
    min-height: 82px;
  }
  .header-inner {
    min-height: 82px;
    justify-content: flex-start;
    gap: clamp(28px, 3.5vw, 58px);
    padding-block: 10px;
  }
  .site-branding {
    flex: 0 0 auto;
    justify-content: flex-start;
    text-align: left;
  }
  .custom-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 58px;
  }
  .brand-copy {
    min-width: max-content;
  }
  .site-title {
    font-size: clamp(1.45rem, 1.15rem + .65vw, 2rem);
  }
  .site-description {
    margin-top: 6px;
    font-size: .64rem;
    letter-spacing: .14em;
  }
  .header-navigation-row {
    flex: 1 1 auto;
    min-width: 0;
    min-height: auto;
    margin-left: auto;
    border: 0;
    background: transparent;
  }
  .header-navigation-row .site-shell {
    width: 100%;
  }
  .primary-nav {
    justify-content: flex-end;
  }
  .primary-nav > .primary-menu,
  .primary-nav > div > ul {
    min-height: 62px;
    justify-content: flex-end;
  }
  .primary-nav a {
    padding: 22px clamp(10px, 1.25vw, 18px) 21px;
    white-space: nowrap;
  }
  .primary-nav > ul > li > a::after,
  .primary-nav > .primary-menu > li > a::after {
    right: clamp(10px, 1.25vw, 18px);
    bottom: 15px;
    left: clamp(10px, 1.25vw, 18px);
  }
  .submenu-toggle {
    margin-left: -10px;
    margin-right: 1px;
  }
}

@media (min-width: 961px) and (max-width: 1120px) {
  .header-inner { gap: 20px; }
  .custom-logo { max-width: 175px; max-height: 52px; }
  .site-description { display: none; }
  .primary-nav a { font-size: .7rem; letter-spacing: .08em; padding-inline: 9px; }
  .primary-nav > ul > li > a::after,
  .primary-nav > .primary-menu > li > a::after { right: 9px; left: 9px; }
}

/* Premium WordPress table and Yoast FAQ refinements - v1.6.2 */
.wp-block-table,
.entry-content .wp-block-table {
  width:100%;
  margin:2rem 0;
  overflow-x:auto;
  border:1px solid #e5dfd2;
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 34px rgba(19,16,10,.06);
  -webkit-overflow-scrolling:touch;
}

.wp-block-table table,
.entry-content .wp-block-table table {
  width:100%;
  min-width:620px;
  margin:0;
  border:0;
  border-collapse:separate;
  border-spacing:0;
  display:table;
  overflow:visible;
  font-size:.96rem;
  line-height:1.55;
}

.wp-block-table thead,
.entry-content .wp-block-table thead {
  background:linear-gradient(135deg,#111 0%,#24201a 100%);
  color:#fff;
}

.wp-block-table th,
.entry-content .wp-block-table th {
  padding:15px 18px;
  border:0;
  border-right:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-size:.78rem;
  font-weight:750;
  letter-spacing:.075em;
  line-height:1.4;
  text-align:left;
  text-transform:uppercase;
  vertical-align:middle;
}

.wp-block-table th:last-child,
.entry-content .wp-block-table th:last-child { border-right:0; }

.wp-block-table td,
.entry-content .wp-block-table td {
  padding:14px 18px;
  border:0;
  border-right:1px solid #ebe6dd;
  border-bottom:1px solid #ebe6dd;
  color:#2d2923;
  vertical-align:top;
}

.wp-block-table td:last-child,
.entry-content .wp-block-table td:last-child { border-right:0; }
.wp-block-table tbody tr:last-child td,
.entry-content .wp-block-table tbody tr:last-child td { border-bottom:0; }

.wp-block-table tbody tr:nth-child(odd),
.entry-content .wp-block-table tbody tr:nth-child(odd) { background:#fff; }
.wp-block-table tbody tr:nth-child(even),
.entry-content .wp-block-table tbody tr:nth-child(even) { background:#f7f4ed; }

.wp-block-table tbody tr {
  transition:background-color .18s ease,box-shadow .18s ease;
}
.wp-block-table tbody tr:hover,
.entry-content .wp-block-table tbody tr:hover {
  background:#f2ead8;
  box-shadow:inset 4px 0 0 var(--sm-accent);
}

.wp-block-table.is-style-stripes,
.entry-content .wp-block-table.is-style-stripes { border-bottom:1px solid #e5dfd2; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background:#fff; }
.wp-block-table.is-style-stripes tbody tr:nth-child(even),
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(even) { background:#f7f4ed; }

.wp-block-table figcaption,
.entry-content .wp-block-table figcaption {
  margin:0;
  padding:11px 16px 13px;
  border-top:1px solid #ebe6dd;
  background:#fbfaf7;
  color:#70695e;
  font-size:.82rem;
  line-height:1.5;
  text-align:left;
}

/* Premium Yoast SEO FAQ accordion. The first item is expanded by JS. */
.schema-faq {
  margin:2.4rem 0;
  border:0;
  display:grid;
  gap:12px;
}
.schema-faq-section {
  position:relative;
  margin:0;
  overflow:hidden;
  border:1px solid #e3ddd1;
  border-radius:10px;
  background:#fff;
  box-shadow:0 8px 26px rgba(19,16,10,.045);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.schema-faq-section:hover {
  border-color:#d7c18e;
  box-shadow:0 13px 32px rgba(19,16,10,.075);
}
.schema-faq-section:has(.schema-faq-toggle[aria-expanded="true"]) {
  border-color:#d5bd80;
  box-shadow:0 14px 34px rgba(19,16,10,.08);
}
.schema-faq-question {
  display:block;
  margin:0;
  font-family:var(--sm-body-font);
  font-size:1rem;
  line-height:1.45;
}
.schema-faq-toggle {
  position:relative;
  width:100%;
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px 18px 24px;
  border:0;
  border-left:4px solid transparent;
  background:#fff;
  color:#16130e;
  text-align:left;
  font-size:1rem;
  font-weight:720;
  letter-spacing:-.008em;
  cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}
.schema-faq-toggle:hover,
.schema-faq-toggle:focus-visible { background:#faf7f0; }
.schema-faq-toggle[aria-expanded="true"] {
  border-left-color:var(--sm-accent);
  background:linear-gradient(90deg,#f8f1df 0%,#fff 72%);
  color:#0d0b08;
}
.schema-faq-toggle:focus-visible {
  outline:3px solid var(--sm-accent);
  outline-offset:-3px;
}
.schema-faq-label { padding-right:8px; }
.schema-faq-icon {
  position:relative;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border:1px solid #d9c58f;
  border-radius:50%;
  background:#fff;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}
.schema-faq-icon::before,
.schema-faq-icon::after {
  content:"";
  position:absolute;
  top:15px;
  left:9px;
  width:14px;
  height:2px;
  border-radius:2px;
  background:#8a681c;
}
.schema-faq-icon::after { transform:rotate(90deg); transition:transform .18s ease; }
.schema-faq-toggle[aria-expanded="true"] .schema-faq-icon {
  border-color:#111;
  background:#111;
  transform:rotate(180deg);
}
.schema-faq-toggle[aria-expanded="true"] .schema-faq-icon::before,
.schema-faq-toggle[aria-expanded="true"] .schema-faq-icon::after { background:var(--sm-accent); }
.schema-faq-toggle[aria-expanded="true"] .schema-faq-icon::after { transform:rotate(0); }
.schema-faq-answer {
  margin:0;
  padding:0 24px 22px 28px;
  border-left:4px solid var(--sm-accent);
  background:linear-gradient(90deg,#f8f1df 0%,#fff 72%);
  color:#4a443a;
  font-size:.98rem;
  line-height:1.75;
}
.schema-faq-answer > :last-child { margin-bottom:0; }
.schema-faq-answer[hidden] { display:none; }

@media (max-width:640px) {
  .wp-block-table table,
  .entry-content .wp-block-table table { min-width:560px; font-size:.92rem; }
  .wp-block-table th,.entry-content .wp-block-table th,
  .wp-block-table td,.entry-content .wp-block-table td { padding:12px 14px; }
  .schema-faq { gap:10px; }
  .schema-faq-toggle { min-height:60px; padding:15px 14px 15px 17px; font-size:.96rem; }
  .schema-faq-icon { flex-basis:30px; width:30px; height:30px; }
  .schema-faq-icon::before,.schema-faq-icon::after { top:13px; left:8px; width:12px; }
  .schema-faq-answer { padding:0 18px 18px 21px; font-size:.94rem; }
}

/* Refined heading scale - v1.6.3 */
h1,
.page-title,
.entry-title {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.12;
}

.single-header .entry-title {
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1.08;
}

.entry-content h2 {
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  line-height: 1.24;
}

.entry-content h3 {
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  line-height: 1.3;
}

@media (max-width: 640px) {
  h1,
  .page-title,
  .entry-title {
    font-size: clamp(1.65rem, 7.2vw, 2.15rem);
  }

  .single-header .entry-title {
    font-size: clamp(1.85rem, 8.4vw, 2.55rem);
  }

  .entry-content h2 {
    font-size: clamp(1.4rem, 6.2vw, 1.7rem);
  }

  .entry-content h3 {
    font-size: clamp(1.2rem, 5.2vw, 1.4rem);
  }
}


/* Accessibility remediation - v1.6.5 */
:root {
  --sm-accessible-gold-text:#684b08;
  --sm-accessible-gold-dark:#f0d487;
  --sm-accessible-muted:#565656;
}

/* Keep all ordinary text comfortably above WCAG AA contrast thresholds. */
body,
.entry-content,
.comment-content { color:#171717; }
.entry-meta,
.archive-description,
.card-excerpt,
.site-description { color:var(--sm-accessible-muted); }

/* Links embedded in prose must not rely on colour alone. */
.entry-content a:not(.wp-element-button):not(.button),
.comment-content a,
.comment-metadata a,
.logged-in-as a,
.must-log-in a,
.site-footer p a {
  color:var(--sm-accessible-gold-text);
  text-decoration-line:underline;
  text-decoration-thickness:2px;
  text-underline-offset:.2em;
  text-decoration-skip-ink:auto;
}
.entry-content a:not(.wp-element-button):not(.button):hover,
.entry-content a:not(.wp-element-button):not(.button):focus-visible,
.comment-content a:hover,
.comment-content a:focus-visible,
.comment-metadata a:hover,
.comment-metadata a:focus-visible,
.logged-in-as a:hover,
.logged-in-as a:focus-visible,
.must-log-in a:hover,
.must-log-in a:focus-visible { color:#111; }

/* High-contrast dark-surface text and interactive states. */
.site-header .primary-nav a:hover,
.site-header .primary-nav a:focus-visible,
.site-header .primary-nav .current-menu-item > a,
.site-footer a:hover,
.site-footer a:focus-visible { color:var(--sm-accessible-gold-dark); }
.site-footer,
.site-footer p,
.site-footer li,
.footer-bottom { color:#d7d7d7; }
.site-footer .widget-title { color:#fff; }
.site-footer a {
  color:#fff;
  text-decoration-thickness:1.5px;
  text-underline-offset:.22em;
}

.read-more,
.related-read-more { color:#604505; }

/* Consistent, visible keyboard focus without changing layout. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline:3px solid #b37b00;
  outline-offset:3px;
}
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible { outline-color:#f0d487; }

/* Labels inserted by the accessibility helper remain available to AT. */
.sai-generated-label {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  border:0!important;
}


/* Core Web Vitals refinements - v1.6.6 */
/* Reserve stable branding space before the logo image is decoded. */
@media (min-width: 961px) {
  .custom-logo-link {
    width: 220px;
    min-height: 58px;
    justify-content: flex-start;
  }
  .custom-logo {
    max-width: 100%;
  }
}
@media (min-width: 961px) and (max-width: 1120px) {
  .custom-logo-link {
    width: 175px;
    min-height: 52px;
  }
}
@media (max-width: 960px) {
  .custom-logo-link {
    width: 175px;
    min-height: 50px;
    justify-content: flex-start;
  }
  .custom-logo {
    max-width: 100%;
  }
}

/* Above-the-fold widgets must render at their real height to avoid intrinsic-size shifts. */
.comments-area,
.sidebar .widget {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

/* Keep the unenhanced Yoast FAQ layout visually stable before JavaScript runs. */
.schema-faq:not(.is-accordion-ready) .schema-faq-question {
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 18px 18px 18px 21px;
  background: #fff;
}
.schema-faq:not(.is-accordion-ready) .schema-faq-section:not(:first-child) .schema-faq-answer {
  display: none;
}

/* Runtime-generated accessible names are non-visual and cannot move content. */
.sai-generated-label { display: none !important; }


/* Mobile visual-completion and main-thread refinements - v1.6.7 */
@media (max-width: 640px) {
  /* Avoid painting content that is safely below the initial mobile viewport. */
  .posts-grid .post-card:nth-child(n+3),
  .sidebar,
  .related-posts,
  .comments-area,
  .site-footer {
    content-visibility: auto;
  }

  .posts-grid .post-card:nth-child(n+3) { contain-intrinsic-size: 0 430px; }
  .sidebar { contain-intrinsic-size: 0 720px; }
  .related-posts { contain-intrinsic-size: 0 520px; }
  .comments-area { contain-intrinsic-size: 0 760px; }
  .site-footer { contain-intrinsic-size: 0 680px; }

  /* Mobile devices do not need hover-only paint effects. */
  .post-card,
  .post-card:hover,
  .card-thumb img,
  .related-card,
  .related-card:hover,
  .related-card img,
  .primary-nav a::after,
  .read-more::after {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .post-card:hover,
  .related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.055); }

  /* Keep the first viewport compact so meaningful content appears sooner. */
  .site-main-wrap { padding-top: 18px; padding-bottom: 40px; }
  .page-header { margin-bottom: 18px; padding-bottom: 12px; }
  .single-header { margin-bottom: 18px; }
  .featured-image { margin-bottom: 22px; }

  /* Reduce expensive decorative paint on constrained devices. */
  .site-header,
  .primary-nav,
  .primary-nav .sub-menu,
  .post-card,
  .widget,
  .schema-faq-section {
    backdrop-filter: none !important;
    filter: none !important;
  }
}


/* Desktop Core Web Vitals correction - v1.6.8 */
@media (min-width: 641px) {
  .posts-grid .post-card,
  .sidebar,
  .sidebar .widget,
  .related-posts,
  .comments-area,
  .site-footer {
    content-visibility: visible !important;
    contain-intrinsic-size: none !important;
  }

  /* Keep first-paint geometry deterministic. */
  .site-main-wrap,
  .content-area,
  .sidebar,
  .featured-image,
  .featured-image img {
    min-width: 0;
  }
}
