/* ============================================================
   Colonial Aesthetics & Wellness — Blog ("The Colonial Edit")
   Page-specific styles. Pairs with site.css design tokens.
   ============================================================ */

/* ---------- Edit masthead (BREATHE) ---------- */
.edit-masthead {
  background: var(--c-ivory);
  padding: 96px 0 40px;
  text-align: center;
}
@media (max-width: 767px) {
  .edit-masthead { padding: 64px 0 32px; }
}
.edit-masthead .wrap-narrow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}
@media (max-width: 1023px) {
  .edit-masthead .wrap-narrow {
    padding: 0 48px;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    text-align: center;
  }
}
@media (max-width: 767px)  {
  .edit-masthead .wrap-narrow { padding: 0 24px; }
}

.edit-masthead .edit-wordmark {
  justify-self: end;
  max-width: 100%;
  height: auto;
}
@media (max-width: 1023px) {
  .edit-masthead .edit-wordmark { justify-self: center; }
}

.edit-masthead h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-deep);
  margin: 0 0 24px;
}
@media (max-width: 767px) { .edit-masthead h1 { font-size: 42px; } }
.edit-masthead .standfirst {
  font-size: 20px;
  line-height: 1.55;
  color: var(--c-slate);
  max-width: 56ch;
  margin: 0;
}
@media (max-width: 1023px) {
  .edit-masthead .standfirst { margin: 0 auto; }
}
@media (max-width: 767px) { .edit-masthead .standfirst { font-size: 18px; } }
.edit-masthead .eyebrow { justify-content: flex-start; margin-bottom: 24px; }
@media (max-width: 1023px) {
  .edit-masthead .eyebrow { justify-content: center; }
}

/* Right-column wrapper: holds the vertical rule, eyebrow, and
   standfirst. Padding-left makes room for the absolutely-positioned
   rule, mirroring the .hero-left / .t-hero-left pattern from the
   rest of the site so the blog masthead reads with the same vocab. */
.edit-text-wrap {
  position: relative;
  padding-left: 48px;
  justify-self: start;
}
.edit-rule {
  position: absolute;
  left: 0;
  top: 4px;
  width: 1px;
  height: 120px;
  background: var(--c-sea);
  display: block;
}
@media (max-width: 1023px) {
  .edit-text-wrap { padding-left: 24px; justify-self: center; }
  .edit-rule { height: 80px; }
}
@media (max-width: 767px) {
  .edit-rule { height: 64px; }
}

/* ---------- Sticky category filter ---------- */
.cat-bar {
  position: sticky;
  top: 88px;
  z-index: 30;
  background: rgba(246, 246, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-stone);
}
@media (max-width: 767px) { .cat-bar { top: 72px; } }

.cat-bar ul {
  list-style: none;
  margin: 0;
  padding: 0 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 56px;
  align-items: center;
}
.cat-bar ul::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) { .cat-bar ul { padding: 0 48px; } }
@media (max-width: 767px)  { .cat-bar ul { padding: 0 24px; } }

.cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--c-slate);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cat-chip:hover { color: var(--c-deep); background: var(--c-pearl); }
}
.cat-chip.active,
.cat-chip[aria-current="true"] {
  background: var(--c-deep);
  color: var(--c-ivory);
  border-color: var(--c-deep);
}

/* ---------- Wraps ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 1023px) { .wrap { padding: 0 48px; } }
@media (max-width: 767px)  { .wrap { padding: 0 24px; } }
.wrap-read {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 1023px) { .wrap-read { padding: 0 48px; } }
@media (max-width: 767px)  { .wrap-read { padding: 0 24px; } }

.bg-ivory { background: var(--c-ivory); }
.bg-pearl { background: var(--c-pearl); }

/* ---------- Featured article ---------- */
.featured {
  padding: 32px 0 32px;
}
@media (max-width: 767px) { .featured { padding: 24px 0 24px; } }

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1023px) {
  .featured-card { grid-template-columns: 1fr; gap: 32px; }
}

.featured-media {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--c-stone);
}
.featured-media img,
.featured-media .post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .featured-card:hover .featured-media img,
  .featured-card:hover .featured-media .post-img { transform: scale(1.03); }
}

