/*
Theme Name: Tress Haven
Theme URI: https://tresshaven.com/
Author: Tress Haven
Description: Classic editorial theme for Tress Haven, built to match the approved design mockup: ivory and espresso palette, Cormorant Garamond headings with Inter body text, portrait guide cards, and the "Editorial Reader" post layout (centred 680px column, sticky contents, reading progress bar, text-size toggle and mobile article bar).
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tresshaven
Tags: blog, custom-logo, custom-menu, featured-images, one-column, two-columns
*/

/* ==========================================================================
   1. Base reset (carried over from the mockup's base stylesheet)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #FAF7F2; color: #3B2A20; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin-inline: 0; }
a { color: inherit; }
b, strong { font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
small { font-size: max(12px, .85em); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid #E4D9CC; }
tbody tr:last-child > * { border-bottom: 0; }
:focus-visible { outline: 2px solid #3B2A20; outline-offset: 3px; border-radius: 6px; }

/* ==========================================================================
   2. Mockup styles (copied verbatim from the approved design)
   ========================================================================== */
:root { color-scheme: light; }
.x-site {
  --x-ivory: #FAF7F2; --x-esp: #3B2A20; --x-esp-2: #6E5B4F; --x-rose: #C98B7A; --x-rose-d: #A4614F;
  --x-sage: #A8B5A0; --x-sage-l: #E3E9DF; --x-panel: #EFE6DC; --x-line: #E4D9CC; --x-white: #FFFDF9;
  --x-serif: "Cormorant Garamond", Georgia, serif; --x-sans: "Inter", system-ui, sans-serif;
  --x-r: 16px; --x-shadow: 0 1px 2px rgba(59,42,32,.06), 0 8px 24px rgba(59,42,32,.08);
  --x-max: 1200px; --x-pad: clamp(16px, 4vw, 40px);
  background: var(--x-ivory); color: var(--x-esp); font: 400 16px/1.6 var(--x-sans);
  min-height: 100vh;
}
.x-site *:focus-visible { outline: 2px solid var(--x-rose-d); outline-offset: 2px; }
.x-site a { color: inherit; text-decoration: none; }
.x-site h1, .x-site h2, .x-site h3, .x-serif { font-family: var(--x-serif); font-weight: 600; line-height: 1.12; letter-spacing: -.005em; }
.x-site h1 { font-size: clamp(36px, 7vw, 60px); }
.x-site h2 { font-size: clamp(28px, 4.5vw, 38px); }
.x-site h3 { font-size: 21px; }
.x-site p { margin: 0; }
.x-site ul { margin: 0; padding: 0; list-style: none; }
.x-site button, .x-site input, .x-site select, .x-site textarea { font: inherit; color: inherit; }
.x-wrap { max-width: var(--x-max); margin: 0 auto; padding-inline: var(--x-pad); }
.x-narrow { max-width: 760px; margin: 0 auto; }
.x-sec { padding-block: clamp(40px, 7vw, 72px); }
.x-sec__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.x-eyebrow { font: 600 12px/1.4 var(--x-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--x-rose-d); }
.x-lead { color: var(--x-esp-2); font-size: 17px; max-width: 60ch; }
.x-more { font-weight: 500; font-size: 15px; color: var(--x-rose-d); border-bottom: 1px solid currentColor; }


/* header */
.x-header { position: sticky; top: var(--x-pv, 46px); z-index: 50; background: rgba(250,247,242,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--x-line); }
.x-header__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.x-logo { display: inline-flex; flex-direction: column; line-height: 1; }
.x-logo b { font: 600 30px/1 var(--x-serif); letter-spacing: .01em; }
.x-logo b i { color: var(--x-rose); font-style: italic; font-weight: 500; }
.x-logo span { font-size: 11px; color: var(--x-esp-2); letter-spacing: .04em; margin-top: 3px; }
.x-menu { display: none; gap: 2px; margin-left: auto; }
.x-menu a { padding: 8px 10px; font-size: 14px; font-weight: 500; border-radius: 8px; white-space: nowrap; }
.x-menu a:hover { background: var(--x-panel); }
.x-iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.x-iconbtn:hover { background: var(--x-panel); }
.x-iconbtn svg { width: 22px; height: 22px; }
.x-header__tools { margin-left: auto; display: flex; gap: 4px; }
.x-hubs { display: none; border-top: 1px solid var(--x-line); }
.x-hubs__in { display: flex; gap: 8px; align-items: center; padding-block: 8px; font-size: 13px; }
.x-hubs__in > span { color: var(--x-esp-2); margin-right: 4px; }
@media (min-width: 1100px) {
  .x-menu { display: flex; }
  .x-header__tools { margin-left: 0; }
  .x-burger { display: none !important; }
  .x-hubs { display: block; }
}
.x-mobile { position: fixed; inset: 0; z-index: 80; background: var(--x-ivory); overflow-y: auto; padding: 0 var(--x-pad) 40px; display: none; }
.x-mobile.is-open { display: block; }
.x-mobile__top { display: flex; align-items: center; justify-content: space-between; height: 64px; position: sticky; top: 0; background: var(--x-ivory); }
.x-mobile details { border-bottom: 1px solid var(--x-line); }
.x-mobile summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font: 600 24px/1.2 var(--x-serif); min-height: 44px; }
.x-mobile summary::-webkit-details-marker { display: none; }
.x-mobile summary::after { content: "+"; font: 400 22px var(--x-sans); color: var(--x-rose-d); }
.x-mobile details[open] summary::after { content: "–"; }
.x-mobile details ul { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.x-mobile__search { display: flex; gap: 8px; margin: 8px 0 12px; }

/* chips, tags, buttons */
.x-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-white); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.x-chip:hover { border-color: var(--x-rose); }
.x-chip.is-on, .x-chip[aria-pressed="true"] { background: var(--x-esp); color: var(--x-ivory); border-color: var(--x-esp); }
.x-hubs .x-chip { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.x-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.x-tag { display: inline-block; font: 600 11px/1 var(--x-sans); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--x-sage-l); color: #46553F; }
.x-tag--rose { background: #F4E1DA; color: #8A4B3B; }
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--x-rose); background: var(--x-rose); color: #2A1B13 !important; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.x-btn:hover { background: #BD7A68; }
.x-btn--ghost { background: transparent; border-color: currentColor; color: inherit !important; }
.x-btn--ghost:hover { background: rgba(59,42,32,.06); }
.x-btn--dark { background: var(--x-esp); border-color: var(--x-esp); color: var(--x-ivory) !important; }
.x-btn--dark:hover { background: #2A1D16; }
.x-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.x-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.x-input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-white); }
.x-input:focus { outline: 2px solid var(--x-rose); outline-offset: 0; }
textarea.x-input, select.x-input { border-radius: 14px; }
textarea.x-input { padding: 12px 16px; min-height: 140px; resize: vertical; }
.x-field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }

