/* ==========================================================================
   Ary Nutrition — block styles
   Styles for pages built in the block editor (About, Programs) and for
   the "Block styles" you can pick in the editor sidebar:
   Group → Card / Featured card / Sand background / Green background
   Paragraph → Badge / Lead / Eyebrow / Price
   List → Checkmarks · Image → Rounded portrait
   Also loaded inside the editor so it looks close to the live site.
   ========================================================================== */

/* ---------- Italic text inside headings = green serif accent ---------- */
.entry-content h1 em, .entry-content h2 em, .entry-content h3 em,
.editor-styles-wrapper h1 em, .editor-styles-wrapper h2 em {
	font-family: var(--serif, "Fraunces", Georgia, serif);
	font-style: italic; font-weight: 500; color: var(--forest, #145a45); letter-spacing: -0.01em;
}

/* ---------- Paragraph styles ---------- */
.is-style-ary-badge {
	display: block; width: fit-content;
	padding: 6px 14px; border-radius: 999px;
	background: var(--mint, #e5efe9); color: var(--forest, #145a45);
	font-size: 12.5px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
}
.is-style-ary-badge::before {
	content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
	background: currentColor; margin-right: 8px; vertical-align: 2px;
}
.is-style-ary-lead { font-size: 19px !important; line-height: 1.65; color: var(--ink-soft, #3d4a44); }
.is-style-ary-eyebrow {
	font-size: 13px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--forest, #145a45); margin-bottom: .4em !important;
}
.is-style-ary-price {
	font-family: var(--serif, "Fraunces", Georgia, serif); font-weight: 600;
	font-size: 44px !important; line-height: 1.05; color: var(--ink, #1c2a24); letter-spacing: -0.02em;
	margin-bottom: 4px !important;
}
.is-style-ary-price em { font-family: var(--sans, sans-serif); font-style: normal; font-size: 15px; font-weight: 500; color: var(--muted, #6b746f); letter-spacing: 0; }

/* ---------- Group styles ---------- */
.wp-block-group.is-style-ary-card,
.wp-block-group.is-style-ary-card-featured {
	background: var(--paper, #fcfbf8); border: 1px solid var(--line, #e7e3db);
	border-radius: var(--radius, 20px); padding: 30px 28px; height: 100%;
	box-shadow: var(--shadow-sm);
}
.wp-block-group.is-style-ary-card-featured {
	border: 2px solid var(--forest, #145a45);
	box-shadow: 0 2px 4px rgba(28, 42, 36, .04), 0 18px 40px rgba(20, 90, 69, .14);
}
.is-style-ary-card > :first-child, .is-style-ary-card-featured > :first-child,
.is-style-ary-card .wp-block-group__inner-container > :first-child { margin-top: 0; }
.is-style-ary-card > :last-child, .is-style-ary-card-featured > :last-child { margin-bottom: 0; }
.entry-content .is-style-ary-card h3, .entry-content .is-style-ary-card-featured h3 {
	font-family: var(--serif, Georgia, serif); font-weight: 600; font-size: 23px; margin: 0 0 .45em; letter-spacing: -0.01em;
}
.is-style-ary-card p, .is-style-ary-card-featured p { font-size: 16px; }

.wp-block-group.is-style-ary-sand { background: var(--sand, #f2ede4); }
.wp-block-group.is-style-ary-green { background: var(--forest, #145a45); color: #dcebe3; }
.is-style-ary-green h1, .is-style-ary-green h2, .is-style-ary-green h3 { color: #fff !important; }
.is-style-ary-green h2 em, .is-style-ary-green h1 em { color: #bfe0cf !important; }
.is-style-ary-green .is-style-ary-badge { background: rgba(255,255,255,.12); color: #fff; }
.is-style-ary-green .is-style-ary-lead, .is-style-ary-green p { color: #dcebe3; }

/* ---------- Checkmark list ---------- */
.wp-block-list.is-style-ary-checks { list-style: none; padding-left: 0 !important; }
.wp-block-list.is-style-ary-checks li {
	position: relative; padding-left: 30px; margin-bottom: .6em; font-size: 16px; line-height: 1.55;
}
.wp-block-list.is-style-ary-checks li::before {
	content: ""; position: absolute; left: 0; top: .15em; width: 19px; height: 19px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145a45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
}
.is-style-ary-green .wp-block-list.is-style-ary-checks li::before { filter: brightness(0) invert(1); opacity: .85; }

/* ---------- Rounded portrait image ---------- */
.wp-block-image.is-style-ary-portrait img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: var(--radius-lg, 28px) !important;
	border: 8px solid #fff; box-shadow: var(--shadow-md);
}

/* ---------- Buttons (core Button block) ---------- */
.entry-content .wp-block-buttons { gap: 14px; }
.entry-content .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
	background: var(--forest, #145a45); color: #fff;
	font-family: var(--sans, sans-serif); font-weight: 600; font-size: 15.5px; line-height: 1.2;
	text-decoration: none !important;
	transition: transform .2s, box-shadow .2s, background .2s;
}
.entry-content .wp-block-button__link:hover { background: var(--forest-dark, #0f4636); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20, 90, 69, .25); }
.entry-content .is-style-outline > .wp-block-button__link,
.editor-styles-wrapper .is-style-outline > .wp-block-button__link {
	background: var(--paper, #fcfbf8); color: var(--ink, #1c2a24); border-color: var(--line, #e7e3db);
}
.entry-content .is-style-outline > .wp-block-button__link:hover { color: var(--forest); border-color: var(--mint-line); box-shadow: none; }
.is-style-ary-green .wp-block-button__link { background: #fff !important; color: var(--forest) !important; }
.is-style-ary-card .wp-block-button, .is-style-ary-card-featured .wp-block-button { width: 100%; }
.is-style-ary-card .wp-block-button__link, .is-style-ary-card-featured .wp-block-button__link { width: 100%; }

/* ---------- FAQ (Details block) ---------- */
.wp-block-details {
	background: var(--paper, #fcfbf8); border: 1px solid var(--line, #e7e3db); border-radius: 16px;
	padding: 0 24px; margin-bottom: 12px !important;
}
.wp-block-details summary {
	cursor: pointer; list-style: none; position: relative;
	padding: 20px 36px 20px 0; font-weight: 600; font-size: 17px; color: var(--ink, #1c2a24);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	font-size: 24px; font-weight: 400; color: var(--forest, #145a45); line-height: 1;
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { font-size: 16px; margin: 0 0 20px; }

/* ---------- Quote ---------- */
.entry-content .wp-block-quote.is-style-ary-big,
.entry-content .is-style-ary-green .wp-block-quote {
	border: 0; padding: 0; margin: 0 auto; max-width: 820px; text-align: center;
	font-family: var(--serif, Georgia, serif); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; color: #fff;
}
.entry-content .is-style-ary-green .wp-block-quote p { color: #fff; margin-bottom: .5em; }
.entry-content .is-style-ary-green .wp-block-quote cite {
	display: block; font-family: var(--sans, sans-serif); font-style: normal; font-size: 15px; color: #bfe0cf; letter-spacing: .04em;
}

/* ==========================================================================
   "Designed Sections" page template (About / Programs)
   Every top-level Group block becomes a full-width section.
   ========================================================================== */
.designed-content { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.designed-content > * { margin-top: 0; margin-bottom: 0; }
.designed-content > .wp-block-group { padding: 88px 24px; margin: 0; }

/* Keep section content at the site width. */
.designed-content > .wp-block-group > *,
.designed-content > .wp-block-group > .wp-block-group__inner-container > * {
	max-width: var(--wrap, 1180px); margin-left: auto; margin-right: auto;
}
/* Headings, badges and intro text that sit directly in a section are centered like the home page. */
.designed-content > .wp-block-group > :is(h1, h2, .is-style-ary-badge, .is-style-ary-lead),
.designed-content > .wp-block-group > .wp-block-group__inner-container > :is(h1, h2, .is-style-ary-badge, .is-style-ary-lead) {
	text-align: center; max-width: 760px;
}
.designed-content > .wp-block-group > p:not([class*="is-style"]),
.designed-content > .wp-block-group > .wp-block-group__inner-container > p:not([class*="is-style"]) { max-width: 760px; }
.designed-content > .wp-block-group > .wp-block-details,
.designed-content > .wp-block-group > .wp-block-group__inner-container > .wp-block-details { max-width: 820px; }

.designed-content h1 {
	font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 56px);
	letter-spacing: -0.02em; line-height: 1.08; margin: 22px auto 18px; color: var(--ink);
}
.designed-content h2 {
	font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.8vw, 44px);
	letter-spacing: -0.02em; line-height: 1.12; margin: 16px auto 14px; color: var(--ink);
}
.designed-content h3 { font-size: 20px; color: var(--ink); margin: 0 0 .4em; }
.designed-content .is-style-ary-lead { margin-bottom: 0; }
.designed-content > .wp-block-group > .wp-block-columns,
.designed-content > .wp-block-group > .wp-block-group__inner-container > .wp-block-columns { margin-top: 48px; margin-bottom: 0; gap: 28px; }

/* First section = page intro. */
.designed-content > .wp-block-group:first-child { padding: 84px 24px 24px; }

/* Columns inside sections: let cards stretch to equal height. */
.designed-content .wp-block-column > .wp-block-group:only-child { height: 100%; }
.designed-content .wp-block-columns.are-vertically-aligned-center { align-items: center; }

/* Bio / two-column split. */
.designed-content .is-style-ary-split { gap: 64px !important; align-items: center; }
.designed-content .is-style-ary-split h2 { text-align: left; margin-left: 0; }

@media (max-width: 781px) {
	.designed-content > .wp-block-group { padding: 64px 20px; }
	.designed-content > .wp-block-group:first-child { padding: 56px 20px 12px; }
	.designed-content .is-style-ary-split { gap: 32px !important; }
}

/* Spacing fixes between sections. */
.designed-content > .wp-block-group:first-child + .wp-block-group:not([class*="is-style-ary-"]) { padding-top: 56px; }
.designed-content:has(> .wp-block-group[class*="is-style-ary-"]:last-child) + .cta-band { padding-top: 96px; }
.designed-content .is-style-ary-card, .designed-content .is-style-ary-card-featured { display: flex; flex-direction: column; }
.designed-content .is-style-ary-card > .wp-block-buttons:last-child, .designed-content .is-style-ary-card-featured > .wp-block-buttons:last-child { margin-top: auto; padding-top: 8px; }
