/*
Theme Name: Classic Affairs Blog
Description: Luxury editorial child theme for The Classic Affairs blog.
Author: The Classic Affairs
Template: astra
Version: 3.0.0
Text Domain: classic-affairs-blog
*/

:root {
  --ca-black: #0c0907;
  --ca-deep: #100d09;
  --ca-panel: #17110c;
  --ca-gold: #d3a574;
  --ca-gold-light: #edca8b;
  --ca-cream: #f3e3c8;
  --ca-muted: #ad9c86;
  --ca-line: rgba(211, 165, 116, .25);
}

html { scroll-behavior: smooth; }
body,
button,
input,
select,
textarea {
  font-family: "Montserrat", Arial, sans-serif;
}

body {
  background: var(--ca-deep);
  color: #d9cbb4;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: "Cormorant Garamond", Georgia, serif;
}

a { color: var(--ca-gold); }
a:hover { color: var(--ca-gold-light); }

/* Header */
.ast-primary-header-bar {
  border-bottom: 1px solid rgba(211,165,116,.2);
  background: rgba(12,9,7,.94);
  backdrop-filter: blur(12px);
}
.site-title a,
.ast-builder-menu-1 .menu-item > .menu-link { color: var(--ca-cream); }
.ast-builder-menu-1 .current-menu-item > .menu-link,
.ast-builder-menu-1 .menu-item:hover > .menu-link { color: var(--ca-gold); }
.site-description { color: var(--ca-muted); }