/* cards */
.x-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 820px) { .x-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; } }
.x-card { position: relative; display: grid; gap: 10px; align-content: start; }
.x-card__img { display: block; aspect-ratio: 2/3; border-radius: var(--x-r); overflow: hidden; background: var(--x-panel); box-shadow: var(--x-shadow); }
.x-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.x-card:hover .x-card__img img { transform: scale(1.03); }
.x-card h3 { font-size: clamp(18px, 2.4vw, 23px); }
.x-card h3 a:hover { color: var(--x-rose-d); }
.x-meta { font-size: 13px; color: var(--x-esp-2); }
.x-save { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: #E60023; color: #fff; font: 600 13px var(--x-sans); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.x-save svg { width: 14px; height: 14px; }
.x-save.is-saved { background: var(--x-esp); }

/* home hero */
.x-hero { position: relative; border-radius: 22px; overflow: hidden; margin-top: 20px; min-height: 520px; display: grid; align-items: end; box-shadow: var(--x-shadow); }
.x-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.x-hero__copy { position: relative; margin: 16px; padding: clamp(22px, 4vw, 40px); background: rgba(250,247,242,.93); border-radius: 18px; max-width: 560px; display: grid; gap: 14px; }
.x-hero__copy p.x-lead { font-size: 16px; }
@media (min-width: 820px) { .x-hero { min-height: 600px; align-items: center; } .x-hero__copy { margin: 48px; } }

/* start here */
.x-start { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 820px) { .x-start { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; } }
.x-start a { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 24px 12px; border-radius: 18px; background: var(--x-panel); transition: transform .2s, box-shadow .2s; }
.x-start a:hover { transform: translateY(-2px); box-shadow: var(--x-shadow); }
.x-start i { width: 64px; height: 64px; border-radius: 50%; background: var(--x-white); display: grid; place-items: center; color: var(--x-rose-d); }
.x-start i svg { width: 28px; height: 28px; }
.x-start b { font: 600 20px/1.15 var(--x-serif); }

/* chooser */
.x-chooser { background: var(--x-white); border: 1px solid var(--x-line); border-radius: 22px; padding: clamp(20px, 4vw, 40px); display: grid; gap: 20px; box-shadow: var(--x-shadow); }
.x-seggroup { display: grid; gap: 8px; }
.x-seggroup > span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--x-esp-2); }
.x-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--x-panel); overflow-x: auto; scrollbar-width: none; }
.x-seg button { flex: 1 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; }
.x-seg button[aria-pressed="true"] { background: var(--x-esp); color: var(--x-ivory); }
@media (min-width: 980px) { .x-chooser__row { display: grid; grid-template-columns: .8fr 1.2fr 1.2fr auto; gap: 20px; align-items: end; } }
.x-chooser__row { display: grid; gap: 16px; }

/* age band */
.x-band { background: var(--x-panel); }
.x-ages { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 820px) { .x-ages { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; } }
.x-ages a { background: var(--x-ivory); border-radius: 18px; padding: 22px 20px; display: grid; gap: 4px; border: 1px solid transparent; transition: border-color .2s; }
.x-ages a:hover { border-color: var(--x-rose); }
.x-ages b { font: 600 34px/1 var(--x-serif); }
.x-ages span { font-size: 13px; color: var(--x-esp-2); }
.x-ages a.is-feature { background: var(--x-esp); color: var(--x-ivory); }
.x-ages a.is-feature span { color: #D9C9BA; }

/* pins row */
.x-pins { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 62%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.x-pins > * { scroll-snap-align: start; }
@media (min-width: 820px) { .x-pins { grid-auto-columns: minmax(0, 1fr); } }
.x-pins .x-card__img { aspect-ratio: 1/2; max-height: 540px; }

/* seasonal */
.x-season { background: var(--x-rose); color: #2A1B13; border-radius: 22px; overflow: hidden; display: grid; }
.x-season__img { aspect-ratio: 4/3; }
.x-season__img img { width: 100%; height: 100%; object-fit: cover; }
.x-season__copy { padding: clamp(24px, 5vw, 56px); display: grid; gap: 14px; align-content: center; }
.x-season .x-eyebrow { color: #5B2A1C; }
.x-season .x-btn { background: var(--x-esp); border-color: var(--x-esp); color: var(--x-ivory) !important; }
@media (min-width: 820px) { .x-season { grid-template-columns: 1fr 1.2fr; } .x-season__img { aspect-ratio: auto; min-height: 380px; } }

/* newsletter */
.x-news { background: var(--x-esp); color: var(--x-ivory); border-radius: 22px; padding: clamp(28px, 6vw, 64px); text-align: center; display: grid; gap: 14px; justify-items: center; }
.x-news p { color: #D9C9BA; }
.x-news form { display: flex; gap: 8px; width: 100%; max-width: 480px; flex-wrap: wrap; justify-content: center; }
.x-news .x-input { flex: 1 1 220px; color: var(--x-esp); }
.x-news small { font-size: 13px; color: #CDBBAA; }
.x-done { font-weight: 600; color: inherit; }

/* category cards */
.x-cats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 820px) { .x-cats { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; } }
.x-cats a { display: grid; gap: 6px; padding: 18px; background: var(--x-white); border: 1px solid var(--x-line); border-radius: 16px; transition: box-shadow .2s, transform .2s; }
.x-cats a:hover { box-shadow: var(--x-shadow); transform: translateY(-2px); }
.x-cats em { font: 600 13px/1 var(--x-sans); font-style: normal; color: var(--x-rose-d); }
.x-cats b { font: 600 21px/1.1 var(--x-serif); }
.x-cats span { font-size: 13px; color: var(--x-esp-2); }

/* breadcrumb */
.x-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--x-esp-2); padding-top: 24px; }
.x-crumb a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--x-line); }
.x-crumb a:hover { color: var(--x-rose-d); }

/* hub header */
.x-hubhead { display: grid; gap: 24px; padding-block: 24px 32px; }
.x-hubhead__copy { display: grid; gap: 14px; align-content: start; }
.x-count { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.x-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--x-sage); }
.x-featured { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: var(--x-white); border: 1px solid var(--x-line); border-radius: 18px; padding: 12px; box-shadow: var(--x-shadow); }
.x-featured img { width: 120px; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; }
.x-featured div { display: grid; gap: 6px; }
.x-featured h3 { font-size: 22px; }
@media (min-width: 900px) { .x-hubhead { grid-template-columns: 1.2fr 1fr; align-items: center; } .x-featured { grid-template-columns: 180px 1fr; padding: 16px; } .x-featured img { width: 180px; } }
.x-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 16px; border-block: 1px solid var(--x-line); margin-bottom: 32px; }
.x-toolbar .x-chips--scroll { flex: 1 1 300px; min-width: 0; }
.x-sort { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.x-sort select { min-height: 40px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-white); padding: 0 14px; }
.x-pager { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.x-pager a, .x-pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--x-line); font-weight: 500; padding: 0 14px; }
.x-pager a[aria-current] { background: var(--x-esp); color: var(--x-ivory); border-color: var(--x-esp); }
.x-pager span { border: 0; }
.x-related { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 820px) { .x-related { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.x-related a { padding: 18px; border-radius: 16px; background: var(--x-panel); display: grid; gap: 4px; }
.x-related b { font: 600 20px/1.1 var(--x-serif); }
.x-related span { font-size: 13px; color: var(--x-esp-2); }

/* faq */
.x-faq { display: grid; border-top: 1px solid var(--x-line); }
.x-faq details { border-bottom: 1px solid var(--x-line); }
.x-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-weight: 600; font-size: 17px; min-height: 44px; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--x-panel); display: grid; place-items: center; font-weight: 400; color: var(--x-rose-d); }
.x-faq details[open] summary::after { content: "–"; }
.x-faq details p { padding: 0 0 18px; color: var(--x-esp-2); max-width: 68ch; }