.featured-body .eyebrow { display: flex; margin-bottom: 20px; }
.featured-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--c-deep);
  margin: 12px 0 16px;
  max-width: 22ch;
}
@media (max-width: 767px) { .featured-body h2 { font-size: 28px; } }
.featured-body h2 a { color: inherit; text-decoration: none; }
.featured-body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.featured-body .excerpt {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-slate);
  margin: 0 0 24px;
  max-width: 56ch;
}

/* ---------- Post grid ---------- */
.grid-section { padding: 32px 0 96px; }
@media (max-width: 767px) { .grid-section { padding: 24px 0 72px; } }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .post-grid { grid-template-columns: 1fr; gap: 40px; } }

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.post-card .card-media {
  display: block;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 4px;
  background: var(--c-stone);
  margin-bottom: 20px;
}
.post-card .card-media img,
.post-card .card-media .post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover .card-media img,
  .post-card:hover .card-media .post-img { transform: scale(1.04); }
  .post-card:hover h3 { color: var(--c-sea); }
}
.post-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  color: var(--c-deep);
  margin: 0;
  max-width: 24ch;
  transition: color 220ms var(--ease-out);
}
@media (max-width: 767px) { .post-card h3 { font-size: 22px; } }
.post-card .excerpt {
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-slate);
  margin: 0;
  max-width: 48ch;
}
.post-card .read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--c-deep);
  margin-top: 4px;
}

/* ---------- Post meta row ---------- */
.meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-slate);
}
.post-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sea-text);
  text-decoration: none;
}
a.post-tag,
.post-tag.clickable {
  cursor: pointer;
  transition: color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a.post-tag:hover,
  .post-tag.clickable:hover { color: var(--c-deep); }
}

/* Visually-hidden but kept for assistive tech (e.g. masthead h1). */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-slate);
  opacity: 0.6;
  display: inline-block;
}
.post-date {
  font-size: 13px;
  color: var(--c-slate);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--c-slate);
  text-decoration: none;
  border-radius: 4px;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pagination a:hover { background: var(--c-pearl); color: var(--c-deep); }
}
.pagination a[aria-current="page"] {
  background: var(--c-deep);
  color: var(--c-ivory);
}
.pagination .disabled { opacity: 0.3; }

/* ---------- Article hero ---------- */
.article-hero {
  padding: 96px 0 48px;
}
@media (max-width: 767px) { .article-hero { padding: 64px 0 32px; } }
.article-hero .crumbs {
  font-size: 13px;
  color: var(--c-slate);
  margin: 0 0 32px;
}
.article-hero .crumbs a {
  color: var(--c-sea);
  text-decoration: none;
}
.article-hero .crumbs a:hover { text-decoration: underline; }
.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-deep);
  margin: 24px 0 24px;
  max-width: 22ch;
}
@media (max-width: 767px) { .article-hero h1 { font-size: 34px; } }
.article-hero .standfirst {
  font-size: 22px;
  line-height: 1.5;
  color: var(--c-slate);
  margin: 0 0 40px;
  max-width: 56ch;
}
@media (max-width: 767px) { .article-hero .standfirst { font-size: 18px; } }

.byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.byline img,
.byline .author-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-stone);
  filter: saturate(0.95) hue-rotate(-2deg);
}
.byline .who {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--c-ink);
}
.byline .role {
  font-size: 13px;
  color: var(--c-slate);
}

/* ---------- Article body ---------- */
.article-figure {
  margin: 0 0 48px;
}
.article-figure img,
.article-figure .hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--c-stone);
  display: block;
}
.article-figure figcaption {
  font-size: 13px;
  color: var(--c-slate);
  margin-top: 12px;
  font-style: italic;
}

.article-body {
  padding-bottom: 96px;
}
.article-body p,
.article-body ul,
.article-body ol {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--c-ink);
  margin: 0 0 24px;
  max-width: 60ch;
}
@media (max-width: 767px) {
  .article-body p,
  .article-body ul,
  .article-body ol { font-size: 17px; }
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  color: var(--c-deep);
  margin: 48px 0 16px;
  max-width: 28ch;
}
@media (max-width: 767px) { .article-body h2 { font-size: 26px; margin-top: 40px; } }
.article-body ul li,
.article-body ol li { margin-bottom: 8px; }
.article-body blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.4;
  color: var(--c-deep);
  border-left: 2px solid var(--c-gold);
  padding: 8px 0 8px 24px;
  margin: 40px 0;
  max-width: 28ch;
}
@media (max-width: 767px) { .article-body blockquote { font-size: 22px; } }
.article-body a {
  color: var(--c-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclaimer {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-slate);
  background: var(--c-pearl);
  border-left: 2px solid var(--c-aqua);
  padding: 20px 24px;
  margin: 48px 0;
  max-width: 60ch;
  border-radius: 0 4px 4px 0;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--c-stone);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-slate);
}
.share-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-stone);
  color: var(--c-deep);
  text-decoration: none;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .share-row a:hover { background: var(--c-pearl); border-color: var(--c-aqua); }
}

