/* ---------- Modern Cards (default) ----------
 * App-like: white rounded cards on warm grey, bold sans headings, square
 * portraits with soft corners, pill buttons, a forest-green call to action.
 */
body.clanveil-style-modern-cards {
	--clanveil-font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--clanveil-font-serif: var(--clanveil-font-sans);
	--cv-radius-card: 18px;
	--cv-footer-bg: #123d2e;
	--cv-footer-text: #f7f1e3;
	--cv-header-line: 1px solid color-mix(in srgb, var(--clanveil-text) 8%, transparent);
	--cv-alt-bg: transparent;
	--mc-card: #fff;
	--mc-shadow: 0 6px 22px rgba(20, 35, 28, .07);
	--mc-shadow-hover: 0 14px 34px rgba(20, 35, 28, .13);
	--genoguard-avatar-bg: #e4ede7;
	--genoguard-avatar-fg: #2c5a47;
	--genoguard-avatar-hair: #14231c;
	--gwt-radius: 16px;
	font-family: var(--clanveil-font-sans);
}
.clanveil-style-modern-cards h1, .clanveil-style-modern-cards h2, .clanveil-style-modern-cards h3,
.clanveil-style-modern-cards .clanveil-page-title, .clanveil-style-modern-cards .clanveil-entry__title { font-family: var(--clanveil-font-sans); font-weight: 700; letter-spacing: -.022em; }