/* post */
.x-postgrid { display: grid; gap: 48px; padding-bottom: 48px; }
@media (min-width: 1024px) { .x-postgrid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } .x-side { position: sticky; top: 170px; align-self: start; } }
.x-article { display: grid; gap: 22px; min-width: 0; max-width: 720px; }
.x-article > p, .x-article li { font-size: 17px; line-height: 1.75; }
.x-dek { font-size: 19px; color: var(--x-esp-2); line-height: 1.5; }
.x-byline { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-block: 14px; border-block: 1px solid var(--x-line); }
.x-author { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.x-author b { display: block; font-size: 15px; }
.x-author span { color: var(--x-esp-2); }
.x-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--x-rose); color: #2A1B13; display: grid; place-items: center; font: 600 15px var(--x-sans); letter-spacing: .04em; flex: none; }
.x-avatar--lg { width: 72px; height: 72px; font-size: 22px; }
.x-share { display: flex; gap: 6px; }
.x-share button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-white); cursor: pointer; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.x-share button:hover { border-color: var(--x-rose); }
.x-share svg { width: 14px; height: 14px; }
.x-disclose { font-size: 13px; color: var(--x-esp-2); font-style: italic; }
.x-fig { position: relative; margin: 0; display: grid; gap: 8px; }
.x-fig img { width: 100%; border-radius: 18px; object-fit: cover; box-shadow: var(--x-shadow); }
.x-fig--hero img { aspect-ratio: 4/5; object-position: 62% 30%; }
.x-fig--tall { max-width: 440px; }
.x-fig--tall img { aspect-ratio: 2/3; }
.x-fig figcaption { font-size: 13px; color: var(--x-esp-2); }
.x-quick { border-left: 4px solid var(--x-rose); background: var(--x-white); border-radius: 0 16px 16px 0; padding: 20px 22px; display: grid; gap: 6px; box-shadow: var(--x-shadow); }
.x-quick b { font: 600 13px var(--x-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--x-rose-d); }
.x-glance { background: var(--x-white); border: 1px solid var(--x-line); border-radius: 18px; padding: 20px; overflow-x: auto; }
.x-glance h3 { margin-bottom: 8px; }
.x-glance table { font: 400 15px/1.4 var(--x-sans); min-width: 520px; }
.x-glance th, .x-glance td { border-color: var(--x-line); padding: 12px 10px; }
.x-glance thead th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--x-esp-2); font-weight: 600; }
.x-glance tbody th { font-weight: 600; }
.x-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.x-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--x-line); }
.x-dots i.on { background: var(--x-rose); }
.x-toc { background: var(--x-panel); border-radius: 16px; padding: 4px 20px; }
.x-toc summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.x-toc summary::-webkit-details-marker { display: none; }
.x-toc summary::after { content: "Show"; font-size: 13px; color: var(--x-rose-d); font-weight: 500; }
.x-toc[open] summary::after { content: "Hide"; }
.x-toc ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.x-toc button { background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--x-rose); }
.x-style { display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid var(--x-line); scroll-margin-top: 180px; }
.x-facts { display: grid; gap: 6px; font-size: 16px; }
.x-facts b { font-weight: 600; }
.x-ask { background: var(--x-panel); border-radius: 16px; padding: 20px; display: grid; gap: 12px; }
.x-ask b { font: 600 12px var(--x-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--x-rose-d); }
.x-ask q { font: italic 500 21px/1.35 var(--x-serif); quotes: "“" "”"; }
.x-ask button { justify-self: start; }
.x-inlink { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 14px; background: var(--x-sage-l); font-weight: 600; }
.x-inlink:hover { background: #D8E1D2; }
.x-inlink small { display: block; font: 600 11px var(--x-sans); letter-spacing: .12em; text-transform: uppercase; color: #46553F; margin-bottom: 2px; }
.x-ad { border: 1.5px dashed #CDBBAA; border-radius: 14px; min-height: 250px; display: grid; place-items: center; color: #A0897A; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(201,139,122,.04) 12px 24px); }
.x-ad--wide { min-height: 120px; }
.x-authorbox { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border-radius: 18px; background: var(--x-panel); align-items: start; }
.x-authorbox div { display: grid; gap: 8px; }
.x-authorbox h3 { font-size: 24px; }
.x-pin { position: relative; width: min(340px, 100%); aspect-ratio: 2/3; border-radius: 18px; overflow: hidden; box-shadow: var(--x-shadow); margin: 0 auto; }
.x-pin img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.x-pin__band { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 20px 20px; background: var(--x-ivory); text-align: center; display: grid; gap: 6px; }
.x-pin__band b { font: 600 32px/1.05 var(--x-serif); }
.x-pin__band span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--x-rose-d); font-weight: 600; }
.x-pin__top { position: absolute; top: 16px; left: 16px; }
.x-comments { display: grid; gap: 16px; }
.x-comment { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border-radius: 16px; background: var(--x-white); border: 1px solid var(--x-line); }
.x-comment .x-avatar { background: var(--x-sage); }
.x-comment p { font-size: 15px; }
.x-comment small { color: var(--x-esp-2); font-size: 13px; }
.x-form { display: grid; gap: 14px; }
.x-form__2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .x-form__2 { grid-template-columns: 1fr 1fr; } }
.x-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--x-esp-2); }
.x-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--x-rose-d); flex: none; }
.x-side { display: grid; gap: 20px; }
.x-box { background: var(--x-white); border: 1px solid var(--x-line); border-radius: 18px; padding: 20px; display: grid; gap: 12px; }
.x-box h3 { font-size: 22px; }
.x-box--panel { background: var(--x-panel); border-color: transparent; }
.x-popular { counter-reset: p; display: grid; gap: 12px; }
.x-popular a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.x-popular a::before { counter-increment: p; content: counter(p); font: 600 24px/1 var(--x-serif); color: var(--x-rose); }
.x-popular a:hover { color: var(--x-rose-d); }
.x-search { display: flex; gap: 8px; }
.x-search .x-input { flex: 1; min-width: 0; }

