/*
 * Eunoia Lens v3 — PART 2: her design on WordPress block markup.
 *
 * eunoia.css is Hao Ying's stylesheet as she wrote it. Blocks wrap things a little
 * differently from her hand-written HTML (a button is a link inside a div, a table sits
 * in a figure, a photo is a figure with an img), so this file carries her rules across to
 * those wrappers. Nothing here is a new design decision except where marked "TRL:".
 */

/* ---- WordPress layout defaults that her page never had ---- */
:root :where(body .is-layout-flow, body .is-layout-constrained) > * {margin-block-start:revert;margin-block-end:revert}
body .wp-site-blocks {padding:0}
.wp-block-image, .wp-block-gallery, .wp-block-table {margin:0}

/* ---- Logo block and sticky navigation (theme parts) ---- */
body .logo-block .wp-block-site-logo {margin:0 auto}
body .logo-block .wp-block-site-logo a {display:block}
body .logo-block .wp-block-site-logo img {width:min(460px,86vw);height:auto;margin:0 auto}
body .logo-block .logo-tag {margin:4px 0 0}
body .topnav {top:var(--wp-admin--admin-bar--height,0px)}
body .topnav .wp-block-navigation {font-size:inherit}
body .topnav .wp-block-navigation__container {display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
body .topnav .wp-block-navigation .wp-block-navigation-item__content {text-decoration:none;font-size:.98rem;font-weight:500;padding:10px 16px;min-height:44px;display:inline-flex;align-items:center;color:var(--el-body);transition:color .2s ease,background .2s ease}
body .topnav .wp-block-navigation .wp-block-navigation-item__content:hover {color:var(--el-forest)}
body .topnav .wp-block-navigation .book .wp-block-navigation-item__content {background:var(--el-forest);color:#fff;border-radius:999px;padding:10px 20px;margin-left:8px}
body .topnav .wp-block-navigation .book .wp-block-navigation-item__content:hover {background:var(--el-forest-deep);color:#fff}

/* ---- Buttons: her .btn, .btn-solid (default), .btn-ghost, .btn-white ---- */
body .wp-block-buttons {display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
body .wp-block-button__link {display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:13px 30px;border-radius:999px;text-decoration:none;font-weight:600;font-size:1rem;line-height:1.65;border:1.5px solid var(--el-forest);cursor:pointer;font-family:inherit;background:var(--el-forest);color:#fff;transition:background .2s ease,color .2s ease,border-color .2s ease}
body .wp-block-button__link:hover {background:var(--el-forest-deep);color:#fff}
body .btn-ghost .wp-block-button__link {background:transparent;color:var(--el-forest)}
body .btn-ghost .wp-block-button__link:hover {background:var(--el-sage-pale);color:var(--el-forest)}
body .btn-white .wp-block-button__link {background:#fff;color:var(--el-forest-deep);border-color:#fff}
body .btn-white .wp-block-button__link:hover {background:var(--el-sage-pale);color:var(--el-forest-deep)}
body .wp-block-button.btn-white, body .wp-block-button.btn-ghost {background:transparent;border:0;color:inherit}
body .hero-actions {margin-top:6px}

/* ---- Hero ---- */
body .hero-headline em {display:inline-block;font-style:italic;color:var(--el-sage-dark);transition:opacity .45s ease,transform .45s ease}
body .hero-headline em.is-fading {opacity:0;transform:translateY(10px)}
@media (prefers-reduced-motion:reduce) { body .hero-headline em {transition:none} }

/* ---- Photos: every slot is an Image block she can Replace ---- */
body .wp-block-image img {width:100%;height:100%;object-fit:cover;border-radius:8px;border:1.5px solid var(--el-sage)}
/* TRL: when a photo is taller than its frame, keep the top, where the head is.
   Wide photos are unaffected: they are trimmed at the sides, not top and bottom. */
body .wp-block-image img {object-position:50% 0}
/* The wide frames keep her 8:3 shape and set each row's height; the 4:3 frames beside
   them stretch to that height so the rows line up whatever photo is in them. */
body .hero-collage .wp-block-image {min-width:0;width:100%;height:auto}
@media (min-width:821px) {
body .hero-collage .wp-block-image:not(.collage-frame--wide) {aspect-ratio:auto;height:100%}
body .hero-collage .wp-block-image:not(.collage-frame--wide) img {position:absolute;inset:0}
body .hero-collage .wp-block-image:not(.collage-frame--wide) {position:relative;min-height:0}
}
body p.natural-note {font-family:"Jost",system-ui,sans-serif;font-size:1rem;line-height:1.6;color:var(--el-forest-deep);margin:0 auto 28px}
body .booking p.natural-note {margin-top:28px;margin-bottom:0}

/* ---- Portfolio: one Gallery block per kind of session ---- */
body .work .wp-block-gallery.has-nested-images {display:grid;grid-template-columns:1fr;gap:16px}
body .work .wp-block-gallery.has-nested-images figure.wp-block-image {width:100%;aspect-ratio:4/3;margin:0;flex-grow:0}
body .work .wp-block-gallery.has-nested-images figure.wp-block-image img {border-radius:8px}
body .work-caption {padding:16px 2px 0;display:flex;align-items:baseline;justify-content:space-between;gap:14px}
body .work-caption h3 {margin:0}
body .work-caption p {font-size:.92rem;color:var(--el-muted);text-align:right;margin:0}
/* TRL: her preview has one frame per kind of session. With several photos in a kind,
   "All work" shows each kind's first photo; choosing a kind opens all of its photos. */
body .gallery:not(.is-filtered) .work .wp-block-gallery figure.wp-block-image:not(:first-child) {display:none}
body .gallery.is-filtered {grid-template-columns:1fr}
/* TRL: with one kind chosen, every photo shows whole, in its own shape (no cropping),
   flowing down two columns. */
body .gallery.is-filtered .work .wp-block-gallery.has-nested-images {display:block;column-count:2;column-gap:40px}
body .gallery.is-filtered .work .wp-block-gallery.has-nested-images figure.wp-block-image {aspect-ratio:auto;height:auto;margin:0 0 40px;break-inside:avoid}
body .gallery.is-filtered .work .wp-block-gallery.has-nested-images figure.wp-block-image img {height:auto;object-fit:contain}
body .trusted-by-names {padding:0}
@media (max-width:820px) {
body .work-caption {flex-direction:column;gap:2px}
body .work-caption p {text-align:left}
body .gallery.is-filtered .work .wp-block-gallery.has-nested-images {column-count:1}
body .gallery.is-filtered .work .wp-block-gallery.has-nested-images figure.wp-block-image {margin-bottom:20px}
}

/* ---- Tables: the table sits inside a figure that carries her class ---- */
body .wp-block-table td, body .wp-block-table th {border:0}
body .wp-block-table thead {border-bottom:0}
body .pkg-table table, body .glance-table table {width:100%;border-collapse:collapse}
body .pkg-table th, body .pkg-table td {border-bottom:1px solid var(--el-line)}
body .pkg-table thead th {border-bottom:1px solid var(--el-sage)}
body .pkg-table tbody td:first-child {font-weight:600;color:var(--el-ink)}
body .pkg-table:not(.pkg-table--plain) tbody td:nth-child(2) {font-weight:600;color:var(--el-forest);white-space:nowrap}
body .glance-table th, body .glance-table td {border-bottom:1px solid var(--el-line)}
body .glance-table td:first-child {font-family:"Cormorant Garamond",serif;font-size:1.15rem;font-weight:600;color:var(--el-forest-deep);white-space:nowrap;width:180px}
body .glance-table tr:last-child th, body .glance-table tr:last-child td {border-bottom:none}
@media (max-width:720px) {
body .pkg-table table {display:block}
body .pkg-table tbody td:first-child {font-family:"Cormorant Garamond",serif;font-size:1.3rem;color:var(--el-forest-deep);padding-bottom:2px}
body .pkg-table:not(.pkg-table--plain) tbody td:nth-child(2) {white-space:normal}
}
@media (max-width:640px) {
body .glance-table table {display:block}
body .glance-table td:first-child {white-space:normal;width:100%;padding-bottom:2px;border-bottom:none}
}

/* ---- Small pieces that were divs or spans in her markup ---- */
body .approach-item .num, body .step .num, body .consult-item .num {margin:0}
body .prints .fine, body .podcast .fine {margin-bottom:0}
body .contact .alt {margin-bottom:0;font-family:inherit;max-width:none}
body .philosophy em, body .consulting-intro em {font-family:"Cormorant Garamond",serif}
body .statement .wp-block-quote {margin:0 auto;max-width:920px}
body .calendar-spot .wp-block-button__link {border-style:solid}
body .bottom-nav-links {margin-top:0}

/* ---- Contact: LinkedIn and Instagram pills ---- */
body .contact .social-links .wp-block-button__link {gap:9px;min-height:48px;padding:11px 22px;border:1.5px solid rgba(255,255,255,.75);background:transparent;color:#fff;font-size:.98rem}
body .contact .social-links .wp-block-button__link:hover {background:rgba(255,255,255,.14);border-color:#fff}
body .contact .social-links .wp-block-button__link::before {content:"";width:19px;height:19px;flex:none;background:currentColor;-webkit-mask:var(--el-icon) center/contain no-repeat;mask:var(--el-icon) center/contain no-repeat}
body .contact .social-linkedin {--el-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.45 20.45h-3.55v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.47-.9 1.63-1.85 3.36-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM7.12 20.45H3.55V9h3.57v11.45z'/%3E%3C/svg%3E")}
body .contact .social-instagram {--el-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E")}

/* ---- Footer ---- */
body .foot-row p {margin:0}

/* ---- Client Agreement, Booking Terms, Privacy: her document layout ---- */
body .agreement-topbar .wrap p {margin:0}
body .agreement-topbar .agreement-topbar-title {font-size:.88rem;letter-spacing:.14em;text-transform:uppercase;color:var(--el-muted);font-weight:400;margin:0}
body .agreement-wrap .agreement-bottom {color:var(--el-forest)}