/* Editorial page hero injected from functions.php */
.ca-blog-hero {
  position: relative;
  display: grid;
  min-height: clamp(390px, 50vw, 570px);
  place-items: end center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8,6,4,.3), rgba(8,6,4,.46) 44%, rgba(10,7,4,.96)),
    url('../../../../assets/images/84.png') center/cover no-repeat;
}
.ca-blog-hero::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(225,183,108,.28);
  content: "";
  pointer-events: none;
}
.ca-blog-hero__content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 40px));
  padding: 80px 0 72px;
  text-align: center;
}
.ca-eyebrow {
  margin: 0 0 12px;
  color: var(--ca-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.ca-blog-hero h1 {
  margin: 0;
  color: #fff0d2;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 600;
  line-height: .96;
  text-shadow: 0 12px 30px #000;
}
.ca-blog-hero p:last-child {
  max-width: 690px;
  margin: 20px auto 0;
  color: #cdbda6;
  font-size:20px;
  line-height: 1.8;
}

/* Blog archive cards */
.blog #content,
.archive #content { background: var(--ca-deep); }
.blog .site-content > .ast-container,
.archive .site-content > .ast-container {
  max-width: 1240px;
  padding-top: clamp(55px, 7vw, 95px);
  padding-bottom: clamp(65px, 8vw, 110px);
}
.blog .ast-row,
.archive .ast-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.blog #primary,
.archive #primary {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.blog .ast-row > article.post,
.archive .ast-row > article.post {
  float: none;
  width: 100%;
  max-width: none;
}
.blog .ast-row:has(> article.post:only-child),
.archive .ast-row:has(> article.post:only-child) {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}
.blog .ast-row:has(> article.post:nth-child(2):last-child),
.archive .ast-row:has(> article.post:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.blog article.post,
.archive article.post {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ca-line);
  background: linear-gradient(145deg, #1b130d, #100c09);
  box-shadow: 0 24px 55px rgba(0,0,0,.24);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.blog article.post:hover,
.archive article.post:hover {
  border-color: var(--ca-gold);
  box-shadow: 0 30px 65px rgba(0,0,0,.4);
  transform: translateY(-7px);
}
.blog article.post .ast-post-format-,
.archive article.post .ast-post-format- { height: 100%; }
.blog article.post .post-thumb,
.archive article.post .post-thumb {
  position: relative;
  height: 260px;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, #2a1b10, #0d0a08);
}
.blog article.post .ast-no-thumb .post-thumb,
.archive article.post .ast-no-thumb .post-thumb {
  display: none;
}
.blog article.post .post-thumb::after,
.archive article.post .post-thumb::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,7,4,.84));
  content: "";
  pointer-events: none;
}
.blog article.post .post-thumb img,
.archive article.post .post-thumb img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: saturate(.8) contrast(1.04);
  transition: transform .7s ease, filter .35s ease;
}
.blog article.post:hover .post-thumb img,
.archive article.post:hover .post-thumb img {
  filter: saturate(1);
  transform: scale(1.055);
}
.blog article.post .entry-header,
.blog article.post .entry-content,
.archive article.post .entry-header,
.archive article.post .entry-content { padding-right: 25px; padding-left: 25px; }
.blog article.post .entry-header,
.archive article.post .entry-header { padding-top: 25px; }
.blog article.post .entry-title,
.archive article.post .entry-title {
  margin: 8px 0 12px;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.08;
  text-transform: none;
}
.blog article.post .entry-title a,
.archive article.post .entry-title a { color: var(--ca-gold-light); }
.blog article.post .entry-meta,
.archive article.post .entry-meta {
  color: #8f7d65;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.blog article.post .entry-content,
.archive article.post .entry-content {
  margin: 0;
  padding-bottom: 28px;
  color: var(--ca-muted);
  font-size: 13px;
  line-height: 1.75;
}
.blog article.post .read-more a,
.archive article.post .read-more a {
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ca-gold);
  color: var(--ca-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ast-pagination { margin-top: 45px; text-align: center; }
.ast-pagination .page-numbers {
  border-color: var(--ca-line);
  color: var(--ca-gold);
}

/* Single article */
.single-post #content { background: var(--ca-deep); }
.single-post .site-content > .ast-container {
  display: block;
  max-width: 920px;
  padding-top: clamp(55px, 7vw, 90px);
  padding-bottom: clamp(70px, 9vw, 120px);
}
.single-post article.post {
  padding: clamp(24px, 5vw, 60px);
  border: 1px solid var(--ca-line);
  background: linear-gradient(145deg, #18120d, #0e0b08);
  box-shadow: 0 35px 85px rgba(0,0,0,.34);
}
.single-post .entry-title {
  max-width: 780px;
  margin-bottom: 14px;
  color: #f0d092;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  line-height: 1;
}
.single-post .entry-meta {
  color: #9b876d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.single-post .post-thumb { margin: 35px 0; }
.single-post .post-thumb img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border: 1px solid var(--ca-line);
  filter: saturate(.86) contrast(1.04);
}
.single-post .entry-content {
  color: #d7c8b2;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.95;
}
.single-post .entry-content h2,
.single-post .entry-content h3 {
  margin-top: 1.5em;
  color: var(--ca-gold-light);
  line-height: 1.1;
}
.single-post .entry-content h2 { font-size: 40px; }
.single-post .entry-content h3 { font-size: 31px; }
.single-post blockquote {
  margin: 35px 0;
  padding: 22px 28px;
  border-left: 2px solid var(--ca-gold);
  background: rgba(211,165,116,.06);
  color: var(--ca-cream);
  font: 500 26px/1.45 "Cormorant Garamond", serif;
}
.single-post .post-navigation { border-top-color: var(--ca-line); }
.single-post .post-navigation a { color: var(--ca-gold); }
.comments-area {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--ca-line);
  background: var(--ca-panel);
}

/* Footer */
.site-primary-footer-wrap,
.site-below-footer-wrap {
  border-top: 1px solid var(--ca-line);
  background: #090705;
  color: var(--ca-muted);
}
.site-footer a { color: var(--ca-gold); }

@media (max-width: 921px) {
  .blog .ast-row,
  .archive .ast-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ast-primary-header-bar { background: #0c0907; }
}

@media (max-width: 600px) {
  .ca-blog-hero { min-height: 390px; }
  .ca-blog-hero::after { inset: 10px; }
  .ca-blog-hero__content { padding-bottom: 54px; }
  .ca-blog-hero h1 { font-size: 48px; }
  .blog .ast-row,
  .archive .ast-row,
  .blog .ast-row:has(> article.post:nth-child(2):last-child),
  .archive .ast-row:has(> article.post:nth-child(2):last-child) { grid-template-columns: 1fr; }
  .blog article.post .post-thumb,
  .archive article.post .post-thumb,
  .blog article.post .post-thumb img,
  .archive article.post .post-thumb img { height: 235px; }
  .single-post article.post { padding: 24px 20px; }
  .single-post .entry-title { font-size: 40px; }
  .single-post .entry-content { font-size: 15px; }
}

/* ===== Shared Classic Affairs header ===== */
.ca-site-header { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; height: 76px; border-bottom: 0; background: #0c0a08; box-shadow: 0 5px 18px rgba(0,0,0,.18); backdrop-filter: blur(10px); transition: background .3s, box-shadow .3s; }
.admin-bar .ca-site-header { top: 32px; }
.ca-site-header.is-scrolled { height: 76px; background: #0c0a08; box-shadow: 0 12px 30px rgba(0,0,0,.34); }
.ca-header-inner { display: flex; align-items: center; justify-content: space-between; width: min(1320px, calc(100% - 48px)); height: 100%; margin: 0 auto; }
.ca-header-logo { display: block; width: 260px; flex: 0 0 auto; }
.ca-header-logo img, .ca-header-logo .custom-logo { display: block; width: auto; max-width: 260px; max-height: none; height: auto; object-fit: contain; }
.ca-primary-nav { display: flex; align-items: center; gap: 24px; }
.ca-main-menu { display: flex; align-items: center; gap: clamp(10px, 2vw, 10px); margin: 0; padding: 0; list-style: none; }
.ca-main-menu li { position: relative; margin: 0; }
.ca-main-menu a { position: relative; display: block; padding: 10px 13px; border-radius: 20px; color: #d8c7aa; font-size: 14px; font-weight: 500; letter-spacing: .02em; text-decoration: none; }
.ca-main-menu > .menu-item-has-children > a { padding-right: 31px; }
.ca-main-menu > .menu-item-has-children > a::before { position: absolute; top: 50%; right: 13px; width: 7px; height: 7px; border-right: 1px solid #d3a574; border-bottom: 1px solid #d3a574; content: ""; transform: translateY(-68%) rotate(45deg); transition: transform .3s ease; }
.ca-main-menu > li > a::after { position: absolute; right: 50%; bottom: 4px; left: 50%; height: 1px; background: #d3a574; content: ""; transition: left .3s, right .3s; }
.ca-main-menu > li:hover > a::after, .ca-main-menu > .current-menu-item > a::after, .ca-main-menu > .current-menu-ancestor > a::after { right: 0; left: 0; }
.ca-main-menu a:hover, .ca-main-menu .current-menu-item > a { color: #edca8b; }
.ca-main-menu .sub-menu { position: absolute; top: calc(100% + 15px); left: -22px; min-width: 225px; margin: 0; padding: 12px 0; border: 0; border-radius: 0 0 14px 14px; background: #0c0a08; box-shadow: 0 22px 48px rgba(0,0,0,.5); list-style: none; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .28s ease, transform .32s cubic-bezier(.2,.7,.2,1), visibility .28s; }
.ca-main-menu .sub-menu::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 16px; content: ""; }
.ca-main-menu li:hover > .sub-menu, .ca-main-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ca-main-menu > .menu-item-has-children:hover > a::before,
.ca-main-menu > .menu-item-has-children:focus-within > a::before { transform: translateY(-25%) rotate(225deg); }
.ca-main-menu .sub-menu a { padding: 10px 20px; color: #cdbda6; }
.ca-main-menu .sub-menu a:hover { background: transparent; color: #d3a574; }
.ca-contact-link { display: inline-flex; align-items: center; overflow: hidden; gap: 9px; flex: 0 0 auto; padding: 12px 18px; border: 1px solid rgba(218,177,105,.75); border-radius: 20px; background: linear-gradient(135deg,rgba(207,158,84,.2),rgba(104,65,27,.12)); box-shadow: inset 0 0 0 1px rgba(255,235,190,.05), 0 5px 18px rgba(0,0,0,.25); color: #f3d79f; font-size: 13px; font-weight: 400; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: .25s; }
.ca-contact-link:hover { border-color: #efcc8c; background: linear-gradient(135deg,#c9974f,#8d5b27); color: #120d08; }
.ca-contact-ring-icon { display: inline-flex; flex: 0 0 18px; width: 18px; height: 18px; transform-origin: 50% 65%; animation: caLuxuryRing 2.8s ease-in-out infinite; }
.ca-contact-ring-icon svg { width: 100%; height: 100%; overflow: visible; fill: currentColor; }
.ca-contact-ring-icon .ca-ring-wave { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
@keyframes caLuxuryRing {
  0%,72%,100% { transform: rotate(0); }
  76% { transform: rotate(-13deg); }
  80% { transform: rotate(11deg); }
  84% { transform: rotate(-8deg); }
  88% { transform: rotate(5deg); }
  92% { transform: rotate(0); }
}
.ca-phone-icon { width: 20px; height: 20px; }
.ca-phone-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ca-phone-icon svg > path:first-child { fill: currentColor; stroke: none; }
.ca-phone-icon .ca-wa-phone { stroke: #100d09; }
.ca-menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid rgba(211,165,116,.45); background: transparent; }
.ca-menu-toggle span { display: block; width: 100%; height: 1px; margin: 5px 0; background: #d3a574; transition: .3s; }

/* Social rail shared with the main site */
.ca-social-rail { position: fixed; z-index: 1045; top: 108px; left: 0; display: grid; gap: 9px; }
.ca-social-rail::before { width: 1px; height: 28px; margin: 0 auto 3px; background: linear-gradient(transparent, rgba(225,183,108,.72)); content: ""; }
.ca-social-rail a { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(222,174,96,.58); border-radius: 50%; background: rgba(19,13,8,.82); box-shadow: 0 7px 16px rgba(0,0,0,.24); color: #e4be7a; transition: background .25s, border-color .25s, transform .25s; }
.ca-social-rail a:hover { border-color: #f1ca83; background: #9d6425; color: #fff1d5; transform: translateX(5px) scale(1.08); }
.ca-social-rail svg, .ca-footer-social svg { width: 19px; height: 19px; fill: currentColor; }
.ca-social-instagram svg, .ca-footer-social a:nth-child(2) svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ca-social-youtube .ca-play, .ca-footer-social .ca-play { fill: #100d09; }
.ca-social-whatsapp svg, .ca-footer-social a:last-child svg { fill: none; stroke: currentColor; stroke-width: 1.35; }
.ca-social-rail .ca-social-whatsapp svg { stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.ca-social-rail .ca-social-whatsapp .ca-wa-phone { fill: currentColor; stroke: none; }
.ca-footer-social a:last-child svg { stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.ca-footer-social a:last-child .ca-wa-phone { fill: currentColor; stroke: none; }

/* Shared footer */
.ca-footer { position: relative; border-top: 1px solid rgba(211,165,116,.24); background: radial-gradient(circle at 12% 18%, rgba(211,165,116,.07), transparent 28%), #090705; color: #a99a85; }
.ca-footer-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.ca-footer-grid { display: grid; grid-template-columns: 1.35fr .75fr 1fr 1fr; gap: clamp(30px, 5vw, 75px); padding: 75px 0 58px; }
.ca-footer-logo { display: block; width: 200px; margin-bottom: 22px; }
.ca-footer-logo img { display: block; width: 100%; height: auto; }
.ca-footer-about > p { max-width: 360px; color: #c7baa4; font-size: .86rem; line-height: 1.75; }
.ca-footer h2 { position: relative; margin: 0 0 1.35rem; padding-bottom: .55rem; color: #f0dfbd; font: 600 1.55rem "Cormorant Garamond", Georgia, serif, Georgia, serif; letter-spacing: .03em; text-transform: none; }
.ca-footer h2::after { position: absolute; bottom: 0; left: 0; width: 27px; height: 2px; background: #d4a358; content: ""; }
.ca-footer-contact h2:not(:first-child) { margin-top: 26px; }
.ca-footer-contact p { margin: 0; color: #c7baa4; font-size: .84rem; line-height: 1.75; }
.ca-footer a { color: #bbaa91; text-decoration: none; }
.ca-footer a:hover { color: #d3a574; }
.ca-footer-menu, .ca-footer-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.ca-footer-menu li { margin: 0 0 8px; }
.ca-footer-menu a { color: #dcc8a6; font-size: .84rem; letter-spacing: 0; text-transform: none; }
.ca-footer-menu > .menu-item-has-children > a { display: none; }
.ca-footer-menu .sub-menu { display: block; margin: 0; padding: 0; list-style: none; }
.ca-footer-social { display: flex; gap: 8px; }
.ca-footer-social-block { display: none; }
.ca-footer-social a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(211,165,116,.3); color: #d3a574; transition: .25s; }
.ca-footer-social a:hover { background: #d3a574; color: #100d09; }
.ca-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 22px 0; border-top: 1px solid rgba(211,165,116,.15); color: #756a5c; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.ca-footer-bottom > span { text-transform: none; }
.ca-footer-bottom > div,
.ca-footer-bottom > div a { text-transform: none; }
.ca-footer-bottom > div { display: flex; gap: 22px; }
@media (max-width: 1050px) {
  .ca-site-header, .ca-site-header.is-scrolled { height: 76px; background: rgba(10,8,6,.97); }
  .ca-header-logo { width: min(220px, calc(100vw - 115px)); }
  .ca-header-logo img, .ca-header-logo .custom-logo { max-width: 100%; max-height: 62px; }
  .ca-menu-toggle { position: relative; z-index: 1003; display: block; flex: 0 0 44px; width: 44px; height: 44px; border-color: rgba(211,165,116,.65); border-radius: 50%; background: rgba(211,165,116,.06); cursor: pointer; }
  .ca-primary-nav { position: fixed; z-index: 1002; top: 76px; right: 0; bottom: 0; display: flex; width: min(390px, 88vw); height: calc(100dvh - 76px); padding: 30px; overflow-y: auto; align-items: stretch; flex-direction: column; background: linear-gradient(155deg,#17100b,#0b0806 70%); border-left: 1px solid rgba(211,165,116,.24); box-shadow: -25px 0 65px rgba(0,0,0,.62); opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s, visibility .35s; }
  .admin-bar .ca-primary-nav { top: 108px; }
  .ca-primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .ca-main-menu { align-items: stretch; flex-direction: column; gap: 0; width: 100%; }
  .ca-main-menu > li { border-bottom: 1px solid rgba(211,165,116,.15); }
  .ca-main-menu a { padding: 15px 4px; font-size: 12px; }
  .ca-main-menu > li > a::after { display: none; }
  .ca-main-menu > .menu-item-has-children > a { padding-right: 34px; }
  .ca-main-menu .sub-menu { position: static; min-width: 0; max-height: 0; margin: 0; padding: 0 0 0 16px; overflow: hidden; border: 0; border-radius: 0 0 14px 14px; background: #0c0a08; box-shadow: none; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: max-height .38s ease, opacity .28s ease, transform .3s ease, padding .3s ease, visibility .3s; }
  .ca-main-menu .sub-menu::before { display: none; }
  .ca-main-menu .menu-item-has-children.submenu-open > .sub-menu { max-height: 360px; padding-top: 7px; padding-bottom: 10px; opacity: 1; visibility: visible; transform: none; }
  .ca-main-menu > .menu-item-has-children.submenu-open > a::before { transform: translateY(-25%) rotate(225deg); }
  .ca-main-menu .sub-menu a { padding: 8px 4px; font-size: 10px; }
  .ca-contact-link { justify-content: center; margin-top: 10px; padding: 13px; }
  .ca-menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .ca-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .ca-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  body.ca-menu-open { overflow: hidden; }
  body.ca-menu-open::before { position: fixed; z-index: 999; inset: 0; background: rgba(4,3,2,.68); backdrop-filter: blur(3px); content: ""; }
  .ca-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ca-social-rail { display: none; }
  .ca-footer-social-block { display: block; }
}
@media (max-width: 782px) { .admin-bar .ca-site-header { top: 46px; } .admin-bar .ca-primary-nav { top: 122px; height: calc(100dvh - 122px); } }
@media (max-width: 600px) {
  .ca-header-inner, .ca-footer-shell { width: calc(100% - 28px); }
  .ca-header-logo { width: min(190px, calc(100vw - 100px)); }
  .ca-social-rail { display: none; }
  .ca-footer-grid { grid-template-columns: 1fr; gap: 35px; padding: 58px 0 42px; }
  .ca-footer-bottom { align-items: flex-start; flex-direction: column; }
  .ca-footer-bottom > div { flex-wrap: wrap; gap: 12px 18px; }
}

/* ===== Custom journal templates ===== */
.blog .site-content > .ast-container,
.archive .site-content > .ast-container,
.single-post .site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.ca-blog-hero,
.ca-single-hero {
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

/* Match the blog banners to the HTML inner-page banner typography and height. */
.ca-blog-hero,
.ca-single-hero { min-height: clamp(360px, 48vw, 570px); }
.ca-blog-hero h1,
.ca-single-hero h1 {
  color: #fff0d2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.25rem, 4vw, 4rem);
  font-weight: 600;
  line-height: .93;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.ca-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.ca-journal-list { padding: clamp(65px, 8vw, 110px) 0; background: #100d09; }
.ca-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.ca-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(211,165,116,.31);
  background: linear-gradient(150deg, #1b130d, #0f0c09);
  box-shadow: 0 24px 55px rgba(0,0,0,.3);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.ca-post-card::after { position: absolute; inset: 8px; border: 1px solid rgba(237,202,139,.08); content: ""; pointer-events: none; }
.ca-post-card:hover { border-color: #d3a574; box-shadow: 0 32px 70px rgba(0,0,0,.48); transform: translateY(-7px); }
.ca-card-image { position: relative; display: block; height: 245px; margin: 14px 14px 0; overflow: hidden; background: radial-gradient(circle, #372314, #0b0806); }
.ca-card-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(8,5,3,.76)); content: ""; }
.ca-card-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.05); transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .35s; }
.ca-post-card:hover .ca-card-image img { filter: saturate(1); transform: scale(1.06); }
.ca-image-placeholder { display: grid; height: 100%; place-items: center; color: rgba(211,165,116,.55); font: 600 25px "Cormorant Garamond", serif; }
.ca-card-body { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; padding: 23px 25px 28px; }
.ca-card-category { display: flex; align-items: center; gap: 8px; min-height: 23px; }
.ca-category-icon { display: inline-grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(211,165,116,.5); border-radius: 50%; background: rgba(211,165,116,.07); }
.ca-category-icon svg { width: 12px; height: 12px; fill: none; stroke: #d3a574; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ca-card-category a { color: #d3a574; font-size: 9px; font-weight: 600; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.ca-card-category > span:not(.ca-category-icon) { color: #6f5b44; }
.ca-card-body h2 { display: -webkit-box; min-height: 2.12em; margin: 17px 0 12px; overflow: hidden; font-size: clamp(26px, 2.25vw, 32px); font-weight: 600; line-height: 1.06; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ca-card-body h2,
.ca-card-body h2 a { color: #edca8b; -webkit-text-fill-color: #edca8b; text-decoration: none; }
.ca-card-date { display: flex; align-items: center; gap: 7px; color: #826f59; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ca-card-date svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: #d3a574; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ca-card-body > p { margin: 17px 0 22px; color: #ad9c86; font-size: 15px; line-height: 1.75; }
.ca-read-story { align-self: flex-start; margin-top: auto; padding-bottom: 5px; border-bottom: 1px solid #d3a574; color: #d3a574; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.ca-read-story span { margin-left: 6px; font-size: 14px; transition: margin .25s; }
.ca-read-story:hover span { margin-left: 10px; }
.ca-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 55px; }
.ca-pagination .page-numbers { display: inline-grid; min-width: 42px; height: 42px; padding: 0 12px; place-items: center; border: 1px solid rgba(211,165,116,.32); color: #bca98d; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.ca-pagination .current, .ca-pagination a:hover { border-color: #d3a574; background: #d3a574; color: #110c08; }
.ca-no-posts { color: #cdbda6; text-align: center; }

/* Single post banner and content */
.ca-single { background: #100d09; }
.ca-single-hero { position: relative; display: grid; min-height: clamp(420px, 50vw, 585px); place-items: end center; overflow: hidden; background: linear-gradient(180deg, rgba(7,5,3,.35), rgba(8,5,3,.58) 50%, #100d09), url('../../../../assets/images/84.png') center/cover; }
.ca-single-hero::after { position: absolute; inset: 18px; border: 1px solid rgba(225,183,108,.25); content: ""; pointer-events: none; }
.ca-single-hero__inner { position: relative; z-index: 1; width: min(1000px, calc(100% - 42px)); padding: 115px 0 70px; text-align: center; }
.ca-single-hero h1 { margin: 0 auto; color: #fff0d2; font-size: clamp(44px, 6.5vw, 76px); font-weight: 600; line-height: .98; text-shadow: 0 12px 30px #000; }
.ca-single-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; color: #c0ac8f; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.ca-single-meta > i { width: 28px; height: 1px; background: #d3a574; }
.ca-single-cats { display: inline-flex; align-items: center; gap: 8px; }
.ca-single-cats a { color: #d3a574; text-decoration: none; }
.ca-single-shell { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: clamp(65px, 8vw, 105px) 0; align-items: start; }
.ca-single-article { min-width: 0; }
.ca-single-featured { position: relative; margin: 0 0 45px; padding: 12px; border: 1px solid rgba(211,165,116,.36); background: #17110c; }
.ca-single-featured::before { position: absolute; top: -10px; right: 30px; bottom: 30px; left: -10px; border: 1px solid rgba(211,165,116,.14); content: ""; pointer-events: none; }
.ca-single-featured img { position: relative; width: 100%; max-height: 570px; object-fit: cover; filter: saturate(.88) contrast(1.04); }
.ca-prose { color: #d4c5ae; font-size: 15px; line-height: 1.95; }
.ca-prose > p:first-child::first-letter { float: left; margin: 7px 9px 0 0; color: #d3a574; font: 600 64px/.7 "Cormorant Garamond", serif; }
.ca-prose h2, .ca-prose h3 { color: #edca8b; font-weight: 600; line-height: 1.08; }
.ca-prose h2 { margin: 1.45em 0 .55em; font-size: clamp(33px, 4vw, 43px); }
.ca-prose h3 { margin: 1.35em 0 .5em; font-size: 30px; }
.ca-prose ul, .ca-prose ol { margin: 1.2em 0 1.6em 1.2em; }
.ca-prose li { margin-bottom: .55em; }
.ca-prose li::marker { color: #d3a574; }
.ca-prose blockquote { margin: 35px 0; padding: 24px 30px; border-left: 2px solid #d3a574; background: rgba(211,165,116,.06); color: #f0dfc5; font: 500 27px/1.45 "Cormorant Garamond", serif; }
.ca-article-footer { display: flex; align-items: center; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(211,165,116,.2); }
.ca-article-footer span { margin-right: auto; color: #8e7b64; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ca-article-footer a { padding: 8px 12px; border: 1px solid rgba(211,165,116,.3); color: #d3a574; font-size: 9px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.ca-article-footer a:hover { background: #d3a574; color: #100d09; }

/* Luxury sidebar */
.ca-sidebar { position: sticky; top: 105px; display: grid; gap: 24px; }
.ca-side-box { position: relative; padding: 28px 25px; border: 1px solid rgba(211,165,116,.3); background: linear-gradient(145deg, #1b130d, #0f0c09); box-shadow: 0 22px 55px rgba(0,0,0,.25); }
.ca-side-box::after { position: absolute; inset: 7px; border: 1px solid rgba(211,165,116,.07); content: ""; pointer-events: none; }
.ca-side-kicker { position: relative; z-index: 1; margin: 0; color: #8e7b64; font-size: 8px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.ca-side-box h2 { position: relative; z-index: 1; margin: 5px 0 20px; color: #edca8b; font-size: 30px; font-weight: 600; }
.ca-category-list { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.ca-category-list li { border-top: 1px solid rgba(211,165,116,.14); color: #806d57; font-size: 10px; }
.ca-category-list a { display: inline-flex; width: calc(100% - 25px); padding: 13px 0; color: #cdbda6; font-size: 14px; letter-spacing: .04em; text-decoration: none; }
.ca-category-list a::before { display: flex; align-items: center; margin-right: 9px; color: #d3a574; content: "◆"; font-size: 6px; }
.ca-category-list a:hover { color: #d3a574; }
.ca-recent-list { position: relative; z-index: 1; display: grid; gap: 16px; }
.ca-recent-card { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.ca-recent-image { display: grid; width: 78px; height: 68px; place-items: center; overflow: hidden; border: 1px solid rgba(211,165,116,.24); background: #24170e; }
.ca-recent-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: .35s; }
.ca-recent-image b { color: #d3a574; font: 600 20px "Cormorant Garamond", serif; }
.ca-recent-card small, .ca-recent-card strong { display: block; }
.ca-recent-card small { margin-bottom: 4px; color: #806d57; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.ca-recent-card strong { color: #d8c7ad; font: 600 17px/1.12 "Cormorant Garamond", serif; }
.ca-recent-card:hover strong { color: #d3a574; }
.ca-recent-card:hover img { filter: saturate(1); transform: scale(1.06); }

@media (max-width: 921px) {
  .ca-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca-single-shell { grid-template-columns: 1fr; }
  .ca-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ca-shell, .ca-single-shell { width: min(100% - 28px, 1320px); }
  .ca-card-grid { grid-template-columns: 1fr; gap: 20px; }
  .ca-card-image { height: 225px; }
  .ca-single-hero::after { inset: 10px; }
  .ca-single-hero h1 { font-size: 42px; }
  .ca-single-meta { gap: 8px; line-height: 1.6; }
  .ca-single-shell { padding-top: 58px; }
  .ca-sidebar { grid-template-columns: 1fr; }
  .ca-article-footer { align-items: flex-start; flex-wrap: wrap; }
  .ca-article-footer span { flex-basis: 100%; margin-bottom: 4px; }
}

/* Final banner parity overrides: keep archive and single banners identical to HTML inner pages. */
.ca-blog-hero,
.ca-single-hero {
  min-height: clamp(360px, 48vw, 570px);
}
.ca-blog-hero h1,
.ca-single-hero h1 {
  color: #fff0d2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.25rem, 4vw, 4rem);
  font-weight: 600;
  line-height: .93;
  letter-spacing: .01em;
  text-transform: uppercase;
}
@media (max-width: 575.98px) {
  .ca-blog-hero,
  .ca-single-hero { min-height: 400px; }
  .ca-blog-hero h1,
  .ca-single-hero h1 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); line-height: .98; }
}

/* Exact HTML inner-banner alignment: 37px social rail center = 18.5px border axis. */
.ca-blog-hero,
.ca-single-hero {
  display: grid;
  min-height: 520px;
  height: 520px;
  place-items: center;
}
.ca-blog-hero::after,
.ca-single-hero::after {
  top: 0;
  right: 25px;
  bottom: 18px;
  left: 25px;
  z-index: auto;
  border: 1px solid rgba(225,183,108,.28);
background:#0000005c;
}
.ca-blog-hero__content,
.ca-single-hero__inner {
  display: block;
  min-height: 0;
  padding: 76px 0 0;
  text-align: center;
}
.ca-blog-hero h1,
.ca-single-hero h1 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.5rem, 3vw, 3.25rem);
}
@media (max-width: 575.98px) {
  .ca-blog-hero,
  .ca-single-hero { min-height: 400px; height: 400px; }
  .ca-blog-hero::after,
  .ca-single-hero::after { top: 0; right: 10px; bottom: 10px; left: 10px; }
  .ca-blog-hero__content,
  .ca-single-hero__inner { padding: 76px 20px 0; }
  .ca-blog-hero h1,
  .ca-single-hero h1 { font-size: clamp(2.15rem, 9vw, 2.6rem); line-height: .98; }
}

/* Astra scroll-to-top and mobile toggle: Classic Affairs dark-gold treatment. */
#ast-scroll-top,
.ast-scroll-top {
  display: grid !important;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid #c18a43;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #2b190d, #160d08 72%);
  box-shadow: 0 10px 28px rgba(0,0,0,.42), inset 0 0 0 4px rgba(211,165,116,.035);
  color: #e8bd71;
  font-size: 12px;
  line-height: 1;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
#ast-scroll-top.ast-scroll-top-icon.ast-scroll-to-top-right,
.ast-scroll-top-icon.ast-scroll-to-top-right {
  display: grid !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  text-align: center;
  line-height: 1 !important;
}
#ast-scroll-top.ast-scroll-top-icon.ast-scroll-to-top-right::before,
.ast-scroll-top-icon.ast-scroll-to-top-right::before {
  position: static;
  display: block;
  margin: 0;
  line-height: 1;
}
#ast-scroll-top:hover,
#ast-scroll-top:focus,
#ast-scroll-top:active,
.ast-scroll-top:hover,
.ast-scroll-top:focus,
.ast-scroll-top:active {
  border-color: #edca8b;
  outline: 0;
  background: radial-gradient(circle at 50% 38%, #382113, #1a0f09 72%);
  color: #f1ca83;
  transform: translateY(-3px);
}
#ast-scroll-top svg,
#ast-scroll-top .ast-icon,
#ast-scroll-top .ast-scroll-top-icon,
.ast-scroll-top svg,
.ast-scroll-top .ast-icon,
.ast-scroll-top .ast-scroll-top-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: inherit;
}
#ast-scroll-top svg,
.ast-scroll-top svg { width: 12px; height: 12px; }
#ast-scroll-top .ast-icon,
#ast-scroll-top .ast-scroll-top-icon,
.ast-scroll-top .ast-icon,
.ast-scroll-top .ast-scroll-top-icon { display: grid; margin: 0; place-items: center; font-size: 12px; line-height: 1; }

@media (max-width: 1050px) {
  .ca-menu-toggle,
  .ca-menu-toggle:hover,
  .ca-menu-toggle:focus,
  .ca-menu-toggle:active {
    border-color: rgba(211,165,116,.72);
    outline: 0;
    background: rgba(211,165,116,.07);
    box-shadow: none;
    color: #d3a574;
  }
  .ca-menu-toggle span,
  .ca-menu-toggle:hover span,
  .ca-menu-toggle:focus span,
  .ca-menu-toggle:active span { background: #d3a574; }
  .ca-menu-toggle.is-open,
  .ca-menu-toggle[aria-expanded="true"] {
    border-color: #d3a574;
    background: #d3a574;
  }
  .ca-menu-toggle.is-open span,
  .ca-menu-toggle[aria-expanded="true"] span { background: #0c0a08; }
}

@media (max-width:767px) {
	.ca-footer-social-block {
		margin-top:24px;
	}
	
}