/* contact & about */
.x-pagehead { padding-block: 32px 24px; display: grid; gap: 14px; }
.x-two { display: grid; gap: 32px; padding-bottom: 56px; }
@media (min-width: 900px) { .x-two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.x-success { display: none; padding: 24px; border-radius: 16px; background: var(--x-sage-l); gap: 6px; }
.x-success.is-on { display: grid; }
.x-values { display: grid; gap: 16px; }
@media (min-width: 820px) { .x-values { grid-template-columns: repeat(3, 1fr); } }
.x-values > div { padding: 26px; border-radius: 18px; background: var(--x-white); border: 1px solid var(--x-line); display: grid; gap: 10px; align-content: start; }
.x-values i { width: 48px; height: 48px; border-radius: 50%; background: var(--x-panel); display: grid; place-items: center; color: var(--x-rose-d); }
.x-values svg { width: 22px; height: 22px; }
.x-process { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 820px) { .x-process { grid-template-columns: repeat(4, 1fr); } }
.x-process li { padding: 22px; border-radius: 18px; background: var(--x-ivory); display: grid; gap: 8px; align-content: start; }
.x-process li::before { counter-increment: s; content: "0" counter(s); font: 600 34px/1 var(--x-serif); color: var(--x-rose); }
.x-process b { font: 600 20px/1.15 var(--x-serif); }
.x-process p { font-size: 15px; color: var(--x-esp-2); }
.x-textlinks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.x-textlinks a { color: var(--x-rose-d); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* search */
.x-results { display: grid; gap: 0; border-top: 1px solid var(--x-line); }
.x-result { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--x-line); align-items: start; }
.x-result img { width: 96px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; }
.x-result div { display: grid; gap: 8px; justify-items: start; }
.x-result h3 a:hover { color: var(--x-rose-d); }
.x-result p { font-size: 15px; color: var(--x-esp-2); }
.x-result mark { background: #F4E1DA; color: inherit; padding: 0 2px; border-radius: 3px; }
@media (min-width: 640px) { .x-result { grid-template-columns: 140px 1fr; gap: 24px; } .x-result img { width: 140px; } }
.x-404 { text-align: center; display: grid; gap: 18px; justify-items: center; padding-block: 56px 32px; }
.x-404 .x-big { font: 600 clamp(96px, 20vw, 160px)/.9 var(--x-serif); color: var(--x-rose); }
.x-404 form { width: 100%; max-width: 480px; }

/* footer */
.x-footer { background: var(--x-esp); color: #E9DDD0; margin-top: 40px; padding-block: 56px 28px; font-size: 14px; }
.x-footer .x-logo span { color: #CDBBAA; }
.x-footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .x-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.x-footer h4 { font: 600 12px var(--x-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--x-sage); margin: 0 0 12px; }
.x-footer ul { display: grid; gap: 4px; }
.x-footer ul a { display: inline-block; padding: 4px 0; }
.x-footer ul a:hover { color: var(--x-rose); }
.x-footer__brand { display: grid; gap: 16px; align-content: start; }
.x-footer__brand p { color: #CDBBAA; max-width: 40ch; }
.x-footer form { display: flex; gap: 8px; flex-wrap: wrap; }
.x-footer .x-input { flex: 1 1 180px; color: var(--x-esp); min-height: 44px; }
.x-footer .x-btn--ghost { color: #F3EADF !important; }
.x-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(233,221,208,.18); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #CDBBAA; font-size: 13px; }
.x-footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* cookie + top */
.x-cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 720px; margin: 0 auto; background: var(--x-white); border: 1px solid var(--x-line); border-radius: 18px; box-shadow: 0 12px 40px rgba(59,42,32,.18); padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.x-cookie p { flex: 1 1 280px; }
.x-cookie[hidden] { display: none; }
.x-totop { position: fixed; right: 16px; bottom: 16px; z-index: 65; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--x-esp); color: var(--x-ivory); display: grid; place-items: center; cursor: pointer; box-shadow: var(--x-shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; transform: translateY(8px); }
.x-totop.is-on { opacity: 1; pointer-events: auto; transform: none; }
.x-totop svg { width: 20px; height: 20px; }
body.x-cookie-on .x-totop { bottom: 120px; }
.x-view[hidden] { display: none; }
.x-sr { position: absolute; left: 0; top: 0; white-space: nowrap; clip-path: inset(50%); pointer-events: none; }
/* accessibility fixes */
.x-site { --x-rose-d: #8E4E3E; }
.x-logo b i { color: var(--x-rose-d); }
.x-logo span, .x-tag { font-size: 12px; }
.x-season .x-eyebrow { color: var(--x-esp); }
.x-preview__pills a, .x-seg button, .x-btn--sm, .x-site .x-save { min-height: 44px; }
.x-more { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; }
.x-card h3 a { display: block; min-height: 44px; }
.x-footer ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.x-footer ul { gap: 0; }
.x-footer ul a { min-width: 44px; }
.x-footer .x-logo b i { color: var(--x-rose); }
.x-site .x-save { color: #fff; }
.x-site .x-totop { color: var(--x-ivory); }
.x-site .x-share button { min-height: 44px; }
/* ===== post view: reading layout ===== */
.x-progress { position: fixed; top: var(--x-pv, 46px); left: 0; right: 0; height: 3px; z-index: 61; pointer-events: none; background: rgba(201,139,122,.15); }
.x-progress span { display: block; height: 100%; background: var(--x-rose); transform-origin: 0 50%; transform: scaleX(0); }
.x-postcrumb { padding-top: 16px; }
.x-phero { max-width: 1120px; margin: 16px auto 0; padding-inline: var(--x-pad); position: relative; display: grid; gap: 8px; }
.x-phero img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 62% 30%; border-radius: 20px; box-shadow: var(--x-shadow); background: var(--x-panel); }
.x-phero figcaption, .x-st__fig figcaption { font-size: 13px; color: var(--x-esp-2); }
@media (min-width: 768px) { .x-phero img { aspect-ratio: 16/8; border-radius: 24px; } }
.x-read { max-width: 680px; margin-inline: auto; }
.x-phead__copy { padding: clamp(28px, 5vw, 44px) var(--x-pad) 0; box-sizing: content-box; display: grid; gap: 16px; justify-items: start; }
.x-phead__copy h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.06; letter-spacing: -.01em; color: var(--x-esp); }
.x-pill { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: #F4E1DA; color: #7A3F30 !important; font: 600 12px/1 var(--x-sans); letter-spacing: .1em; text-transform: uppercase; }
.x-pill::after { content: ""; position: absolute; inset: -6px -2px; }
.x-pill:hover { background: #EED3C9; }
.x-phead__copy .x-dek { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--x-esp-2); max-width: 36em; }
.x-byrow { width: 100%; display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; justify-content: space-between; padding-block: 14px; border-block: 1px solid var(--x-line); margin-top: 4px; }
.x-byrow .x-author span { font-size: 14px; }
.x-tools { display: flex; gap: 8px; align-items: center; }
.x-tool { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--x-line); background: var(--x-white); display: inline-grid; place-items: center; cursor: pointer; padding: 0; color: var(--x-esp); transition: border-color .2s, background .2s; }
.x-tool:hover { border-color: var(--x-rose); }
.x-tool svg { width: 18px; height: 18px; }
.x-tool--pin { background: #E60023; border-color: #E60023; color: #fff; }
.x-tool--pin:hover { background: #C5001E; border-color: #C5001E; }
.x-tool--pin[aria-pressed="true"] { background: var(--x-esp); border-color: var(--x-esp); }
.x-tool--aa { font: 600 15px/1 var(--x-serif); font-size: 18px; }
.x-aa { position: relative; }
.x-aa__pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--x-white); border: 1px solid var(--x-line); border-radius: 16px; box-shadow: 0 12px 32px rgba(59,42,32,.16); padding: 12px; display: grid; gap: 8px; min-width: 196px; }
.x-aa__pop[hidden] { display: none; }
.x-aa__pop p { font: 600 12px var(--x-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--x-esp-2); }
.x-aa__seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--x-panel); }
.x-aa__seg button { flex: 1; min-height: 44px; min-width: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-family: var(--x-serif); font-weight: 600; }
.x-aa__seg button:nth-child(1) { font-size: 15px; } .x-aa__seg button:nth-child(2) { font-size: 18px; } .x-aa__seg button:nth-child(3) { font-size: 22px; }
.x-aa__seg button[aria-pressed="true"] { background: var(--x-esp); color: var(--x-ivory); }
.x-phead__copy .x-disclose { font-size: 13px; font-style: normal; color: var(--x-esp-2); }

.x-postlayout { display: grid; grid-template-columns: minmax(0, 1fr); padding: 8px var(--x-pad) 0; }
.x-toc2 { display: none; }
@media (min-width: 1180px) {
  .x-postlayout { grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); column-gap: 56px; }
  .x-postlayout > .x-prose { grid-column: 2; }
  .x-toc2 { display: block; grid-column: 1; grid-row: 1; justify-self: end; width: 100%; max-width: 210px; position: sticky; top: 180px; align-self: start; margin-top: 40px; }
  .x-tocm { display: none; }
}
.x-toc2 p { font: 600 12px var(--x-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--x-esp-2); margin-bottom: 10px; }
.x-toc2 ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--x-line); }
.x-toc2 button { display: block; width: 100%; text-align: left; min-height: 40px; padding: 8px 0 8px 16px; margin-left: -1px; border: 0; border-left: 2px solid transparent; background: none; cursor: pointer; font-size: 14px; line-height: 1.35; color: var(--x-esp-2); transition: color .2s, border-color .2s; }
.x-toc2 button:hover { color: var(--x-esp); }
.x-toc2 button[aria-current="true"] { color: var(--x-rose-d); border-left-color: var(--x-rose); font-weight: 600; }
.x-tocm { margin-top: 24px; border-radius: 24px; background: var(--x-panel); }
.x-tocm summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; font: 600 15px/1.2 var(--x-sans); border-radius: 24px; }
.x-tocm summary::-webkit-details-marker { display: none; }
.x-tocm summary svg { width: 18px; height: 18px; color: var(--x-rose-d); flex: none; }
.x-tocm__cur { color: var(--x-esp-2); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.x-tocm summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--x-rose-d); }
.x-tocm[open] summary::after { content: "−"; }
.x-tocm ol { margin: 0; padding: 0 10px 12px; list-style: none; }
.x-tocm button { display: block; width: 100%; text-align: left; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-size: 16px; }
.x-tocm button[aria-current="true"] { background: var(--x-white); color: var(--x-rose-d); font-weight: 600; }