/* ---------- Comparison table ---------- */
.table-wrap {
  margin: 32px 0 40px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--c-stone);
  border-radius: 4px;
}
.post-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  min-width: 520px;
}
.post-table thead th {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-deep);
  background: var(--c-pearl);
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-stone);
}
.post-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--c-deep);
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-stone);
  background: var(--c-ivory);
  width: 28%;
}
.post-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-stone);
  vertical-align: top;
}
.post-table tbody tr:last-child th,
.post-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- "Best for" callout ---------- */
.bestfor {
  background: var(--c-mint);
  border-left: 2px solid var(--c-gold);
  padding: 20px 24px;
  margin: 32px 0;
  max-width: 60ch;
  border-radius: 0 4px 4px 0;
}
.bestfor h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-deep);
  margin: 0 0 10px;
}
.bestfor p,
.bestfor ul {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  margin: 0;
}
.bestfor ul { padding-left: 18px; }
.bestfor ul li { margin-bottom: 4px; }

/* ---------- Related ---------- */
.related {
  padding: 96px 0;
}
@media (max-width: 767px) { .related { padding: 72px 0; } }
.related .section-head {
  margin: 0 0 64px;
  max-width: none;
  text-align: left;
}
.related .section-head .eyebrow { justify-content: flex-start; }
.related .section-head h2 { margin: 0; }

/* ---------- Subscribe strip ---------- */
.subscribe {
  background: var(--c-mint);
  padding: 96px 0;
}
@media (max-width: 767px) { .subscribe { padding: 64px 0; } }
.subscribe-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1023px) { .subscribe-inner { grid-template-columns: 1fr; gap: 32px; } }
.subscribe h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  color: var(--c-deep);
  margin: 16px 0 12px;
  max-width: 22ch;
}
@media (max-width: 767px) { .subscribe h2 { font-size: 28px; } }
.subscribe p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0;
  max-width: 50ch;
}
.sub-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sub-form label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-deep);
}
.sub-form input {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--c-aqua);
  border-radius: 6px;
  background: var(--c-ivory);
  color: var(--c-ink);
}
.sub-form input:focus-visible {
  outline: 2px solid var(--c-deep);
  outline-offset: 2px;
}
.sub-form button { margin-top: 4px; align-self: flex-start; }
.sub-note { font-size: 13px; color: var(--c-slate); margin: 4px 0 0; }

/* ---------- CTA block (blog-specific overrides) ---------- */
.cta-block {
  background: var(--c-ivory);
  padding: 128px 0;
  text-align: center;
}
@media (max-width: 767px) { .cta-block { padding: 80px 0; } }
.cta-block h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  color: var(--c-deep);
  margin: 32px auto 16px;
  max-width: 22ch;
}
@media (max-width: 767px) { .cta-block h2 { font-size: 30px; } }
.cta-block p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0 auto 32px;
  max-width: 50ch;
}
.cta-block .goldline {
  width: 48px;
  height: 1px;
  background: var(--c-gold);
  margin: 0 auto;
}
.cta-block .sms { margin-top: 16px; }
.cta-block .sms a { color: var(--c-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 48px 0;
  color: var(--c-slate);
  font-size: 16px;
}

/* ---------- Edit wordmark logo (masthead) ---------- */
.edit-wordmark {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 16px;
  display: block;
  height: auto;
}
@media (max-width: 767px) {
  .edit-wordmark { max-width: 320px; }
}

/* Share: copy-link confirmation tooltip (added in FinalWebRev pass) */
.share-row a{position:relative}
.share-row a[data-copied]::after{content:"Copied";position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:var(--c-ink);color:var(--c-white);font-family:var(--font-sans);font-size:12px;font-weight:600;letter-spacing:.02em;padding:4px 8px;border-radius:6px;white-space:nowrap;pointer-events:none;box-shadow:var(--e-sm,0 2px 8px rgba(15,79,87,.15))}