/* Header + footer */
.clanveil-style-modern-cards .clanveil-header { background: #fff; box-shadow: 0 1px 0 rgba(20, 35, 28, .05), 0 6px 18px rgba(20, 35, 28, .04); }
.clanveil-style-modern-cards .clanveil-header .clanveil-btn--ghost { background: #123d2e; border-color: #123d2e; color: #fff; }
.clanveil-style-modern-cards .clanveil-header .clanveil-btn--ghost:hover { background: #0c2c21; }
.clanveil-style-modern-cards .clanveil-footer { margin-top: 3rem; }

/* Buttons */
.clanveil-style-modern-cards :is(.clanveil-btn, .ggwp-btn) { min-height: 46px; padding-inline: 1.5rem; border-radius: 999px; font-weight: 600; }
.clanveil-style-modern-cards :is(.clanveil-btn, .ggwp-btn):not(.clanveil-btn--ghost) { background: #123d2e; border-color: #123d2e; color: #fff; }
.clanveil-style-modern-cards .clanveil-btn--ghost { background: #fff; border: 1px solid #d9d2c1; color: #123d2e; }

/* Hero: split, big rounded picture */
.clanveil-style-modern-cards .clanveil-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.clanveil-style-modern-cards .clanveil-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.clanveil-style-modern-cards .clanveil-pill { display: inline-block; margin-bottom: 1.1rem; padding: .4rem .85rem; border-radius: 999px; background: #e4ede7; color: #123d2e; font-weight: 600; font-size: .82rem; }
.clanveil-style-modern-cards .clanveil-hero__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; }
.clanveil-style-modern-cards .clanveil-hero__text { font-size: 1.15rem; color: #4c5a53; max-width: 34rem; }
.clanveil-style-modern-cards .clanveil-hero__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 26px; background: #e4ede7; box-shadow: 0 26px 60px rgba(18, 61, 46, .2); }
.clanveil-style-modern-cards .clanveil-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.clanveil-style-modern-cards .clanveil-hero__media--portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem; background: linear-gradient(145deg, #e4ede7, #f7f1e3); }
.clanveil-style-modern-cards .clanveil-hero__portrait { display: block; overflow: hidden; border-radius: 18px; background: #fff; align-self: center; aspect-ratio: 1; box-shadow: var(--mc-shadow); }
.clanveil-style-modern-cards .clanveil-hero__portrait > * { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Section heads: title left, note right */
.clanveil-style-modern-cards .clanveil-head,
.clanveil-style-modern-cards .clanveil-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .4rem 1rem; margin: 0 0 1.25rem; text-align: start; }
.clanveil-style-modern-cards .clanveil-head:not(:first-child) { margin-top: 3rem; }
.clanveil-style-modern-cards .clanveil-head__title,
.clanveil-style-modern-cards .clanveil-section__title { margin: 0; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.clanveil-style-modern-cards .clanveil-section__title::after { display: none; }
.clanveil-style-modern-cards .clanveil-head__note { color: #5e6b64; font-size: .92rem; }

/* People cards */
.clanveil-style-modern-cards .clanveil-cards { display: grid; gap: 1.1rem; }
.clanveil-style-modern-cards .clanveil-cards--couple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clanveil-style-modern-cards .clanveil-cards--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clanveil-style-modern-cards .clanveil-person { align-items: stretch; gap: .75rem; padding: .85rem; border-radius: 18px; background: var(--mc-card); box-shadow: var(--mc-shadow); text-align: start; transition: box-shadow .2s, transform .2s; }
.clanveil-style-modern-cards a.clanveil-person:hover { box-shadow: var(--mc-shadow-hover); transform: translateY(-2px); }
.clanveil-style-modern-cards .clanveil-person__pic { width: 100%; aspect-ratio: 1; border-radius: 12px; background: #eee9dd; }
.clanveil-style-modern-cards .clanveil-person__text { align-items: flex-start; padding: 0 .2rem .15rem; }
.clanveil-style-modern-cards .clanveil-person__name { font-size: 1.05rem; }
.clanveil-style-modern-cards .clanveil-person--couple { flex-direction: row; align-items: center; gap: 1.25rem; }
.clanveil-style-modern-cards .clanveil-person--couple .clanveil-person__pic { width: 44%; }
.clanveil-style-modern-cards .clanveil-person--couple .clanveil-person__name { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.clanveil-style-modern-cards .clanveil-locked { max-width: none; flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-radius: 18px; background: var(--mc-card); box-shadow: var(--mc-shadow); text-align: start; }
.clanveil-style-modern-cards .clanveil-locked p { flex: 1 1 16rem; color: #3f4c45; }

/* Directory, branch pages and the other member cards */
.clanveil-style-modern-cards .clanveil-grid--members { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 1.1rem; }
.clanveil-style-modern-cards .clanveil-member__link { flex-direction: column; align-items: stretch; gap: .75rem; padding: .85rem; border: 0; border-radius: 18px; background: var(--mc-card); box-shadow: var(--mc-shadow); text-align: start; }
.clanveil-style-modern-cards .clanveil-member__link:hover { box-shadow: var(--mc-shadow-hover); }
.clanveil-style-modern-cards .clanveil-member--grid .clanveil-member__pic,
.clanveil-style-modern-cards .clanveil-member--feature .clanveil-member__pic { width: 100%; max-width: none; height: auto; aspect-ratio: 1; border-radius: 12px; box-shadow: none; }
.clanveil-style-modern-cards .clanveil-member--mini .clanveil-member__link { flex-direction: row; align-items: center; padding: .55rem; }
.clanveil-style-modern-cards .clanveil-member--mini .clanveil-member__pic { width: 48px; height: 48px; border-radius: 10px; }
.clanveil-style-modern-cards .clanveil-member__name { font-weight: 600; }
.clanveil-style-modern-cards .clanveil-page-header { margin-bottom: 1.75rem; }
.clanveil-style-modern-cards .clanveil-search-form--inline .clanveil-search-form__input { border-radius: 999px; background: #fff; }
.clanveil-style-modern-cards .clanveil-chip { border-radius: 999px; background: #fff; }
.clanveil-style-modern-cards .clanveil-chip.is-current,
.clanveil-style-modern-cards .pagination .page-numbers.current { background: #123d2e; border-color: #123d2e; color: #fff; }

/* Member profile: one wide card, picture left */
.clanveil-style-modern-cards .clanveil-profile .clanveil-entry__header { margin-bottom: 1.25rem; }
.clanveil-style-modern-cards .genoguard-wp-profile { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.75rem; align-items: start; padding: 1.25rem; border-radius: 22px; background: #fff; box-shadow: var(--mc-shadow); }
.clanveil-style-modern-cards .genoguard-wp-profile__photo { flex: none; }
.clanveil-style-modern-cards .genoguard-wp-profile__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #eee9dd; }
.clanveil-style-modern-cards .clanveil-profile-tree { margin-top: 2rem; padding: 1.25rem; border-radius: 22px; background: #fff; box-shadow: var(--mc-shadow); }

/* Family tree: white tiles, square portraits */
.clanveil-style-modern-cards .genoguard-wp-tree { --gwt-card: #fff; --gwt-line: #b9c6bd; --gwt-accent: #123d2e; }
.clanveil-style-modern-cards .genoguard-wp-tree__person { border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(20, 35, 28, .08); }
.clanveil-style-modern-cards .genoguard-wp-tree__pic,
.clanveil-style-modern-cards .genoguard-wp-tree__pic img,
.clanveil-style-modern-cards .genoguard-wp-tree__pic svg { border-radius: 12px; }

/* Albums */
.clanveil-style-modern-cards .clanveil-album { overflow: hidden; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--mc-shadow); }
.clanveil-style-modern-cards .clanveil-album__cover { aspect-ratio: 16 / 10; }
.clanveil-style-modern-cards .clanveil-album__cover img { width: 100%; height: 100%; object-fit: cover; }
.clanveil-style-modern-cards .clanveil-album__body { padding: .9rem 1rem 1.1rem; }
.clanveil-style-modern-cards .clanveil-album__title { font-weight: 650; }
.clanveil-style-modern-cards .clanveil-album__lock { border-radius: 999px; background: #fff; color: #123d2e; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* Story + call to action */
.clanveil-style-modern-cards .clanveil-section--intro .clanveil-container { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 22px; background: #fff; box-shadow: var(--mc-shadow); }
.clanveil-style-modern-cards .clanveil-access-band { padding-block: 1.5rem 3rem; background: transparent; }
.clanveil-style-modern-cards .clanveil-access-band .clanveil-container { padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem); border-radius: 28px; background: #123d2e; color: #f7f1e3; text-align: center; --clanveil-text: #f7f1e3; --clanveil-muted: #dfe6dd; --clanveil-line: rgba(247, 241, 227, .3); }
.clanveil-style-modern-cards .clanveil-access-band a:not(:is(.clanveil-btn, .ggwp-btn)) { color: #f0d79c; }
.clanveil-style-modern-cards .clanveil-access-band .ggwp-acr__panel { --clanveil-bg: #ffffff; --clanveil-text: #1b2a23; --clanveil-muted: #4a5a52; --clanveil-accent: #123d2e; --clanveil-line: rgba(18, 61, 46, .2); background: #ffffff; color: #1b2a23; }
.clanveil-style-modern-cards .clanveil-access-band .ggwp-acr__panel a:not(:is(.clanveil-btn, .ggwp-btn)) { color: #123d2e; }
.clanveil-style-modern-cards .clanveil-access-band :is(.clanveil-btn, .ggwp-btn),
.clanveil-style-modern-cards .clanveil-access-band button[type="submit"] { background: #e0c27f; border-color: #e0c27f; color: #123d2e; }

/* News cards */
.clanveil-style-modern-cards .clanveil-grid--posts .clanveil-card { border: 0; border-radius: 18px; background: #fff; box-shadow: var(--mc-shadow); }

/* Login page + login window */
.clanveil-style-modern-cards .genoguard-wp-signin { max-width: 27rem; margin-inline: auto; padding: 2rem 1.75rem; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(20, 35, 28, .12); }
.clanveil-style-modern-cards .clanveil-login__panel { border-radius: 24px; }
.clanveil-style-modern-cards .genoguard-wp-signin__button { border-radius: 999px; background: #123d2e; color: #fff; }
.clanveil-style-modern-cards .clanveil-login .genoguard-wp-signin__form input[type="text"],
.clanveil-style-modern-cards .clanveil-login .genoguard-wp-signin__form input[type="password"] { border-radius: 12px; background: #f7f5f0; }

/* 404 */
.clanveil-style-modern-cards.error404 .clanveil-main--center { max-width: 40rem; margin: clamp(1.5rem, 5vw, 3.5rem) auto; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 24px; background: #fff; box-shadow: var(--mc-shadow); text-align: center; }

@media (max-width: 900px) {
	.clanveil-style-modern-cards .clanveil-hero__grid { grid-template-columns: 1fr; }
	.clanveil-style-modern-cards .clanveil-cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.clanveil-style-modern-cards .clanveil-cards--couple { grid-template-columns: 1fr; }
	.clanveil-style-modern-cards .clanveil-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
	.clanveil-style-modern-cards .clanveil-person { padding: .6rem; }
	.clanveil-style-modern-cards .clanveil-person--couple .clanveil-person__pic { width: 40%; }
	.clanveil-style-modern-cards .genoguard-wp-profile { grid-template-columns: 1fr; }
	.clanveil-style-modern-cards .genoguard-wp-profile__photo { max-width: 14rem; }
	.clanveil-style-modern-cards .clanveil-access-band .clanveil-container { border-radius: 22px; }
	.clanveil-style-modern-cards .clanveil-grid--members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
}