.x-prose { --x-fs: 17px; font-size: var(--x-fs); line-height: 1.75; color: var(--x-esp); min-width: 0; padding-bottom: 24px; text-align: left; }
.x-prose[data-size="s"] { --x-fs: 16px; } .x-prose[data-size="l"] { --x-fs: 19px; }
@media (min-width: 768px) { .x-prose { --x-fs: 19px; } .x-prose[data-size="s"] { --x-fs: 17px; } .x-prose[data-size="l"] { --x-fs: 21px; } }
.x-prose > * + * { margin-top: 2em; }
.x-prose > p + p { margin-top: 1.2em; }
.x-prose h2 { font-size: clamp(30px, 3.4vw, 38px); line-height: 1.12; color: var(--x-esp); }
.x-prose section, .x-prose h2 { scroll-margin-top: 180px; }
.x-prose > section { margin-top: 2.2em; }
.x-prose section > * + * { margin-top: 1.2em; }

.x-quick2 { background: var(--x-panel); border-radius: 20px; padding: 1.2em 1.4em; }
.x-quick2 > * + * { margin-top: .5em !important; }
.x-label { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--x-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--x-rose-d); }
.x-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--x-rose); }
.x-quick2 p:not(.x-label) { line-height: 1.65; }

.x-gl { background: var(--x-white); border: 1px solid var(--x-line); border-radius: 20px; overflow: hidden; }
.x-gl h2 { font-size: 24px; padding: 18px 20px 12px; }
.x-gl__scroll { overflow-x: auto; margin: 0 !important; }
.x-gl__scroll:focus-visible { outline-offset: -2px; }
.x-gl table { font: 400 15px/1.45 var(--x-sans); min-width: 600px; }
.x-gl th, .x-gl td { padding: 12px 16px; border: 0; vertical-align: middle; }
.x-gl thead th { font: 600 12px/1.2 var(--x-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--x-esp-2); background: var(--x-white); border-bottom: 1px solid var(--x-line); padding-block: 10px; }
.x-gl tbody tr:nth-child(odd) > * { background: #F7F1E9; }
.x-gl tbody tr:nth-child(even) > * { background: var(--x-white); }
.x-gl tr > :first-child { position: sticky; left: 0; z-index: 1; padding-left: 20px; box-shadow: inset -1px 0 0 var(--x-line); min-width: 140px; }
.x-gl tbody th { font-weight: 600; }
.x-gl tr > :last-child { padding-right: 20px; white-space: nowrap; }
.x-gl__hint { font-size: 12px !important; color: var(--x-esp-2); padding: 0 20px 14px; margin-top: 10px !important; }
@media (min-width: 680px) { .x-gl__hint { display: none; } }

.x-st__head { display: flex; align-items: baseline; gap: 16px; }
.x-st__num { font: 600 clamp(56px, 7vw, 76px)/.8 var(--x-serif); color: var(--x-rose); flex: none; letter-spacing: -.02em; }
.x-st__fig { position: relative; margin: 0; display: grid; gap: 8px; }
.x-st__fig img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 20px; background: var(--x-panel); box-shadow: var(--x-shadow); }
.x-facts2 { display: grid; gap: 1px; background: var(--x-line); border: 1px solid var(--x-line); border-radius: 18px; overflow: hidden; font-size: 15px; line-height: 1.45; }
@media (min-width: 640px) { .x-facts2 { grid-template-columns: 1.6fr 1fr 1fr; } }
.x-facts2 li { background: var(--x-white); padding: 14px 16px; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; }
.x-facts2 i { width: 32px; height: 32px; border-radius: 50%; background: var(--x-panel); display: grid; place-items: center; color: var(--x-rose-d); }
.x-facts2 svg { width: 16px; height: 16px; }
.x-facts2 b { display: block; font: 600 12px/1.4 var(--x-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--x-esp-2); margin-bottom: 2px; }
.x-askq { margin: 0; background: var(--x-white); border: 1px solid var(--x-line); border-left: 4px solid var(--x-rose); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.x-askq figcaption { font: 600 12px/1 var(--x-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--x-rose-d); }
.x-askq blockquote { margin: 0; font: italic 500 1.2em/1.4 var(--x-serif); color: var(--x-esp); }
.x-copy { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-ivory); cursor: pointer; font-size: 14px; font-weight: 600; }
.x-copy:hover { border-color: var(--x-rose); }
.x-copy svg { width: 16px; height: 16px; }
.x-copy.is-done { background: var(--x-sage-l); border-color: var(--x-sage); }

.x-tip { position: relative; padding: 1.4em 1.4em 1.4em 4.2em; border-radius: 20px; background: var(--x-white); border: 1px solid var(--x-line); }
.x-tip::before { content: "“"; position: absolute; left: 18px; top: 8px; font: 600 96px/1 var(--x-serif); color: var(--x-rose); }
.x-tip p:last-child { margin-top: .4em; font: italic 500 1.3em/1.4 var(--x-serif); }

.x-ad2 { margin-block: 3.2em !important; display: grid; gap: 8px; }
.x-ad2 > span { font: 500 12px/1 var(--x-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--x-esp-2); text-align: center; }
.x-ad2 > div { min-height: 120px; border-radius: 14px; background: #F3ECE3; border: 1px solid var(--x-line); }
.x-ad2--tall > div { min-height: 250px; }

.x-relcard { display: grid; grid-template-columns: 64px 1fr 24px; gap: 14px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 16px; border: 1px solid var(--x-line); background: var(--x-white); line-height: 1.35; transition: border-color .2s; }
.x-relcard:hover { border-color: var(--x-rose); }
.x-relcard img { width: 64px; height: 64px; object-fit: cover; object-position: 50% 25%; border-radius: 10px; }
.x-relcard small { display: block; font: 600 12px/1.4 var(--x-sans); letter-spacing: .12em; text-transform: uppercase; color: #46553F; }
.x-relcard b { font: 600 17px/1.3 var(--x-sans); }
.x-relcard svg { width: 20px; height: 20px; color: var(--x-rose-d); }

.x-acc { border-top: 1px solid var(--x-line); }
.x-acc details { border-bottom: 1px solid var(--x-line); }
.x-acc summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 56px; padding: 14px 0; font: 600 1em/1.4 var(--x-sans); }
.x-acc summary::-webkit-details-marker { display: none; }
.x-acc summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--x-panel); }
.x-acc summary i::before, .x-acc summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--x-rose-d); border-radius: 2px; transition: transform .2s; }
.x-acc summary i::after { transform: rotate(90deg); }
.x-acc details[open] summary i::after { transform: rotate(0deg); }
.x-acc details p { padding: 0 48px 18px 0; color: var(--x-esp-2); }

.x-end { padding: 16px var(--x-pad) 56px; display: grid; gap: 56px; }
.x-end > * { width: 100%; max-width: 680px; margin-inline: auto; }
.x-end > .x-endwide { max-width: 1040px; }
.x-end h2 { font-size: clamp(28px, 3.2vw, 34px); margin-bottom: 20px; }
.x-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border-radius: 20px; background: var(--x-panel); }
.x-helpful > p:first-child { font: 600 22px/1.2 var(--x-serif); margin-right: auto; }
.x-helpful div { display: flex; gap: 8px; }
.x-helpful button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-white); cursor: pointer; font-weight: 600; font-size: 14px; }
.x-helpful button svg { width: 18px; height: 18px; }
.x-helpful button[aria-pressed="true"] { background: var(--x-esp); color: var(--x-ivory); border-color: var(--x-esp); }
.x-helpful [role="status"] { flex-basis: 100%; font-size: 14px; color: var(--x-esp-2); }
.x-helpful [role="status"]:empty { display: none; }
.x-relrow { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.x-relrow > * { scroll-snap-align: start; }
@media (min-width: 760px) { .x-relrow { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; overflow: visible; } }
.x-endpair { display: grid; gap: 40px; }
@media (min-width: 820px) { .x-endpair { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; } }
.x-endpair .x-pin { margin: 0; }
.x-endpair .x-box h2 { font-size: 26px; margin-bottom: 4px; }
.x-endpair .x-popular a { min-height: 44px; align-items: center; font-size: 16px; }

.x-mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 66; max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 999px; background: rgba(43,30,23,.96); color: var(--x-ivory); box-shadow: 0 10px 30px rgba(36,25,18,.3); }
.x-mbar button { min-height: 52px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px; font: 500 12px/1 var(--x-sans); }
.x-mbar button:hover { background: rgba(250,247,242,.08); }
.x-mbar svg { width: 20px; height: 20px; }
.x-mbar button[aria-pressed="true"] { color: #F4B9AA; }
.x-site .x-mbar *:focus-visible { outline-color: var(--x-rose); }
@media (min-width: 1180px) { .x-mbar { display: none; } }
@media (max-width: 1179px) { body.x-is-post .x-totop { display: none; } body.x-is-post .x-footer { padding-bottom: 104px; } }
.x-tocm { scroll-margin-top: 180px; }
.x-end .x-textlinks a { display: inline-flex; align-items: center; min-height: 44px; }
.x-end .x-comments + .x-form { margin-top: 20px; }
.x-toast { position: fixed; left: 50%; bottom: 84px; z-index: 70; transform: translate(-50%, 8px); background: var(--x-esp); color: var(--x-ivory); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.x-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1180px) { .x-toast { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .x-site * { transition: none !important; } }

/* Overflow fix: keep every view inside the viewport on phones */
#x-main, .x-view, .x-wrap, .x-postlayout, .x-postlayout > *, .x-bcol, .x-bwide { min-width: 0; }
.x-prose > *, .x-bcol > *, .x-bwide > * { min-width: 0; }
.x-postlayout > .x-read { width: 100%; max-width: 680px; justify-self: center; }
.x-gl__scroll { max-width: 100%; overflow-x: auto; }
.x-gl__scroll, .x-glance, .x-pins, .x-relrow, .x-bcmp, .x-chips--scroll, .x-bchips__in { contain: inline-size; }
.x-gl, .x-quick2, .x-tocm { max-width: 100%; }

/* ==========================================================================
   3. WordPress adaptations (no preview bar, admin bar, logo image, content)
   ========================================================================== */
.x-site { --x-pv: 0px; overflow-x: clip; }
.admin-bar .x-site { --x-pv: 32px; }
@media (max-width: 782px) { .admin-bar .x-site { --x-pv: 46px; } }
@media (max-width: 600px) { .admin-bar .x-site { --x-pv: 0px; } }
.admin-bar .x-mobile { top: var(--x-pv); }

/* The mockup's offsets included its 46px preview bar; the live site has none. */
.x-toc2 { top: calc(var(--x-pv) + 134px) !important; }
.x-prose section, .x-prose h2, .x-prose h3, .x-tocm { scroll-margin-top: calc(var(--x-pv) + 134px); }

/* logo image (Customizer > Site Identity > Logo) */
.x-logo--img { flex-direction: row; align-items: center; }
.x-logo--img picture { display: block; line-height: 0; }
.x-logo--img img { height: 70px; width: auto; max-width: 300px; object-fit: contain; }
@media (max-width: 400px) { .x-logo--img img { height: 62px; max-width: 235px; } }
.x-mobile__top .x-logo--img img { height: 62px; max-width: 240px; }

/* mobile menu items without sub-items */
.x-mobile__link { display: flex; align-items: center; min-height: 44px; padding: 14px 0; font: 600 24px/1.2 var(--x-serif); border-bottom: 1px solid var(--x-line); }

/* newsletter placeholder (no list connected yet) */
.x-soon { display: flex; gap: 8px; width: 100%; max-width: 480px; flex-wrap: wrap; justify-content: center; }
.x-soon span.x-input { display: flex; align-items: center; flex: 1 1 220px; color: #D9C9BA; background: rgba(255,253,249,.08); border-color: rgba(233,221,208,.3); border-style: dashed; cursor: not-allowed; }
.x-soon .x-btn { opacity: .7; cursor: not-allowed; pointer-events: none; }
.x-footer .x-soon { justify-content: flex-start; }
.x-footer .x-soon span.x-input { flex: 1 1 180px; min-height: 44px; }

/* save-to-Pinterest links rendered as anchors */
a.x-save, a.x-tool { text-decoration: none; }
.x-pin__band b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* image fallbacks when a post has no featured image */
.x-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, #EFE6DC, #F3E3DD); }
.x-result .x-noimg, .x-featured .x-noimg { aspect-ratio: 2/3; border-radius: 12px; }
.x-featured .x-noimg { width: 120px; }
@media (min-width: 900px) { .x-featured .x-noimg { width: 180px; } }
.x-relcard .x-noimg { width: 64px; height: 64px; border-radius: 10px; }

/* pagination from paginate_links() */
.x-pager .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--x-line); font-weight: 500; padding: 0 14px; }
.x-pager span.page-numbers.current { background: var(--x-esp); color: var(--x-ivory); border-color: var(--x-esp); }
.x-pager span.page-numbers.dots { border: 0; }
.x-pager a.page-numbers:hover { border-color: var(--x-rose); }

/* sort control */
.x-sort form { display: flex; gap: 8px; align-items: center; margin: 0; }

/* empty states */
.x-empty { padding: 32px; border-radius: 18px; background: var(--x-panel); display: grid; gap: 10px; justify-items: start; }

/* ---- Post content (the_content) inside the reader column ---- */
.x-prose > :first-child { margin-top: 0; }
.x-prose .x-tocm + * { margin-top: 2em; }
.x-prose > ul, .x-prose > ol, .x-prose .wp-block-list { list-style: revert; padding-left: 1.3em; display: grid; gap: .45em; }
.x-prose li > ul, .x-prose li > ol { list-style: revert; padding-left: 1.3em; margin-top: .45em; }
.x-prose > p + p, .x-prose > p + ul, .x-prose > p + ol, .x-prose > ul + p, .x-prose > ol + p { margin-top: 1.2em; }
.x-prose h2 + *, .x-prose h3 + *, .x-prose h4 + * { margin-top: .8em; }
.x-prose h3 { font-size: clamp(23px, 2.6vw, 27px); line-height: 1.2; }
.x-prose h4 { font: 600 1em/1.4 var(--x-sans); letter-spacing: .02em; }
.x-prose a:not(.x-relcard):not(.x-btn):not(.wp-block-button__link) { color: var(--x-rose-d); text-decoration: underline; text-decoration-color: rgba(164,97,79,.45); text-underline-offset: 3px; }
.x-prose a:not(.x-relcard):not(.x-btn):hover { text-decoration-color: currentColor; }
.x-prose img { border-radius: 20px; background: var(--x-panel); }
.x-prose figure { margin-block-end: 0; display: grid; gap: 8px; }
.x-prose figure img { width: 100%; box-shadow: var(--x-shadow); }
.x-prose figcaption, .x-prose .wp-caption-text, .x-prose .wp-element-caption { font-size: 13px; color: var(--x-esp-2); text-align: left; }
.x-prose blockquote, .x-prose .wp-block-quote { margin-inline: 0; position: relative; padding: 1.4em 1.4em 1.4em 4.2em; border-radius: 20px; background: var(--x-white); border: 1px solid var(--x-line); }
.x-prose blockquote::before { content: "\201C"; position: absolute; left: 18px; top: 8px; font: 600 96px/1 var(--x-serif); color: var(--x-rose); }
.x-prose blockquote p { font: italic 500 1.25em/1.45 var(--x-serif); }
.x-prose blockquote cite { display: block; margin-top: .6em; font: 600 12px/1.4 var(--x-sans); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--x-rose-d); }
.x-prose table { font: 400 15px/1.45 var(--x-sans); background: var(--x-white); border: 1px solid var(--x-line); border-radius: 20px; overflow: hidden; display: block; overflow-x: auto; }
.x-prose thead th { font: 600 12px/1.2 var(--x-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--x-esp-2); border-bottom: 1px solid var(--x-line); }
.x-prose tbody tr:nth-child(odd) > * { background: #F7F1E9; }
.x-prose th, .x-prose td { padding: 12px 16px; border-bottom: 0; }
.x-prose .wp-block-table { overflow-x: auto; }
.x-prose .wp-block-table table { display: table; min-width: 520px; }
.x-prose hr, .x-prose .wp-block-separator { border: 0; height: 1px; background: var(--x-line); margin-block: 2.4em; }
.x-prose pre, .x-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--x-panel); border-radius: 8px; }
.x-prose code { padding: 2px 6px; }
.x-prose pre { padding: 16px; overflow-x: auto; }
.x-prose iframe, .x-prose video, .x-prose embed { max-width: 100%; }
.x-prose .wp-block-image { margin-inline: 0; }
.x-prose .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.x-prose .wp-block-button__link, .x-prose .x-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--x-rose); color: #2A1B13; font-weight: 600; font-size: 15px; text-decoration: none; }
.x-prose > section > h2 { scroll-margin-top: calc(var(--x-pv) + 134px); }

/* Page content (About, Contact, Privacy, Affiliate) */
.x-pagebody { padding-bottom: 56px; }
.x-pagebody.x-prose { padding-inline: 0; }
.x-pagehead--center { text-align: center; justify-items: center; }
.x-pagehead--center .x-lead { margin-inline: auto; }
.x-contactbox { padding: clamp(20px, 4vw, 32px); }
.x-contactbox.x-prose { --x-fs: 17px; }
.x-contactbox input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .x-contactbox select { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-white); }
.x-contactbox textarea { width: 100%; min-height: 140px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--x-line); background: var(--x-white); }
.x-contactbox input[type="submit"], .x-contactbox button[type="submit"] { min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--x-rose); background: var(--x-rose); color: #2A1B13; font-weight: 600; cursor: pointer; }

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; text-align: center; }
.alignwide, .alignfull { width: 100%; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 0; } }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }
.screen-reader-text, .x-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus, .x-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; clip-path: none; z-index: 100000; padding: 12px 18px; background: var(--x-esp); color: var(--x-ivory); border-radius: 999px; }

/* Comments */
.x-comments .children { list-style: none; margin: 16px 0 0; padding-left: clamp(16px, 4vw, 40px); display: grid; gap: 16px; }
.x-comment > div { display: grid; gap: 6px; min-width: 0; }
.x-comment .reply a, .x-comment .comment-reply-link { font-size: 13px; font-weight: 600; color: var(--x-rose-d); text-decoration: underline; text-underline-offset: 3px; }
.x-comment .x-comment__body p + p { margin-top: .6em; }
.x-comment-wrap { list-style: none; }
.comment-respond.x-box { margin-top: 20px; }
.comment-respond h3 { font-size: 22px; }
.comment-respond h3 small a { font: 500 13px var(--x-sans); color: var(--x-rose-d); margin-left: 8px; }
.comment-respond form { display: grid; gap: 14px; }
.comment-respond p { margin: 0; }
.comment-respond .comment-notes, .comment-respond .logged-in-as { font-size: 14px; color: var(--x-esp-2); }
.comment-respond .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--x-esp-2); }
.comment-respond .comment-form-cookies-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--x-rose-d); flex: none; }
.comment-respond .form-submit { margin: 0; }
.x-comments-closed { font-size: 14px; color: var(--x-esp-2); }
.x-cnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
.x-cnav a { color: var(--x-rose-d); text-decoration: underline; }

/* Mobile article bar: stays hidden until the reader scrolls past the post header */
.x-mbar { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; transition: transform .28s ease, opacity .28s ease, visibility 0s linear .28s; }
.x-mbar.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .28s ease, opacity .28s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .x-mbar { transition: none; } }
.x-mbar a { min-height: 52px; border-radius: 999px; color: inherit; display: grid; place-items: center; align-content: center; gap: 2px; font: 500 12px/1 var(--x-sans); text-decoration: none; }
.x-mbar a:hover { background: rgba(250,247,242,.08); }
.x-mbar.is-notoc { grid-template-columns: repeat(3, 1fr); }

/* Phone safety: nothing may push the page wider than the screen */
.x-site img, .x-site video, .x-site iframe { max-width: 100%; }
.x-prose, .x-prose * { overflow-wrap: break-word; }
.x-hubs__in { overflow-x: auto; scrollbar-width: none; }
ol.x-comments { list-style: none; margin: 0; padding: 0; }
.x-logo { flex: none; }
.x-menu { min-width: 0; overflow: hidden; }
.x-site a.x-tool--pin, .x-site a.x-save { color: #fff; }
.x-footer ul a { line-height: 1.35; padding-block: 6px; }
.x-prose tbody td:first-child { font-weight: 600; }

/* Reader components usable from block patterns (Quick answer, Tell your stylist, Stylist tip) */
.x-prose .x-st__head + * { margin-top: 1.2em; }
.x-prose .x-st__head h2 { margin: 0; }
.x-quick2 > .wp-block-group__inner-container > * + * { margin-top: .5em; }
.x-askq > .wp-block-group__inner-container { display: grid; gap: 10px; }
.x-askq .x-askq__label { font: 600 12px/1 var(--x-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--x-rose-d); }
.x-askq .x-askq__quote { font: italic 500 1.2em/1.4 var(--x-serif); color: var(--x-esp); }
.x-tip > .wp-block-group__inner-container > p:last-child { margin-top: .4em; font: italic 500 1.3em/1.4 var(--x-serif); }
.x-prose .x-tip p.x-label + p { margin-top: .4em; }
.x-prose .wp-block-table { border: 1px solid var(--x-line); border-radius: 20px; background: var(--x-white); }
.x-prose .wp-block-table table { border: 0; border-radius: 0; background: transparent; }
.x-prose > * + .x-askq, .x-prose section > * + .x-askq { margin-top: 1.6em; }
