/* Turning Hearts site-wide design layer (2026 redesign).
   Carries the approved "Memorial Page Redesign" look (ivory, warm ink, gold,
   Cormorant Garamond + Source Sans 3) to every page without changing any page's
   markup or JavaScript. Every rule is scoped under body.thv2, which the layouts
   add unless SITE_DESIGN_V2=off, so switching the environment variable off
   returns every page to the previous look with no deploy beyond the env change. */

body.thv2 {
  --th-ivory: #FBF8F2;
  --th-page: #F6F1E8;
  --th-ink: #2B2622;
  --th-ink-2: #4A423B;
  --th-muted: #6B625A;
  --th-line: #EDE5D8;
  --th-sand: #F3EBDD;
  --th-gold: #8A6416;
  --th-gold-2: #B8862B;
  --th-gold-dark: #75540F;
  --th-gold-line: #D9C7A6;
  --th-navy: #1F2F4D;
  --th-danger: #A33A2A;
  --th-radius: 16px;
  --th-shadow: 0 1px 2px rgba(60, 40, 10, .04), 0 8px 24px rgba(60, 40, 10, .06);
  background: var(--th-page) !important;
  color: var(--th-ink-2);
}

/* Type. Icon fonts (Bootstrap Icons, Font Awesome) keep their own family. */
body.thv2,
body.thv2 :where(p, span, a, li, label, input, select, textarea, button, td, th, small, div, strong, em, legend, dt, dd):where(:not([class*="bi-"]):not([class^="fa"]):not([class*=" fa-"]):not(.fa):not(.mv2 *)) {
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.thv2 :where(h1, h2, h3, h4, .h1, .h2, .h3, .h4, .card-title, .modal-title):not(.mv2 *):not(.thv2-setup *) {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  color: var(--th-ink);
  font-weight: 600;
  letter-spacing: 0;
}
body.thv2 :where(h5, h6, .h5, .h6):not(.mv2 *) { font-family: 'Source Sans 3', system-ui, sans-serif !important; color: var(--th-ink); font-weight: 700; }
body.thv2 :where(p, li, td, label, small):where(:not(.mv2 *):not(.thv2-setup *)) { color: var(--th-ink-2); }
body.thv2 .text-muted, body.thv2 .text-gray, body.thv2 .text-secondary { color: var(--th-muted) !important; }
body.thv2 a:not(.mv2 *):not(.btn) { color: #7E5A12; }
body.thv2 a:not(.mv2 *):not(.btn):hover { color: #5C410B; }

/* Header and navigation */
body.thv2 #header-desktop, body.thv2 #header-mobile, body.thv2 .header-static, body.thv2 header .navbar, body.thv2 .navbar.bg-mode {
  background: #fff !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--th-line);
}
body.thv2 .navbar .nav-link, body.thv2 .desktop-menu-item { color: var(--th-muted) !important; }
body.thv2 .navbar .nav-link.active, body.thv2 .navbar .nav-link:hover, body.thv2 .desktop-menu-item.active, body.thv2 .desktop-menu-item:hover { color: var(--th-gold) !important; }
body.thv2 .navbar .nav-link.active svg path[stroke], body.thv2 .desktop-menu-item.active svg path[stroke] { stroke: var(--th-gold) !important; }
body.thv2 .navbar .nav-link.active svg path[fill]:not([fill="none"]), body.thv2 .desktop-menu-item.active svg path[fill]:not([fill="none"]) { fill: var(--th-gold) !important; }
body.thv2 .navbar .nav-link.active::after, body.thv2 .desktop-menu-item.active::after { background: var(--th-gold-2) !important; border-color: var(--th-gold-2) !important; }

/* Cards, panels and wells */
body.thv2 .card, body.thv2 .card-body.bg-white, body.thv2 .bg-white.rounded, body.thv2 .shadow-sm.bg-white {
  background: #fff;
  border: 1px solid var(--th-line) !important;
  border-radius: var(--th-radius) !important;
  box-shadow: var(--th-shadow) !important;
}
body.thv2 .card .card { box-shadow: none !important; }
body.thv2 .card-header, body.thv2 .card-footer { background: transparent !important; border-color: var(--th-line) !important; }
body.thv2 .bg-light, body.thv2 .bg-mode { background-color: var(--th-ivory) !important; }
body.thv2 .alert-warning, body.thv2 .welcome-back-card, body.thv2 .bg-warning-soft {
  background: var(--th-sand) !important; border: 1px solid var(--th-gold-line) !important; color: var(--th-ink) !important; border-radius: 14px !important;
}
body.thv2 hr, body.thv2 .border-bottom, body.thv2 .border-top { border-color: var(--th-line) !important; }

/* Buttons. Gold primary, warm outline secondary, navy kept for veteran-only. */
body.thv2 .btn { border-radius: 12px; font-weight: 600; letter-spacing: 0; }
body.thv2 .btn-gold, body.thv2 .btn-primary, body.thv2 .btn-dark-blue, body.thv2 .btn-navy, body.thv2 .btn-submit, body.thv2 .btn-register, body.thv2 .btn-change-password {
  background: var(--th-gold) !important; border-color: var(--th-gold) !important; color: #fff !important; box-shadow: none !important;
}
body.thv2 .btn-gold:hover, body.thv2 .btn-primary:hover, body.thv2 .btn-dark-blue:hover, body.thv2 .btn-navy:hover, body.thv2 .btn-submit:hover, body.thv2 .btn-register:hover, body.thv2 .btn-change-password:hover {
  background: var(--th-gold-dark) !important; border-color: var(--th-gold-dark) !important; color: #fff !important;
}
body.thv2 .btn-gold svg path[stroke], body.thv2 .btn-dark-blue svg path[stroke], body.thv2 .btn-primary svg path[stroke] { stroke: #fff; }
body.thv2 .btn-gold-100, body.thv2 .btn-outline-gold, body.thv2 .btn-light, body.thv2 .btn-secondary, body.thv2 .btn-secondary-soft, body.thv2 .btn-light-gray, body.thv2 .btn-gray, body.thv2 .btn-view, body.thv2 .btn-edit {
  background: #fff !important; border: 1px solid var(--th-gold-line) !important; color: var(--th-ink) !important; box-shadow: none !important;
}
body.thv2 .btn-gold-100:hover, body.thv2 .btn-outline-gold:hover, body.thv2 .btn-light:hover, body.thv2 .btn-secondary:hover, body.thv2 .btn-secondary-soft:hover, body.thv2 .btn-view:hover, body.thv2 .btn-edit:hover {
  background: var(--th-sand) !important; border-color: var(--th-gold-2) !important; color: var(--th-ink) !important;
}
body.thv2 .btn-danger, body.thv2 .btn-danger-soft { background: #fff !important; border: 1px solid #E5C2BB !important; color: var(--th-danger) !important; }
body.thv2 .btn-danger:hover, body.thv2 .btn-danger-soft:hover { background: #FBEDEA !important; }
body.thv2 .btn-link { color: #7E5A12 !important; }
body.thv2 .rounded-pill.btn { border-radius: 999px !important; }

/* Forms */
body.thv2 .form-control, body.thv2 .form-select, body.thv2 select.form-control, body.thv2 textarea.form-control {
  border: 1px solid var(--th-gold-line) !important; border-radius: 12px !important; background-color: #fff !important; color: var(--th-ink) !important; min-height: 48px; box-shadow: none !important;
}
body.thv2 .form-control:focus, body.thv2 .form-select:focus { border-color: var(--th-gold-2) !important; box-shadow: 0 0 0 4px rgba(184, 134, 43, .18) !important; }
body.thv2 .form-control::placeholder { color: #9A8F84; }
body.thv2 .form-check-input:checked, body.thv2 input[type="checkbox"]:checked, body.thv2 input[type="radio"]:checked { accent-color: var(--th-gold); }
body.thv2 .form-check-input:checked { background-color: var(--th-gold) !important; border-color: var(--th-gold) !important; }
body.thv2 label:not(.mv2 *):not(.thv2-setup *), body.thv2 .form-label { color: var(--th-ink); font-weight: 600; }
body.thv2 .input-group-text { background: var(--th-ivory) !important; border-color: var(--th-gold-line) !important; border-radius: 12px; }

/* Tabs (memorial settings, profile, moderation) */
body.thv2 .nav-tabs, body.thv2 .nav-bottom-line { border-bottom: 1px solid var(--th-line) !important; }
body.thv2 .nav-tabs .nav-link, body.thv2 .nav-bottom-line .nav-link, body.thv2 .tab_label_profile {
  color: var(--th-muted) !important; font-weight: 600; border: 0 !important; background: transparent !important;
}
body.thv2 .nav-tabs .nav-link.active, body.thv2 .nav-bottom-line .nav-link.active, body.thv2 .tab_label_profile.active {
  color: var(--th-ink) !important; border-bottom: 3px solid var(--th-gold-2) !important; background: transparent !important;
}
body.thv2 .nav-tabs .nav-link:hover, body.thv2 .nav-bottom-line .nav-link:hover { color: var(--th-gold) !important; }
body.thv2 .nav-pills .nav-link.active { background: var(--th-gold) !important; color: #fff !important; }

/* Modals, dropdowns, toasts */
body.thv2 .modal-content { border: 1px solid var(--th-line) !important; border-radius: 20px !important; box-shadow: 0 24px 60px rgba(40, 25, 5, .18) !important; }
body.thv2 .modal-header, body.thv2 .modal-footer { border-color: var(--th-line) !important; }
body.thv2 .dropdown-menu { border: 1px solid var(--th-line) !important; border-radius: 14px !important; box-shadow: var(--th-shadow) !important; }
body.thv2 .dropdown-item:hover, body.thv2 .dropdown-item:focus { background: var(--th-sand) !important; color: var(--th-ink) !important; }

/* Tables (moderation queue, admins) */
body.thv2 .table { color: var(--th-ink-2); }
body.thv2 .table thead th { color: var(--th-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--th-line) !important; }
body.thv2 .table td { border-color: var(--th-line) !important; }

/* Badges and small accents */
body.thv2 .badge.bg-primary, body.thv2 .badge.bg-gold, body.thv2 .bg-gold { background: var(--th-gold) !important; color: #fff !important; }
body.thv2 .text-gold, body.thv2 .golden-color, body.thv2 .text-primary { color: var(--th-gold) !important; }

/* Avatars: keep the round look, add the warm ring */
body.thv2 .avatar-img, body.thv2 .user_image_profile, body.thv2 .image_profile_avatar { box-shadow: 0 0 0 4px #fff, 0 6px 18px rgba(60, 40, 10, .14); }

/* Footer */
body.thv2 footer, body.thv2 .footer { background: var(--th-ivory) !important; border-top: 1px solid var(--th-line); color: var(--th-muted); }

/* ------- Guided memorial setup (/settings/:apikey/setup) ------- */
.thv2-setup { max-width: 720px; margin: 24px auto 64px; padding: 0 16px; color: #2B2622; font-family: 'Source Sans 3', system-ui, sans-serif; }
.thv2-setup-head { text-align: center; margin-bottom: 20px; }
.thv2-eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; color: #6B625A; }
.thv2-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 40px; line-height: 1.1; font-weight: 600; margin: 6px 0 8px; color: #2B2622; }
.thv2-sub { color: #4A423B; margin: 0 auto 16px; max-width: 560px; }
.thv2-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0; }
.thv2-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #6B625A; }
.thv2-steps li span { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #D9C7A6; color: #6B625A; }
.thv2-steps li.is-current { color: #2B2622; }
.thv2-steps li.is-current span { background: #8A6416; border-color: #8A6416; color: #fff; }
.thv2-steps li.is-done span { background: #F3EBDD; border-color: #B8862B; color: #8A6416; }
.thv2-card { background: #fff; border: 1px solid #EDE5D8; border-radius: 16px; padding: 22px 20px; box-shadow: 0 1px 2px rgba(60,40,10,.04), 0 8px 24px rgba(60,40,10,.06); }
.thv2-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 600; margin: 0 0 14px; color: #2B2622; }
.thv2-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 600; color: #2B2622; font-size: 15px; border: 0; padding: 0; }
.thv2-field legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.thv2-field input[type="text"], .thv2-field input[type="date"], .thv2-field input[type="url"], .thv2-field select, .thv2-field textarea {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid #D9C7A6; background: #fff; padding: 10px 12px; font: 400 16px 'Source Sans 3', system-ui, sans-serif; color: #2B2622;
}
.thv2-field textarea { min-height: 96px; line-height: 1.5; }
.thv2-field input:focus, .thv2-field select:focus, .thv2-field textarea:focus { outline: none; border-color: #B8862B; box-shadow: 0 0 0 4px rgba(184,134,43,.18); }
.thv2-field input[type="file"] { font: 400 15px 'Source Sans 3', sans-serif; }
.thv2-hint { display: block; font-weight: 400; font-size: 14px; color: #6B625A; }
.thv2-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.thv2-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.thv2-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.thv2-check, .thv2-radio { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-weight: 400; font-size: 16px; color: #2B2622; }
.thv2-check input, .thv2-radio input { width: 20px; height: 20px; margin-top: 2px; accent-color: #8A6416; flex: 0 0 auto; }
.thv2-setup-nav { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.thv2-spacer { flex: 1 1 auto; }
.thv2-foot { margin-top: 12px; font-size: 14px; color: #6B625A; text-align: center; }
@media (max-width: 600px) {
  .thv2-title { font-size: 32px; }
  .thv2-grid-2, .thv2-grid-3 { grid-template-columns: 1fr; }
  .thv2-steps li { font-size: 11px; }
  .thv2-setup-nav .thv2-btn { flex: 1 1 auto; }
  .thv2-spacer { display: none; }
}

/* Page wrappers that paint their own background */
body.thv2 > main, body.thv2 main.main-container, body.thv2 main:not(.mv2):not(.thv2-setup) { background: transparent !important; }
/* Remaining legacy button colors */
body.thv2 .btn-dark-purple, body.thv2 .btn-purple {
  background: var(--th-gold) !important; border: 1px solid var(--th-gold) !important; color: #fff !important; border-radius: 12px; box-shadow: none !important;
}
body.thv2 .btn-dark-purple:hover, body.thv2 .btn-purple:hover { background: var(--th-gold-dark) !important; color: #fff !important; }
body.thv2 .btn-dark-purple *, body.thv2 .btn-purple *, body.thv2 .btn-gold *, body.thv2 .btn-dark-blue *, body.thv2 .btn-primary * { color: #fff !important; }
/* Header icons use .stroke-color / .fill-color helpers */
body.thv2 .nav-link.active.stroke-color path, body.thv2 .nav-link.stroke-color:hover path { stroke: var(--th-gold) !important; }
body.thv2 .nav-link.active.fill-color path, body.thv2 .nav-link.fill-color:hover path { fill: var(--th-gold) !important; }
body.thv2 .nav-link.active.stroke-color, body.thv2 .nav-link.active.fill-color { border-bottom-color: var(--th-gold-2) !important; }

/* Re-tint the legacy theme variables so every rule that uses them follows the new palette */
body.thv2 {
  --Gold-100: #8A6416; --gold-100: #8A6416; --gold-20: rgba(184, 134, 43, .18); --gold-40: rgba(184, 134, 43, .35);
  --black-100: #2B2622; --black-80: rgba(43, 38, 34, .80); --white-100: #FBF8F2; --grey-3-color: #6B625A;
  --dark-gray-100: #4A423B; --dark-gray-80: rgba(74, 66, 59, .80); --dark-gray-60: rgba(74, 66, 59, .60);
  --bs-primary: #8A6416; --bs-primary-rgb: 138, 100, 22; --bs-link-color: #7E5A12; --bs-link-hover-color: #5C410B;
  --bs-light: #FBF8F2; --bs-light-rgb: 251, 248, 242; --bs-body-bg: #F6F1E8; --bs-body-color: #4A423B;
}

/* Discover feed */
body.thv2 .discover-feed { background: #fff !important; border: 1px solid var(--th-line) !important; border-radius: var(--th-radius) !important; box-shadow: var(--th-shadow) !important; overflow: hidden; }
body.thv2 .discover-feed .card-header, body.thv2 .discover-header { background: transparent !important; border: 0 !important; }
body.thv2 .discover-feed a { color: var(--th-gold) !important; text-decoration: none; font-weight: 600; }
body.thv2 .discover-feed a:hover { text-decoration: underline; }
body.thv2 .discover-feed blockquote, body.thv2 .discover-body blockquote { border-left: 3px solid var(--th-gold-line) !important; background: var(--th-ivory); border-radius: 0 10px 10px 0; padding: 8px 12px; }
body.thv2 .post-divider { border-color: var(--th-line) !important; background: var(--th-line) !important; }
body.thv2 .btn-discover-section, body.thv2 .discover-post-action { color: var(--th-ink-2) !important; border-radius: 10px; }
body.thv2 .btn-discover-section:hover, body.thv2 .discover-post-action:hover { background: var(--th-sand) !important; color: var(--th-ink) !important; }
body.thv2 input[type="search"], body.thv2 .search-input, body.thv2 #search-input { background: var(--th-ivory) !important; border: 1px solid var(--th-line) !important; border-radius: 999px !important; }

/* Buttons for new pages (guided setup, Updates). Self-contained, no page variables needed. */
.thv2-btn { height: 48px; border-radius: 12px; border: 1px solid #D9C7A6; background: #fff; color: #2B2622 !important; font: 600 15px 'Source Sans 3', system-ui, sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; text-decoration: none !important; cursor: pointer; }
.thv2-btn:hover { border-color: #B8862B; background: #F3EBDD; color: #2B2622 !important; }
.thv2-btn.is-primary { background: #8A6416; border-color: #8A6416; color: #fff !important; }
.thv2-btn.is-primary:hover { background: #75540F; border-color: #75540F; color: #fff !important; }
.thv2-btn.is-light { background: transparent; border-color: transparent; color: #4A423B !important; }
.thv2-btn.is-light:hover { background: #F3EBDD; }
.thv2-btn[disabled] { opacity: .6; cursor: default; }

/* ------- Updates page (What's new) ------- */
.thv2-updates { max-width: 960px; margin: 24px auto 64px; padding: 0 16px; font-family: 'Source Sans 3', system-ui, sans-serif; }
.thv2-updates-hero { text-align: center; margin: 8px 0 28px; }
.thv2-updates-hero .thv2-title { font-size: 46px; }
.thv2-updates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.thv2-update-card { background: #fff; border: 1px solid #EDE5D8; border-radius: 16px; padding: 20px; box-shadow: 0 1px 2px rgba(60,40,10,.04), 0 8px 24px rgba(60,40,10,.06); }
.thv2-update-icon { width: 42px; height: 42px; border-radius: 12px; background: #F3EBDD; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.thv2-update-title { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 25px !important; font-weight: 600; color: #2B2622 !important; margin: 0 0 6px; line-height: 1.15; }
.thv2-update-body { margin: 0; color: #4A423B !important; font-size: 16px; line-height: 1.55; }
.thv2-updates-cta { display: flex; gap: 10px; justify-content: center; margin: 24px 0 8px; flex-wrap: wrap; }
.thv2-updates-archive { margin-top: 28px; background: #FBF8F2; border: 1px solid #EDE5D8; border-radius: 16px; padding: 14px 18px; }
.thv2-updates-archive summary { cursor: pointer; font-weight: 700; color: #2B2622; }
.thv2-archive-month h3 { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 22px !important; margin: 16px 0 4px; }
.thv2-archive-month ul { margin: 0 0 6px 18px; padding: 0; color: #4A423B; }
.thv2-archive-sub { font-weight: 700; margin-top: 6px; }
body.thv2 #patch-note-container { max-width: none !important; }
@media (max-width: 700px) {
  .thv2-updates-grid { grid-template-columns: 1fr; }
  .thv2-updates-hero .thv2-title { font-size: 34px; }
}

/* Memorial monogram (no photo yet) and default covers */
.thv2-mono { display: flex !important; align-items: center; justify-content: center; background: #F3EBDD !important; color: #8A6416; border-radius: 50%;
  container-type: inline-size; box-shadow: 0 0 0 4px #fff, 0 6px 18px rgba(60, 40, 10, .14); overflow: hidden; }
.thv2-mono span { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 38cqw; line-height: 1; letter-spacing: 1px; color: #8A6416; }
img.thv2-default-cover { width: 100%; height: 100%; max-height: 450px; object-fit: cover; object-position: 50% 45%; display: block; }

/* Memorial edit page (settings) */
body.thv2 .card_login_shadow { box-shadow: none !important; }
body.thv2 .top-card, body.thv2 .profile-settings-outer-container { border-radius: 0 0 var(--th-radius) var(--th-radius); }
body.thv2 .cover-photo-container { border-radius: var(--th-radius) var(--th-radius) 0 0 !important; background: var(--th-sand); }
body.thv2 .cover-photo-button { background: rgba(255,255,255,.92) !important; border: 1px solid var(--th-line) !important; color: var(--th-ink) !important; border-radius: 999px !important; }
body.thv2 .edit_image_account, body.thv2 .settings_update_photo, body.thv2 .edit_account-audio { background: var(--th-gold) !important; border-color: #fff !important; color: #fff !important; }
body.thv2 .medallion-tab-public-view .nav-link { font-size: 16px; padding: 12px 14px; }

/* Gold pill buttons keep white text on their links */
body.thv2 .profile-pill__active, body.thv2 .profile-pill__active a, body.thv2 .profile-pill__active i { color: #fff !important; }
body.thv2 .profile-pill__active { background: var(--th-gold) !important; border-color: var(--th-gold) !important; }

.thv2-about-guided { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; }

/* Sign in, sign up, forgot and reset password (auth layout) */
body.thv2.body_layout_login {
  background: radial-gradient(1200px 600px at 50% -10%, #FFFFFF 0%, #FBF8F2 45%, #F3EBDD 100%) fixed !important;
}
body.thv2 .card_auth_shadow { border: 1px solid var(--th-line) !important; border-radius: 22px !important; box-shadow: 0 2px 4px rgba(60,40,10,.04), 0 24px 60px rgba(60,40,10,.10) !important; }
body.thv2 .card_auth_shadow h2, body.thv2 .card_auth_shadow h1, body.thv2 .card_auth_shadow h4 { font-size: 36px !important; line-height: 1.1; color: var(--th-ink) !important; }
body.thv2 .card_auth_shadow .text-gray { color: var(--th-ink) !important; }
body.thv2 .show_password_button { background: var(--th-ivory) !important; border: 1px solid var(--th-gold-line) !important; border-left: 0 !important; border-radius: 0 12px 12px 0 !important; color: var(--th-ink-2) !important; }
body.thv2 .input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
body.thv2 .text-separator span, body.thv2 .span-light-gray { color: var(--th-muted) !important; background: transparent; }
body.thv2 .gray_link { color: var(--th-muted) !important; }
body.thv2 .gray_link:hover { color: var(--th-gold) !important; }

/* Discover: search pill and post author names */
body.thv2 .bar-search { background: #fff !important; border: 1px solid var(--th-gold-line) !important; border-radius: 999px !important; padding: 4px 14px !important; }
body.thv2 .bar-search:hover { border-color: var(--th-gold-2) !important; }
body.thv2 .bar-search .input-group-text, body.thv2 .bar-search #searchIcon { background: transparent !important; border: 0 !important; color: var(--th-gold) !important; padding-left: 0; }
body.thv2 .bar-search p, body.thv2 .bar-search input::placeholder { color: var(--th-muted) !important; font-family: 'Source Sans 3', system-ui, sans-serif !important; font-size: 15px !important; }
body.thv2 .discover-post-action > span:first-child, body.thv2 .discover-comment-container .commnent-user-name { color: var(--th-ink) !important; font-weight: 700; }

/* Profile: welcome card and name */
.thv2-welcome-card { background: #FBF8F2; border: 1px solid #D9C7A6; border-radius: 16px; padding: 18px 20px; font-family: 'Source Sans 3', system-ui, sans-serif; }
body.thv2 .thv2-welcome-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 600; color: #2B2622; line-height: 1.1; margin: 2px 0 6px; }
.thv2-welcome-card p { margin: 0 0 14px; color: #4A423B; font-size: 15px; }
.thv2-welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.thv2-welcome-actions .thv2-btn { height: 42px; padding: 0 14px; font-size: 14px; }
body.thv2 h1.user-name { font-size: 40px !important; line-height: 1.1; margin-bottom: 8px; }
body.thv2 .tab_label_profile { font-size: 16px !important; }
body.thv2 .thv2-section-head { margin: 22px 0 12px; }
body.thv2 .thv2-section-head h2 { font-size: 30px !important; margin: 0 0 2px; }
body.thv2 .thv2-section-head p { margin: 0; color: var(--th-muted) !important; }
.thv2-empty { text-align: center; background: #FBF8F2; border: 1px dashed #D9C7A6; border-radius: 16px; padding: 28px 20px; font-family: 'Source Sans 3', system-ui, sans-serif; }
body.thv2 .thv2-empty-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 600; color: #2B2622; margin-bottom: 4px; }
.thv2-empty p { color: #4A423B; margin: 0 auto 14px; max-width: 460px; }

/* Forgot and reset password: the legacy id rules win over classes, so match them by id */
body.thv2 #button_auth_submit, body.thv2 #button_forgot_password_submit, body.thv2 #change_password_button { background: var(--th-gold) !important; border: 1px solid var(--th-gold) !important; color: #fff !important; border-radius: 12px !important; min-height: 48px; font-weight: 600; }
body.thv2 #button_auth_submit:hover, body.thv2 #button_forgot_password_submit:hover, body.thv2 #change_password_button:hover { background: var(--th-gold-dark) !important; border-color: var(--th-gold-dark) !important; }
body.thv2 #submit_button { padding-left: 0 !important; padding-right: 0 !important; }
body.thv2 #container_go_back_button { gap: 4px; margin-bottom: 8px; }
body.thv2 #go_back_label_fp { font-size: 16px !important; font-weight: 600; color: var(--th-muted) !important; text-decoration: none; }
body.thv2 #go_back_label_fp:hover { color: var(--th-gold) !important; }
body.thv2 #back_icon { font-size: 14px !important; color: var(--th-muted) !important; }

/* Landing page (/welcome) */
body.thv2 .landing-page-container, body.thv2 .welcome-container { background: var(--th-ivory) !important; }
body.thv2 .welcome-container .title .text-yellow { font-family: 'Cormorant Garamond', Georgia, serif !important; font-style: italic; font-weight: 600; color: var(--th-gold) !important; }
body.thv2 .welcome-container .sub-title p { color: var(--th-ink-2) !important; font-size: 20px; line-height: 1.5; max-width: 460px; }
body.thv2 .welcome-container .thv2-btn { min-width: 190px; }
body.thv2 .thv2-btn { font-family: 'Source Sans 3', system-ui, sans-serif !important; }
body.thv2 .welcome-container img[src*='landing-page-'] { mix-blend-mode: multiply; }

/* Empty sections on the memorial edit page (timeline, media, bio) */
body.thv2 .not-found-section { background: var(--th-ivory); border: 1px dashed var(--th-gold-line); border-radius: var(--th-radius); padding: 28px 16px; margin: 8px 0; }
body.thv2 .not-found-section img { opacity: .55; filter: sepia(.6) saturate(1.4) hue-rotate(-10deg); }
body.thv2 .not-found-section h5 { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 28px !important; font-weight: 600; margin: 10px 0 6px; }
body.thv2 .not-found-section div { color: var(--th-ink-2); font-size: 16px; line-height: 1.55; }

/* Moderation settings: option rows as cards, the chosen one highlighted */
body.thv2 .moderation-settings-switch { background: #fff; border: 1px solid var(--th-line) !important; border-radius: 14px !important; box-shadow: none !important; padding-top: 12px !important; padding-bottom: 12px !important; transition: border-color .15s, background .15s; }
body.thv2 .moderation-settings-switch:has(input:checked) { border-color: var(--th-gold-2) !important; background: var(--th-ivory); }
body.thv2 #moderation-settings > form > .p-2 > p:first-child { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 24px; font-weight: 600; color: var(--th-ink); margin-bottom: 8px; }

/* My account (profile edit) */
body.thv2 #edit_user .border-bottom { border-color: var(--th-line) !important; margin-top: 18px; }
body.thv2 #edit_user .border-bottom > p.text-black { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 24px; font-weight: 600; color: var(--th-ink) !important; margin-bottom: 6px; }
body.thv2 .thv2-page-title { font-size: 30px !important; }

/* Privacy page */
body.thv2 div.main:has(> .privacy-policy-container) { background: transparent !important; }
body.thv2 .privacy-policy-container p { max-width: 70ch; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Timeline tab: history on the memorial, with on/off switches */
.thv2-world { background: #FBF8F2; border: 1px solid #EDE5D8; border-radius: 16px; padding: 18px 20px; margin: 0 12px 20px; font-family: 'Source Sans 3', system-ui, sans-serif; }
body.thv2 .thv2-world-title { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 26px !important; font-weight: 600; color: #2B2622; margin: 0 0 4px; }
body.thv2 .thv2-world-sub, body.thv2 .thv2-world-empty { color: #4A423B !important; margin: 0 0 12px; max-width: 70ch; }
.thv2-world-master { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #2B2622; margin: 4px 0 10px; cursor: pointer; }
.thv2-world-master input { width: 20px; height: 20px; accent-color: #8A6416; }
.thv2-world-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #EDE5D8; }
.thv2-world-list.is-off { opacity: .45; pointer-events: none; }
.thv2-world-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid #EDE5D8; cursor: pointer; font-weight: 400 !important; margin: 0; }
body.thv2 .thv2-world-year { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; color: #8A6416; }
body.thv2 .thv2-world-text { color: #2B2622; font-size: 16px; line-height: 1.45; }
.thv2-switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.thv2-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.thv2-switch-ui { position: absolute; inset: 0; border-radius: 999px; background: #D9C7A6; transition: background .15s; }
.thv2-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.thv2-switch input:checked + .thv2-switch-ui { background: #8A6416; }
.thv2-switch input:checked + .thv2-switch-ui::after { transform: translateX(18px); }
.thv2-switch input:focus-visible + .thv2-switch-ui { box-shadow: 0 0 0 4px rgba(184,134,43,.3); }
.thv2-world-actions { display: flex; justify-content: flex-end; margin-top: 14px; }

/* Bio tab (2026): the setup steps as clickable sections */
.thv2-bio { margin-top: 8px; }
.thv2-steps.is-nav { grid-template-columns: repeat(5, 1fr); }
.thv2-steps.is-nav li { padding: 0; }
.thv2-steps.is-nav button { all: unset; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font: 600 13px 'Source Sans 3', system-ui, sans-serif; color: #6B625A; padding: 6px 4px; border-radius: 10px; width: 100%; box-sizing: border-box; text-align: center; }
.thv2-steps.is-nav button:hover { background: #F3EBDD; color: #2B2622; }
.thv2-steps.is-nav button:focus-visible { outline: 3px solid rgba(184,134,43,.4); }
.thv2-steps.is-nav button span { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #D9C7A6; color: #6B625A; }
.thv2-steps.is-nav li.has-content button span { background: #F3EBDD; border-color: #B8862B; color: #8A6416; }
.thv2-steps.is-nav li.is-current button { color: #2B2622; }
.thv2-steps.is-nav li.is-current button span { background: #8A6416; border-color: #8A6416; color: #fff; }
.thv2-bio .thv2-setup-nav { position: sticky; bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff 30%); padding: 14px 0 8px; z-index: 2; }
.thv2-bio-links .card-body { padding: 0 !important; }
@media (max-width: 600px) { .thv2-steps.is-nav button { font-size: 11px; } }

/* Tab buttons (approved Style B): memorial edit tabs and profile tabs */
body.thv2 .container-medallion-tab-public-view, body.thv2 .container-menu-medallion-list { display: flex; justify-content: center; border: 0 !important; }
body.thv2 .nav-bottom-divider.container-menu-medallion-list::before, body.thv2 .nav-bottom-divider.container-menu-medallion-list::after { display: none !important; }
body.thv2 ul.thv2-tabs { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 10px; border: 0 !important; padding: 0; margin: 0 auto; }
body.thv2 ul.thv2-tabs .nav-item { margin: 0 !important; }
body.thv2 ul.thv2-tabs .nav-link { display: inline-flex !important; align-items: center; gap: 8px; border: 1px solid var(--th-line) !important; border-radius: 999px !important;
  padding: 10px 18px !important; color: var(--th-ink-2) !important; background: #fff !important; font-weight: 600; font-size: 16px !important; line-height: 1.2; transition: background .15s, border-color .15s, box-shadow .15s; margin: 0 !important; }
body.thv2 ul.thv2-tabs .nav-link .thv2-tab-icon { color: var(--th-gold); flex: 0 0 auto; }
body.thv2 ul.thv2-tabs .nav-link:hover:not(.active) { border-color: var(--th-gold-2) !important; background: var(--th-ivory) !important; color: var(--th-ink) !important; }
body.thv2 ul.thv2-tabs .nav-link.active { background: var(--th-gold) !important; border-color: var(--th-gold) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(138, 100, 22, .25); border-bottom: 1px solid var(--th-gold) !important; }
body.thv2 ul.thv2-tabs .nav-link.active .thv2-tab-icon, body.thv2 ul.thv2-tabs .nav-link.active span { color: #fff !important; }
body.thv2 ul.thv2-tabs .nav-link::after, body.thv2 ul.thv2-tabs .nav-link::before { display: none !important; }
body.thv2 ul.thv2-tabs .nav-link:focus-visible { outline: 3px solid rgba(184, 134, 43, .45); outline-offset: 2px; }
@media (max-width: 600px) {
  body.thv2 ul.thv2-tabs { gap: 6px; }
  body.thv2 ul.thv2-tabs .nav-link { padding: 8px 12px !important; font-size: 14px !important; gap: 6px; }
}
#thv2-world-lists.is-off { opacity: .45; pointer-events: none; }
.thv2-world-master .thv2-switch { display: inline-block; }
body.thv2 .thv2-world-note { background: #fff; border: 1px solid #D9C7A6; border-radius: 12px; padding: 10px 14px; color: #4A423B !important; margin: 0 0 12px; }
.thv2-world-more { margin-top: 14px; border-top: 1px solid #EDE5D8; padding-top: 12px; }
.thv2-world-more summary { cursor: pointer; font-weight: 700; color: #8A6416; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #D9C7A6; border-radius: 999px; background: #fff; }
.thv2-world-more summary::-webkit-details-marker { display: none; }
.thv2-world-more summary::before { content: '+'; font-size: 18px; line-height: 1; }
.thv2-world-more[open] summary::before { content: '\2212'; }
.thv2-world-count { background: #F3EBDD; color: #8A6416; border-radius: 999px; padding: 1px 8px; font-size: 13px; }
body.thv2 .thv2-world-decade { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; color: #2B2622; margin: 16px 0 4px; }
.thv2-world-actions { gap: 10px; flex-wrap: wrap; }

/* Step pages: big Next, quiet Back, save status */
.thv2-btn-lg { height: 52px; padding: 0 26px; font-size: 16px !important; box-shadow: 0 6px 16px rgba(138, 100, 22, .22); }
.thv2-link-btn { all: unset; cursor: pointer; font: 600 15px 'Source Sans 3', system-ui, sans-serif; color: #6B625A; padding: 8px 6px; border-radius: 8px; }
.thv2-link-btn:hover { color: #8A6416; text-decoration: underline; }
.thv2-link-btn:focus-visible { outline: 3px solid rgba(184, 134, 43, .4); }
.thv2-save-state { font: 600 14px 'Source Sans 3', system-ui, sans-serif; color: #2F6B3F; }
.thv2-bio-nav { align-items: center; }
@media (max-width: 600px) { .thv2-bio-nav .thv2-btn-lg { flex: 1 1 100%; order: 5; } .thv2-bio-nav .thv2-spacer { display: none; } }

/* Grave location and map picker */
.thv2-location .thv2-row { margin: 4px 0 6px; }
.thv2-location-status { font-weight: 600; color: #6B625A; font-size: 15px; }
.thv2-location-status[data-set="1"] { color: #2F6B3F; }
.thv2-location-status[data-set="1"]::before { content: '\2713  '; }
.thv2-map-dialog { position: fixed; inset: 0; margin: auto; z-index: 10000; height: fit-content; width: min(960px, 96vw); max-height: 92vh; padding: 0; border: 1px solid #EDE5D8; border-radius: 18px; box-shadow: 0 24px 60px rgba(40, 25, 5, .25); font-family: 'Source Sans 3', system-ui, sans-serif; overflow: hidden; }
.thv2-map-dialog::backdrop { background: rgba(43, 38, 34, .55); }
.thv2-map-dialog[open] { display: flex; flex-direction: column; box-shadow: 0 0 0 100vmax rgba(43, 38, 34, .55), 0 24px 60px rgba(40, 25, 5, .25); }
.thv2-map-head { padding: 16px 18px 10px; }
body.thv2 .thv2-map-title { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 28px !important; margin: 0 0 2px; color: #2B2622; }
.thv2-map-search { width: 100%; min-height: 46px; border: 1px solid #D9C7A6; border-radius: 12px; padding: 0 14px; font: 400 16px 'Source Sans 3', sans-serif; margin-top: 8px; }
.thv2-map-search:focus { outline: none; border-color: #B8862B; box-shadow: 0 0 0 4px rgba(184,134,43,.18); }
.thv2-map { height: min(60vh, 520px); background: #F3EBDD; }
.thv2-map-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #EDE5D8; flex-wrap: wrap; }
.pac-container { z-index: 100000 !important; border-radius: 12px; font-family: 'Source Sans 3', system-ui, sans-serif; }

/* Add photos, videos or audio window */
body.thv2 #add-media-modal .modal-title { font-size: 28px !important; }
body.thv2 #add-media-modal .border-bottom { border-color: var(--th-line) !important; }
body.thv2 #add-media-modal .select-media-container { border: 1px solid var(--th-gold-line); border-radius: 12px; background: #fff; padding: 10px 14px !important; cursor: pointer; transition: border-color .15s, background .15s; }
body.thv2 #add-media-modal .select-media-container:hover { border-color: var(--th-gold-2); background: var(--th-ivory); }
body.thv2 #add-media-modal .select-media-container:has(input:checked) { border-color: var(--th-gold); background: var(--th-sand); box-shadow: 0 0 0 1px var(--th-gold) inset; }
body.thv2 #add-media-modal .select-media-container input { accent-color: var(--th-gold); width: 18px; height: 18px; }
body.thv2 #add-media-modal .select-media-container label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
body.thv2 #add-media-modal .select-media-container .thv2-tab-icon { color: var(--th-gold); }
body.thv2 #add-media-modal .d-flex.gap-2.mb-2 { flex-wrap: wrap; gap: 8px !important; }
body.thv2 .drag-and-drop, body.thv2 #drop-area { border: 2px dashed var(--th-gold-line) !important; border-radius: 14px !important; background: var(--th-ivory) !important; padding: 22px 16px !important; text-align: center; transition: border-color .15s, background .15s; }
body.thv2 .drag-and-drop:hover, body.thv2 #drop-area:hover { border-color: var(--th-gold-2) !important; background: var(--th-sand) !important; }
body.thv2 #drop-area img { filter: invert(36%) sepia(62%) saturate(720%) hue-rotate(12deg) brightness(92%); }
body.thv2 #add-media-modal .modal-dialog { max-width: 580px; }
body.thv2 #drop-area p { color: var(--th-ink-2) !important; font-weight: 600; margin: 8px 0 0; }
body.thv2 #btnAddImage, body.thv2 #btnAddVideo, body.thv2 #btnAddAudio, body.thv2 #btnMediaEditImage, body.thv2 #btnMediaEditVideo,
body.thv2 .modal .btn-gold-100.w-100 { background: var(--th-gold) !important; border-color: var(--th-gold) !important; color: #fff !important; min-height: 50px; border-radius: 12px !important; }
body.thv2 #btnAddImage:hover, body.thv2 #btnAddVideo:hover, body.thv2 #btnAddAudio:hover, body.thv2 .modal .btn-gold-100.w-100:hover { background: var(--th-gold-dark) !important; }
body.thv2 #btnAddImage *, body.thv2 #btnAddVideo *, body.thv2 #btnAddAudio *, body.thv2 .modal .btn-gold-100.w-100 * { color: #fff !important; }
body.thv2 .add-file-button { background: var(--th-gold) !important; border: 1px solid var(--th-gold) !important; color: #fff !important; border-radius: 999px !important; padding: 10px 20px !important; font-weight: 600; width: auto !important; }
body.thv2 .add-file-button:hover { background: var(--th-gold-dark) !important; }
body.thv2 .add-file-button i { color: #fff !important; }
/* Tab links jump to the tabs; keep them clear of the fixed header */
#memorial-tabs, #profile-tabs { scroll-margin-top: 96px; }

/* Location fields: one-line labels so boxes in a row line up; the region
   control that is not in use is hidden. */
.thv2-label { display: block; font-weight: 600; }
.thv2-opt { font-weight: 400; color: #6B625A; }
.thv2-field [data-region-for][hidden] { display: none !important; }
.thv2-field select, .thv2-field input[type="text"] { box-sizing: border-box; }
.thv2-field .thv2-must-msg { font-weight: 600; font-size: 14px; color: #A3322A; }

/* Edit memorial > Timeline: preview of the timeline as visitors read it */
.thv2-tlp { background: #fff; border: 1px solid #EDE5D8; border-radius: 16px; padding: 16px 18px; margin: 0 0 18px; }
.thv2-tlp summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; list-style: none; }
.thv2-tlp summary::-webkit-details-marker { display: none; }
.thv2-tlp-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 600; color: #2B2622; }
.thv2-tlp-title::after { content: ' \25BE'; font-size: 16px; color: #8A6416; }
.thv2-tlp:not([open]) .thv2-tlp-title::after { content: ' \25B8'; }
.thv2-tlp-key { font-size: 14px; color: #6B625A; display: inline-flex; align-items: center; gap: 6px; }
.thv2-tlp-key .thv2-tlp-dot { margin-left: 8px; }
.thv2-tlp-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 420px; overflow-y: auto; }
.thv2-tlp-list li { display: grid; grid-template-columns: 52px 14px 1fr; gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px solid #F3EDE3; }
.thv2-tlp-list li:last-child { border-bottom: 0; }
.thv2-tlp-year { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 19px; color: #8A6416; text-align: right; }
.thv2-tlp-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #C9B48D; background: #fff; display: inline-block; margin-top: 6px; }
.thv2-tlp-dot.is-life { background: #B8862B; border-color: #B8862B; }
.thv2-tlp-text { font-size: 15px; line-height: 1.45; color: #4A423B; }
.thv2-tlp-list li.is-life .thv2-tlp-text { color: #2B2622; font-weight: 600; }

/* Photo uploader (Photos & videos > Add) */
.thv2-photos-intro { margin: 0 0 10px; color: #4A423B; }
.thv2-photos-drop { cursor: pointer; }
.thv2-photos-drop.is-over { border-color: #B8862B; background: #FBF6EC; }
.thv2-photos-msg { margin: 8px 0; font-size: 14px; color: #4A423B; }
.thv2-photos-msg.is-bad { color: #A3322A; font-weight: 600; }
.thv2-photos-all { margin-top: 6px; }
.thv2-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.thv2-photo-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #EDE5D8; border-radius: 12px; padding: 8px; }
.thv2-photo-card.is-done { opacity: .5; }
.thv2-photo-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #F3EDE3; }
.thv2-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thv2-photo-remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(43,38,34,.75); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.thv2-photo-card input, .thv2-photo-card textarea { width: 100%; box-sizing: border-box; border: 1px solid #D9C7A6; border-radius: 8px; padding: 6px 8px; font: 400 14px 'Source Sans 3', system-ui, sans-serif; color: #2B2622; resize: vertical; }
.thv2-photos-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.thv2-photos-progress { height: 8px; background: #F3EDE3; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.thv2-photos-progress > div { height: 100%; width: 0; background: #B8862B; transition: width .3s; }
.thv2-photos-progress.is-busy > div { background-image: linear-gradient(90deg, #B8862B 0%, #D9B86A 50%, #B8862B 100%); background-size: 200% 100%; animation: thv2-shimmer 1.2s linear infinite; }
@keyframes thv2-shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
.thv2-spin { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: thv2-rot .8s linear infinite; }
@keyframes thv2-rot { to { transform: rotate(360deg); } }
.thv2-photo-card.is-ready:not(.is-done) .thv2-photo-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.25); }
#thv2-photos-go:disabled { opacity: 1; cursor: progress; }

/* Photos & videos grid: select boxes, bulk delete, caption button */
.thv2-media-tools { margin: 0 0 10px; text-align: left; }
.thv2-media-tools .thv2-hint { margin: 0 0 8px; }
.thv2-bulkbar { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 10px; background: #2B2622; color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(43,38,34,.25); }
.thv2-bulkbar[hidden] { display: none; }
.thv2-bulk-count { font-weight: 600; font-size: 15px; }
.thv2-bulkbar .thv2-link-btn { color: #F3EBDD; }
.thv2-btn.thv2-btn-danger { background: #A3322A; border-color: #A3322A; color: #fff !important; height: 42px; padding: 0 16px; }
.thv2-btn.thv2-btn-danger.is-confirm { background: #7F1F19; border-color: #F3EBDD; }
.public-media-container .dropdown { right: auto !important; left: 5px; }
.thv2-pick { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; margin: 0; cursor: pointer; }
.thv2-pick input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.thv2-pick span { display: block; width: 100%; height: 100%; border-radius: 8px; border: 2px solid #fff; background: rgba(43,38,34,.35); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.thv2-pick input:checked + span { background: #B8862B; border-color: #fff; }
.thv2-pick input:checked + span::after { content: ''; display: block; width: 9px; height: 16px; margin: 4px auto 0; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.thv2-pick input:focus-visible + span { outline: 3px solid #B8862B; outline-offset: 2px; }
.public-media-container.is-picked .load-media-image-container { outline: 4px solid #B8862B; outline-offset: -4px; }
.thv2-cap-btn { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; border: 0; border-radius: 10px; padding: 9px 10px; background: rgba(255,255,255,.95); color: #2B2622; font: 600 14px 'Source Sans 3', system-ui, sans-serif; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.public-media-container:hover .thv2-cap-btn, .thv2-cap-btn:focus-visible { opacity: 1; }
@media (hover: none) { .thv2-cap-btn { opacity: 1; } }
.thv2-admins-intro { background: #fff; border: 1px solid #EDE5D8; border-radius: 16px; padding: 18px 20px; margin: 4px 0 16px; text-align: left; }

/* Cover photo picker: our 14 covers */
.thv2-cover-intro { color: #4A423B; margin: 0 0 10px; }
.thv2-cover-lib { margin: 14px 0 6px; }
.thv2-cover-lib-title { font-weight: 700; font-size: 15px; color: #2B2622; margin: 0 0 8px; }
.thv2-cover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; }
.thv2-cover-opt { position: relative; display: block; aspect-ratio: 8 / 3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; }
.thv2-cover-opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thv2-cover-opt:hover, .thv2-cover-opt:focus-visible, .thv2-cover-opt.active { border-color: #B8862B; }
.thv2-cover-opt.is-current { border-color: #8A6416; }
.thv2-cover-badge { position: absolute; top: 6px; left: 6px; background: #8A6416; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.thv2-cover-opt { padding: 0; background: #F3EDE3; cursor: pointer; width: 100%; }
.thv2-cover-opt.is-selected { border-color: #8A6416; box-shadow: 0 0 0 3px rgba(184,134,43,.35); }
.thv2-cover-check { display: none; position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: #8A6416; border: 2px solid #fff; }
.thv2-cover-check::after { content: ''; display: block; width: 7px; height: 12px; margin: 4px auto 0; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.thv2-cover-opt.is-selected .thv2-cover-check { display: block; }
.thv2-cover-actions { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0 2px; background: #fff; }
.thv2-cover-status { font-size: 14px; color: #4A423B; }

/* Photo captions: small Turning Hearts mark, flush right, spanning the title
   line and the first line of words; the text keeps clear of it. */
.load-media-text-container-top.thv2-has-mark { position: relative; }
.thv2-media-mark { position: absolute; top: .5rem; right: 0; height: 46px; width: auto; pointer-events: none; }
.thv2-has-mark .media-title-text, .thv2-has-mark .media-body-text { padding-right: 66px; overflow-wrap: anywhere; }
.thv2-groups-intro { background: #FBF8F2; border: 1px solid #EDE5D8; border-radius: 14px; padding: 14px 16px; margin: 14px 0 4px; font-size: 15px; line-height: 1.5; color: #4A423B; text-align: left; }
.thv2-groups-intro strong { color: #2B2622; margin-right: 4px; }

/* ---------- Arrange photos and albums (Edit memorial > Photos) ---------- */
.thv2-media-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.thv2-media-head .thv2-hint { flex: 1 1 320px; margin: 0; }
.thv2-btn.thv2-btn-ghost { height: 42px; padding: 0 16px; }
.thv2-bulkbar .thv2-btn.thv2-btn-ghost { background: transparent; border-color: rgba(243,235,221,.55); color: #fff !important; }
.thv2-bulkbar .thv2-btn.thv2-btn-ghost:hover { background: rgba(243,235,221,.12); }
.thv2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.thv2-chip { border: 1px solid #D9C7A6; background: #fff; color: #4A423B; border-radius: 999px; padding: 7px 14px; font: 600 14px 'Source Sans 3', system-ui, sans-serif; line-height: 1.2; cursor: pointer; }
.thv2-chip:hover { border-color: #B8862B; }
.thv2-chip.is-on { background: #2B2622; border-color: #2B2622; color: #fff; }
.thv2-chip:focus-visible { outline: 3px solid rgba(184,134,43,.45); outline-offset: 2px; }
.thv2-album-new { display: flex; gap: 8px; align-items: center; }
.thv2-album-new .form-control { flex: 1 1 auto; }
.thv2-danger-text { color: #A33A2A !important; }
body.thv2-noscroll { overflow: hidden; }

.thv2-arrange { position: fixed; inset: 0; z-index: 1065; background: #F6F1E8; display: flex; flex-direction: column; }
.thv2-arrange[hidden] { display: none; }
.thv2-arrange-inner { flex: 1 1 auto; overflow-y: auto; padding: 20px 20px 24px; max-width: 1180px; width: 100%; margin: 0 auto; -webkit-overflow-scrolling: touch; }
.thv2-arrange-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.thv2-arrange-top h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; color: #2B2622; margin: 0; }
.thv2-arrange-x { border: 1px solid #D9C7A6; background: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; color: #2B2622; cursor: pointer; flex: 0 0 auto; }
.thv2-arrange-x.is-confirm { background: #A33A2A; border-color: #A33A2A; color: #fff; }
.thv2-arrange .thv2-hint { display: block; margin: 8px 0 12px; max-width: 760px; }
.thv2-arr-albums { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.thv2-arr-albums[hidden] { display: none; }
.thv2-arr-albumtools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.thv2-arr-albumtools[hidden] { display: none; }
.thv2-arr-albumtools .thv2-hint { margin: 0; display: inline; }
.thv2-arr-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.thv2-arr-ask .form-control { width: 240px; max-width: 100%; height: 42px; }
.thv2-arr-selbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: #2B2622; color: #fff; border-radius: 14px; padding: 10px 14px; margin: 6px 0 12px; box-shadow: 0 10px 30px rgba(43,38,34,.25); }
.thv2-arr-selbar[hidden] { display: none; }
.thv2-arr-selbar .thv2-link-btn { color: #F3EBDD; }
.thv2-arr-selbar .thv2-btn.thv2-btn-ghost { background: transparent; border-color: rgba(243,235,221,.55); color: #fff !important; }
.thv2-arr-selbar .thv2-btn.is-primary { height: 42px; padding: 0 16px; }
.thv2-arr-selbar .thv2-btn[hidden] { display: none; }
.thv2-arr-status { padding: 30px 0; text-align: center; color: #6B625A; }
.thv2-arr-status[hidden] { display: none; }
.thv2-arr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.thv2-arr-item { position: relative; border-radius: 12px; overflow: hidden; background: #EDE5D8; aspect-ratio: 1 / 1; cursor: grab; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 1px 2px rgba(60,40,10,.08); }
.thv2-arr-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thv2-arr-item.is-out { display: none; }
.thv2-arr-item.is-first { outline: 3px solid #B8862B; outline-offset: -3px; }
.thv2-arr-item.is-picked { outline: 4px solid #2B2622; outline-offset: -4px; }
.thv2-arr-item.is-ghost { opacity: .35; }
.thv2-arr-item.is-chosen { box-shadow: 0 14px 30px rgba(43,38,34,.35); cursor: grabbing; }
.thv2-arr-num { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: rgba(43,38,34,.78); color: #fff; font: 700 13px/26px 'Source Sans 3', system-ui, sans-serif; text-align: center; }
.thv2-arr-item.is-first .thv2-arr-num::after { content: ' · Main'; }
.thv2-arr-sel { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; background: rgba(43,38,34,.35); cursor: pointer; padding: 0; }
.thv2-arr-sel[aria-pressed="true"] { background: #8A6416; border-color: #fff; }
.thv2-arr-sel[aria-pressed="true"]::after { content: ''; position: absolute; left: 11px; top: 6px; width: 9px; height: 16px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.thv2-arr-tags { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; background: linear-gradient(transparent, rgba(43,38,34,.75)); color: #fff; font: 600 12px/1.3 'Source Sans 3', system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thv2-arr-tags:empty { display: none; }
.thv2-arrange-foot { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #EDE5D8; }
.thv2-arr-msg { flex: 1 1 auto; color: #4A423B; font-size: 15px; }
.thv2-arrange-foot .thv2-btn { padding: 0 22px; }
@media (max-width: 600px) {
  .thv2-arrange-inner { padding: 14px 12px 20px; }
  .thv2-arrange-top h2 { font-size: 24px; }
  .thv2-arr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .thv2-arr-sel { width: 32px; height: 32px; }
  .thv2-arr-sel[aria-pressed="true"]::after { left: 9px; top: 5px; }
  .thv2-arr-item.is-first .thv2-arr-num::after { content: ''; }
  .thv2-arr-selbar .thv2-spacer { display: none; }
}

.thv2-albumpick { position: fixed; inset: 0; z-index: 1080; background: rgba(43,38,34,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.thv2-albumpick[hidden] { display: none; }
.thv2-albumpick-box { background: #fff; border-radius: 18px; padding: 22px; width: 100%; max-width: 440px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.thv2-albumpick-box h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; color: #2B2622; margin: 0 0 10px; }
.thv2-albumpick-box .thv2-hint { display: block; margin: 6px 0 4px; }
.thv2-albumpick-err { color: #A33A2A; font-size: 14px; min-height: 20px; margin-top: 6px; }
.thv2-albumpick-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.thv2-albumpick-actions .thv2-btn { padding: 0 22px; }

.thv2-arr-help { max-width: 820px; margin: 10px 0 14px; }
.thv2-arr-help p { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: #4A423B; }
.thv2-arr-help strong { color: #2B2622; }
.thv2-arr-leave { position: absolute; inset: 0; z-index: 5; background: rgba(43,38,34,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.thv2-arr-leave[hidden] { display: none; }
.thv2-arr-leave-box { background: #fff; border-radius: 18px; padding: 22px; max-width: 460px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.thv2-arr-leave-box h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; color: #2B2622; margin: 0 0 8px; }
.thv2-arr-leave-box p { color: #4A423B; font-size: 16px; margin: 0 0 16px; }
.thv2-arr-leave-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.thv2-arr-leave-actions .thv2-btn { padding: 0 18px; height: 44px; }
#thv2-albumpick-chips[hidden] { display: none; }

/* Requests to help care for a memorial (Edit memorial > Admins) */
.thv2-join-requests { margin: 16px 0 20px; padding: 18px 20px; background: #FBF5E8; border: 1px solid #D9C7A6; border-radius: 16px; }
.thv2-join-requests h3 { margin: 0 0 10px; font: 700 18px 'Source Sans 3', system-ui, sans-serif; color: #2B2622; }
.thv2-join-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid #EDE5D8; }
.thv2-join-row:first-of-type { border-top: 0; }
.thv2-join-who { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: #2B2622; }
.thv2-join-who span { font-size: 14px; color: #6B625A; }
.thv2-join-actions { display: flex; gap: 10px; }
.thv2-join-actions .thv2-btn { height: 44px; padding: 0 20px; }

/* Become the owner (ownership/show) */
.thv2-own-wrap { padding: 40px 16px; display: flex; justify-content: center; }
.thv2-own-card { background: #fff; border: 1px solid #EDE5D8; border-radius: 18px; padding: 30px 28px; max-width: 620px; width: 100%; }
.thv2-own-card h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; color: #2B2622; margin: 0 0 12px; line-height: 1.2; }
.thv2-own-card p, .thv2-own-card li { font-size: 17px; line-height: 1.6; color: #4A423B; }
.thv2-own-card ul { padding-left: 20px; margin: 0 0 20px; }
.thv2-own-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.thv2-own-card .thv2-btn { padding: 0 22px; display: inline-flex; align-items: center; text-decoration: none; }
.thv2-own-note { font-size: 15px; color: #6B625A; }
/* Owner and contributors (Edit memorial > Admins) */
.thv2-role { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font: 700 12px 'Source Sans 3', system-ui, sans-serif; letter-spacing: .5px; vertical-align: middle; }
.thv2-role.is-owner { background: #8A6416; color: #fff; }
.thv2-role.is-contributor { background: #F3EBDD; color: #4A423B; }
.thv2-owner-pending { margin: 12px 0 16px; padding: 14px 18px; background: #FBF5E8; border: 1px solid #D9C7A6; border-radius: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; color: #2B2622; }
.thv2-owner-pending .thv2-btn { height: 40px; padding: 0 16px; }
.thv2-user-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.thv2-user-actions .thv2-btn { height: 38px; padding: 0 14px; font-size: 14px !important; }

.thv2-locked { background: #F6F1E8 !important; color: #6B625A !important; cursor: not-allowed; }
.thv2-locked-note { margin: 0 0 14px; padding: 12px 16px; background: #FBF5E8; border: 1px solid #D9C7A6; border-radius: 12px; font-size: 16px; color: #2B2622; }

/* ---------- Discover (2026 redesign) ---------- */
body.thv2 .dv2-intro { max-width: 1132px; margin: 44px auto 22px; display: flex; flex-direction: column; gap: 10px; }
body.thv2 .dv2-eyebrow { font: 700 13px 'Source Sans 3', system-ui, sans-serif !important; letter-spacing: 2.5px; text-transform: uppercase; color: var(--th-gold) !important; }
body.thv2 .dv2-eyebrow.is-light { color: #C9D3E4 !important; }
body.thv2 .dv2-eyebrow.is-gold { color: #E8D3A8 !important; }
body.thv2 .dv2-intro h1 { margin: 0; font-size: 50px; line-height: 1.05; }
body.thv2 .dv2-lead { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--th-ink-2) !important; }
body.thv2 .dv2-views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
body.thv2 .dv2-view { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--th-gold-line); border-radius: 999px; background: #fff; color: var(--th-ink) !important; font: 600 15px 'Source Sans 3', system-ui, sans-serif; text-decoration: none !important; }
body.thv2 .dv2-view:hover { border-color: var(--th-gold-2); }
body.thv2 .dv2-view.is-on { background: var(--th-gold); border-color: var(--th-gold); color: #fff !important; }
body.thv2 .dv2-search-pill { display: none; align-items: center; gap: 10px; width: 100%; height: 52px; padding: 0 18px; margin-top: 6px; border: 1.5px solid var(--th-gold-line); border-radius: 999px; background: #fff; text-align: left; }
body.thv2 .dv2-search-pill i { color: var(--th-gold); font-size: 18px; }
body.thv2 .dv2-search-pill span { font-size: 16px; color: var(--th-muted); }

body.thv2 .dv2-layout { max-width: 1132px; margin: 0 auto; padding: 0 0 48px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
body.thv2 .dv2-main { min-width: 0; }
body.thv2 .dv2-main #search-bar-mobile { display: none !important; }
body.thv2 .dv2-feed { display: flex; flex-direction: column; gap: 22px; }
body.thv2 .dv2-loading { display: flex; justify-content: center; padding: 18px 0; }
body.thv2 .dv2-section-head { margin: 0 0 16px; }
body.thv2 .dv2-section-head h2 { margin: 0; font-size: 32px; }
body.thv2 .dv2-section-head p { margin: 2px 0 0; font-size: 16px; color: var(--th-muted) !important; }

/* Cards */
body.thv2 .dv2-card { position: relative; background: #fff; border: 1px solid var(--th-line); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 24px rgba(60, 40, 10, .06); }
body.thv2 .dv2-h2 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 30px; font-weight: 600; line-height: 1.12; color: var(--th-ink); }
body.thv2 .dv2-h2.is-lg { font-size: 36px; }
body.thv2 .dv2-h2.is-light { color: #fff !important; }
body.thv2 .dv2-meta { margin: 0; font-size: 16px; color: var(--th-ink-2) !important; }
body.thv2 .dv2-copy { margin: 0; font-size: 16px; line-height: 1.55; color: var(--th-ink-2) !important; }
body.thv2 .dv2-copy.is-light { color: #E6DED3 !important; }
body.thv2 .dv2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
body.thv2 .dv2-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--th-gold-line); background: #fff; color: var(--th-ink) !important; font: 700 15px 'Source Sans 3', system-ui, sans-serif; text-decoration: none !important; cursor: pointer; }
body.thv2 .dv2-btn:hover { border-color: var(--th-gold-2); background: #FBF5E8; }
body.thv2 .dv2-btn.is-primary { background: var(--th-gold); border-color: var(--th-gold); color: #fff !important; }
body.thv2 .dv2-btn.is-primary:hover { background: var(--th-gold-dark); border-color: var(--th-gold-dark); }
body.thv2 .dv2-btn.is-gold { align-self: flex-start; background: #E8D3A8; border-color: #E8D3A8; color: var(--th-ink) !important; }
body.thv2 .dv2-btn.is-gold:hover { background: #F1E2C4; }
body.thv2 .dv2-btn.is-white { align-self: flex-start; background: #fff; border-color: #fff; color: var(--th-navy) !important; }
body.thv2 .dv2-btn.is-block { display: flex; width: 100%; }
body.thv2 .dv2-link-icon { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--th-ink-2) !important; text-decoration: none !important; }
body.thv2 .dv2-link-icon:hover { color: var(--th-gold) !important; }

/* Highlight cards (birthday, featured) */
body.thv2 .dv2-hl-cover { position: relative; height: 130px; background: var(--th-sand); }
body.thv2 .dv2-hl-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
body.thv2 .dv2-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--th-gold); font: 700 13px 'Source Sans 3', system-ui, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
body.thv2 .dv2-tag.is-navy { background: var(--th-navy); color: #fff; }
body.thv2 .dv2-tag.is-right { left: auto; right: 14px; color: var(--th-ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
body.thv2 .dv2-hl-body { position: relative; z-index: 1; padding: 0 24px 24px; display: flex; flex-direction: column; gap: 14px; }
body.thv2 .dv2-hl-row { display: flex; gap: 18px; align-items: flex-start; }
body.thv2 .dv2-hl-body.dv2-hl-row { padding-top: 0; flex-direction: row; }
body.thv2 .dv2-hl-row.is-end { align-items: flex-end; }
body.thv2 .dv2-hl-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 18px; }
body.thv2 .dv2-hl-row.is-end .dv2-hl-text { padding-top: 0; padding-bottom: 4px; }
/* The photo or initials sit on top of the cover, never under it. */
body.thv2 .dv2-avatar { flex-shrink: 0; position: relative; z-index: 2; border-radius: 50%; object-fit: cover; background: var(--th-sand); }
body.thv2 .dv2-mono { display: inline-flex; align-items: center; justify-content: center; color: var(--th-gold); font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; }
body.thv2 .dv2-hl-photo.is-md { width: 84px; height: 84px; margin-top: -42px; border: 4px solid #fff; font-size: 30px; }
body.thv2 .dv2-hl-photo.is-lg { width: 96px; height: 96px; margin-top: -48px; border: 5px solid #fff; font-size: 34px; }
body.thv2 .dv2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.thv2 .dv2-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--th-sand); color: #5E440F; font-size: 14px; font-weight: 600; }
body.thv2 .dv2-chip.is-navy { background: #E8ECF3; color: var(--th-navy); }
body.thv2 .dv2-quote { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif !important; font-style: italic; font-size: 24px; line-height: 1.3; color: var(--th-ink) !important; }
body.thv2 .dv2-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.thv2 .dv2-pair.is-one { grid-template-columns: minmax(0, 1fr); }
body.thv2 .dv2-well { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--th-ivory); border: 1px solid var(--th-line); border-radius: 14px; }
body.thv2 .dv2-well .dv2-eyebrow { font-size: 12px !important; letter-spacing: 2px; }
body.thv2 .dv2-well-title { font-size: 16px; font-weight: 600; color: var(--th-ink); }
body.thv2 .dv2-well-by, body.thv2 .dv2-well-copy { font-size: 15px; line-height: 1.5; color: var(--th-ink-2); }

/* New memorial card */
body.thv2 .dv2-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.thv2 .dv2-new-img { position: relative; min-height: 230px; background: var(--th-sand); }
body.thv2 .dv2-new-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.thv2 .dv2-new-photo { position: absolute !important; left: 20px; bottom: 20px; width: 76px; height: 76px; border: 4px solid #fff; font-size: 28px; }
body.thv2 .dv2-new-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }

/* Veterans card */
body.thv2 .dv2-vets { background: var(--th-navy); border-color: var(--th-navy); color: #fff; }
body.thv2 .dv2-vets-stripe { display: grid; grid-template-columns: repeat(3, 1fr); height: 8px; }
body.thv2 .dv2-vets-stripe span:nth-child(odd) { background: #A3262A; }
body.thv2 .dv2-vets-stripe span:nth-child(2) { background: #fff; }
body.thv2 .dv2-vets-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
body.thv2 .dv2-vets-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.thv2 .dv2-vet { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff !important; text-decoration: none !important; }
body.thv2 .dv2-vet:hover { background: rgba(255, 255, 255, .14); }
body.thv2 .dv2-vet-photo { width: 52px; height: 52px; margin-bottom: 6px; border: 2px solid rgba(255, 255, 255, .6); font-size: 20px; }
body.thv2 .dv2-vet-name { font-weight: 700; font-size: 17px; color: #fff; }
body.thv2 .dv2-vet-line { font-size: 14px; color: #DCE3EE; }

/* Promo cards */
body.thv2 .dv2-dark { background: var(--th-ink); border-color: var(--th-ink); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
body.thv2 .dv2-quietcard { background: var(--th-sand); border-color: var(--th-sand); box-shadow: none; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* Activity posts */
body.thv2 .dv2-main .discover-feed { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100% !important; background: #fff !important; border: 1px solid var(--th-line) !important; border-radius: 20px !important; box-shadow: 0 8px 24px rgba(60, 40, 10, .06) !important; }
body.thv2 .dv2-post-cover { display: block; height: 130px; background: var(--th-sand); }
body.thv2 .dv2-post-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
body.thv2 .dv2-post-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 18px 22px 0; }
body.thv2 .dv2-post-head.has-cover { align-items: flex-end; padding-top: 0; }
body.thv2 .dv2-post-photo { width: 56px; height: 56px; border: 3px solid #fff; font-size: 22px; }
body.thv2 .dv2-post-head.has-cover .dv2-post-photo { width: 84px; height: 84px; margin-top: -42px; border-width: 4px; font-size: 30px; }
body.thv2 .dv2-post-id { display: flex; flex-direction: column; min-width: 0; padding-bottom: 2px; }
body.thv2 .discover-feed a.dv2-post-name { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 26px !important; font-weight: 600 !important; line-height: 1.1; color: var(--th-ink) !important; text-decoration: none !important; }
body.thv2 .discover-feed a.dv2-post-name:hover { color: var(--th-gold) !important; }
body.thv2 .dv2-post-years { font-size: 15px; color: var(--th-ink-2); }
body.thv2 .dv2-post-who { display: flex; flex-direction: column; padding: 12px 22px 14px; }
body.thv2 .dv2-post-line { margin: 0; font-size: 16px !important; line-height: 1.45; color: var(--th-ink) !important; }
body.thv2 .dv2-post-line span:first-child { font-weight: 700; }
body.thv2 .discover-feed .dv2-post-line a { font-weight: 700; color: var(--th-gold-dark) !important; }
body.thv2 .dv2-main .discover-post-time { margin: 2px 0 0; font-size: 14px !important; color: var(--th-muted) !important; }
body.thv2 .dv2-main .discover-feed > .row { margin-left: 0; margin-right: 0; }
body.thv2 .dv2-main .discover-feed > .row > [class*='col-'] { padding-left: 22px !important; padding-right: 22px !important; }
body.thv2 .dv2-main .discover-body { margin-bottom: 0 !important; }
body.thv2 .dv2-main .discover-body .image-div-on-discover, body.thv2 .dv2-main .discover-image figure, body.thv2 .dv2-main .discover-body .carousel { background-color: var(--th-sand) !important; border-radius: 14px; overflow: hidden; }
body.thv2 .dv2-main .discover-tribute { margin: 12px 0 4px !important; padding: 14px 16px; background: var(--th-ivory); border-left: 3px solid var(--th-gold-line); border-radius: 0 12px 12px 0; }
body.thv2 .dv2-main .discover-tribute strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 21px; color: var(--th-ink); }
body.thv2 .dv2-main .discover-tribute p { margin: 4px 0 0; font-size: 17px; line-height: 1.55; }
body.thv2 .dv2-main .discover-reaction-container { padding: 0 22px 16px; }
body.thv2 .dv2-main .post-divider { border-color: var(--th-line) !important; opacity: 1; }
body.thv2 .dv2-main .btn-discover-section { font-size: 15px !important; font-weight: 600; padding: 8px 12px !important; }
body.thv2 .dv2-main .form-control-send-comment { border-radius: 999px !important; border: 1px solid var(--th-gold-line) !important; background: var(--th-ivory) !important; min-height: 44px; font-size: 16px; }

/* Lists (Veterans, Anniversaries, New memorials) */
body.thv2 .dv2-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
body.thv2 .dv2-pcard { display: flex; flex-direction: column; text-decoration: none !important; color: var(--th-ink) !important; }
body.thv2 .dv2-pcard:hover { border-color: var(--th-gold-line); }
body.thv2 .dv2-pcard-cover { height: 92px; background: var(--th-sand); }
body.thv2 .dv2-pcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.thv2 .dv2-pcard-photo { width: 72px; height: 72px; margin: -36px 0 0 16px; border: 4px solid #fff; font-size: 26px; }
body.thv2 .dv2-pcard-body { display: flex; flex-direction: column; gap: 3px; padding: 8px 16px 18px; align-items: flex-start; }
body.thv2 .dv2-pcard-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 700; line-height: 1.15; }
body.thv2 .dv2-pcard-line { font-size: 15px; color: var(--th-ink-2); }
body.thv2 .dv2-pcard-line.is-muted { color: var(--th-muted); }
body.thv2 .dv2-more { display: flex; justify-content: center; margin-top: 22px; }
body.thv2 .dv2-empty { padding: 28px; font-size: 17px; }
body.thv2 .dv2-endcard { margin-top: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--th-ivory); box-shadow: none; }

/* Side column */
body.thv2 .dv2-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
body.thv2 .dv2-sidecard { background: #fff; border: 1px solid var(--th-line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
body.thv2 .dv2-sidecard.is-dark { background: var(--th-ink); border-color: var(--th-ink); }
body.thv2 .dv2-sidecard.is-dashed { border-style: dashed; border-color: var(--th-gold-line); }
body.thv2 .dv2-sidecard .dv2-eyebrow { font-size: 12px !important; letter-spacing: 2px; }
body.thv2 .dv2-side-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 27px; font-weight: 600; line-height: 1.15; color: #fff; }
body.thv2 .dv2-side-subtitle { font-weight: 700; font-size: 17px; color: var(--th-ink); }
body.thv2 .dv2-sidecopy { margin: 0; font-size: 15px; line-height: 1.55; color: var(--th-ink-2) !important; }
body.thv2 .dv2-sidecopy.is-light { color: #E6DED3 !important; }
body.thv2 .dv2-side-actions { display: flex; flex-direction: column; gap: 8px; }
body.thv2 .dv2-sidelink { font-weight: 700; font-size: 15px; color: var(--th-gold-dark) !important; }
body.thv2 .dv2-person { display: flex; align-items: center; gap: 12px; color: var(--th-ink) !important; text-decoration: none !important; }
body.thv2 .dv2-person:hover .dv2-person-name { color: var(--th-gold); }
body.thv2 .dv2-person-photo { width: 44px; height: 44px; font-size: 17px; }
body.thv2 .dv2-person-photo.is-lg { width: 52px; height: 52px; font-size: 20px; }
body.thv2 .dv2-person-text { display: flex; flex-direction: column; min-width: 0; }
body.thv2 .dv2-person-name { font-weight: 700; font-size: 16px; }
body.thv2 .dv2-person-line { font-size: 14px; color: var(--th-ink-2); }

/* Shop panel */
body.dv2-shop-open { overflow: hidden; }
body.dv2-shop-open .woot--bubble-holder, body.dv2-shop-open .woot-widget-holder { display: none !important; }
body.thv2 .dv2-shop { position: fixed; inset: 0; z-index: 100000; }
body.thv2 .dv2-shop[hidden] { display: none; }
body.thv2 .dv2-shop-backdrop { position: absolute; inset: 0; background: rgba(43, 38, 34, .45); }
body.thv2 .dv2-shop-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(43, 38, 34, .25); }
body.thv2 .dv2-shop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 14px; border-bottom: 1px solid var(--th-line); }
body.thv2 .dv2-shop-x { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--th-ivory); font-size: 18px; color: var(--th-ink); }
body.thv2 .dv2-shop-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 16px; }
body.thv2 .dv2-shop-steps { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--th-ink-2); }
body.thv2 .dv2-prod { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--th-line); border-radius: 16px; }
body.thv2 .dv2-prod-img { width: 96px; height: 96px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--th-ivory); }
body.thv2 .dv2-prod-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
body.thv2 .dv2-prod-title { font-weight: 700; font-size: 17px; color: var(--th-ink); }
body.thv2 .dv2-prod-price { font-size: 17px; font-weight: 700; color: var(--th-gold-dark); }
body.thv2 .dv2-prod-price s { margin-left: 6px; font-weight: 400; color: var(--th-muted); }
body.thv2 .dv2-prod-copy { margin: 0; font-size: 14px; line-height: 1.5; color: var(--th-ink-2); }
body.thv2 .dv2-prod-opts { display: flex; flex-wrap: wrap; gap: 6px; }
body.thv2 .dv2-opt { position: relative; margin: 0; }
body.thv2 .dv2-opt input { position: absolute; opacity: 0; }
body.thv2 .dv2-opt span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--th-gold-line); border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
body.thv2 .dv2-opt input:checked + span { background: var(--th-gold); border-color: var(--th-gold); color: #fff; }
body.thv2 .dv2-opt input:focus-visible + span { outline: 2px solid var(--th-gold-2); outline-offset: 2px; }
body.thv2 .dv2-qty { display: inline-flex; align-items: center; align-self: flex-start; border: 1.5px solid var(--th-gold-line); border-radius: 12px; overflow: hidden; }
body.thv2 .dv2-qty button { width: 44px; height: 42px; border: 0; background: #fff; font-size: 20px; font-weight: 700; color: var(--th-ink); }
body.thv2 .dv2-qty button:hover { background: var(--th-ivory); }
body.thv2 .dv2-qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 16px; }
body.thv2 .dv2-shop-foot { padding: 16px 24px 22px; border-top: 1px solid var(--th-line); background: var(--th-ivory); display: flex; flex-direction: column; gap: 10px; }
body.thv2 .dv2-shop-total { display: flex; justify-content: space-between; font-size: 17px; color: var(--th-ink); }
body.thv2 #dv2-shop-go[aria-disabled="true"] { opacity: .45; pointer-events: none; }
body.thv2 .dv2-shop-note { margin: 0; font-size: 13px; color: var(--th-muted) !important; text-align: center; }

@media (max-width: 991.98px) {
  body.thv2 .dv2-intro { margin: 28px 0 18px; }
  body.thv2 .dv2-search-pill { display: flex; }
  body.thv2 .dv2-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  body.thv2 .dv2-side { position: static; }
}
@media (max-width: 575.98px) {
  body.thv2 .dv2-intro h1 { font-size: 38px; }
  body.thv2 .dv2-lead { font-size: 16px; }
  body.thv2 .dv2-h2 { font-size: 26px; }
  body.thv2 .dv2-h2.is-lg { font-size: 30px; }
  body.thv2 .dv2-hl-body, body.thv2 .dv2-vets-body, body.thv2 .dv2-new-body { padding-left: 18px; padding-right: 18px; }
  body.thv2 .dv2-hl-body.dv2-hl-row { flex-direction: column; gap: 4px; }
  body.thv2 .dv2-hl-row.is-end { flex-direction: column; align-items: flex-start; gap: 8px; }
  body.thv2 .dv2-pair, body.thv2 .dv2-vets-grid { grid-template-columns: minmax(0, 1fr); }
  body.thv2 .dv2-new { grid-template-columns: minmax(0, 1fr); }
  body.thv2 .dv2-new-img { min-height: 170px; }
  body.thv2 .dv2-link-icon { margin-left: 0; }
  body.thv2 .dv2-main .discover-feed > .row > [class*='col-'] { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Search panel */
body.thv2 #discoverSearchUsersModal { background-color: rgba(43, 38, 34, .35) !important; }
body.thv2 #discoverSearchUsersModal > .modal-dialog { max-width: 680px; width: calc(100% - 24px); margin: 72px auto 24px; }
body.thv2 #discoverSearchUsersModal > .modal-dialog > .modal-content { top: 0; left: 0; border: 0; border-radius: 22px; box-shadow: 0 24px 60px rgba(43, 38, 34, .25); overflow: hidden; }
body.thv2 #discoverSearchUsersModal > .modal-dialog > .modal-content > .modal-body { background: #fff !important; border-radius: 22px; padding: 18px 22px 12px; }
body.thv2 #discoverSearchUsersModal .bar-search { height: 56px; display: flex; align-items: center; border-width: 1.5px !important; }
body.thv2 #discoverSearchUsersModal #searchInput { font-size: 18px !important; border: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--th-ink) !important; }
body.thv2 #discoverSearchUsersModal #searchIcon { display: flex; align-items: center; padding: 0 !important; }
body.thv2 #discoverSearchUsersModal #searchIcon i { font-size: 20px; }
body.thv2 .dv2-search-close { flex: 0 0 auto; width: 44px; height: 44px; margin-left: 8px; border: 0; border-radius: 50%; background: var(--th-ivory); color: var(--th-ink-2); font-size: 18px; }
body.thv2 .dv2-search-close:hover { background: var(--th-sand); }
body.thv2 .dv2-search-hint { margin: -4px 4px 6px; font-size: 15px; line-height: 1.5; color: var(--th-muted) !important; }
body.thv2 .dv2-search-hint strong { color: var(--th-ink); }
body.thv2 .dv2-search-count { margin: 0 4px; font: 700 13px 'Source Sans 3', system-ui, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--th-gold) !important; }
body.thv2 .dv2-search-count:empty { display: none; }
body.thv2 #users-results-container { max-height: min(62vh, 560px) !important; }
body.thv2 #searchResults { margin-top: 6px !important; }
body.thv2 #searchResults .dv2-sr-item { padding: 0 !important; border: 0 !important; border-bottom: 1px solid var(--th-line) !important; border-radius: 0 !important; background: transparent !important; }
body.thv2 #searchResults .dv2-sr-item:last-child { border-bottom: 0 !important; }
body.thv2 #searchResults .dv2-sr { display: flex !important; align-items: center; gap: 16px; padding: 14px 8px !important; border-radius: 12px; text-decoration: none !important; }
body.thv2 #searchResults .dv2-sr:hover { background: var(--th-ivory); }
body.thv2 #searchResults .dv2-sr-photo { flex: 0 0 64px; width: 64px; height: 64px; margin: 0 !important; }
body.thv2 #searchResults .dv2-sr-photo img, body.thv2 .dv2-sr-mono { width: 64px !important; height: 64px !important; border-radius: 50% !important; object-fit: cover; border: 2px solid var(--th-gold-line) !important; }
body.thv2 .dv2-sr-mono { display: flex; align-items: center; justify-content: center; background: var(--th-sand); color: var(--th-gold-dark); font: 600 24px 'Cormorant Garamond', Georgia, serif; }
body.thv2 #searchResults .dv2-sr-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; margin: 0 !important; }
body.thv2 #searchResults .dv2-sr-name { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 23px !important; font-weight: 700; line-height: 1.15; color: var(--th-ink) !important; }
body.thv2 .dv2-sr-dates { font-size: 15px; color: var(--th-ink-2); }
body.thv2 .dv2-sr-line { display: flex; align-items: baseline; gap: 7px; font-size: 15px; color: var(--th-muted); }
body.thv2 .dv2-sr-line i { color: var(--th-gold); font-size: 14px; }
body.thv2 #searchResults mark { padding: 0 1px; background: #F6E3B4; color: var(--th-ink); border-radius: 3px; font-weight: 700; }
body.thv2 .dv2-sr-go { color: var(--th-gold-line); font-size: 18px; }
body.thv2 #searchResults .dv2-sr:hover .dv2-sr-go { color: var(--th-gold); }
body.thv2 #discoverSearchUsersModal .discover-no-users-found { padding: 26px 10px 18px; text-align: center; }
body.thv2 #discoverSearchUsersModal .discover-no-users-found img { width: 110px; margin-bottom: 10px; }
body.thv2 #discoverSearchUsersModal .discover-no-users-title { font-size: 26px; }
body.thv2 #discoverSearchUsersModal .discover-no-users-subtitle { font-size: 16px; color: var(--th-muted) !important; }

@media (max-width: 575.98px) {
  body.thv2 .dv2-layout { padding: 0 0 24px; }
  body.thv2 #discoverSearchUsersModal > .modal-dialog { margin: 12px auto; width: calc(100% - 16px); }
  body.thv2 #searchResults .dv2-sr-photo, body.thv2 #searchResults .dv2-sr-photo img, body.thv2 .dv2-sr-mono { flex-basis: 52px; width: 52px !important; height: 52px !important; }
  body.thv2 #searchResults .dv2-sr-name { font-size: 20px !important; }
}

/* ---------- Family page: add memorials window ---------- */
#add_members_group .modal-dialog { margin-top: 76px; margin-bottom: 20px; }
#add_members_group .modal-dialog-scrollable { height: calc(100% - 96px); }
#add_members_group .fp { border: 0; border-radius: 20px; overflow: hidden; font-family: 'Source Sans 3', system-ui, sans-serif; }
#add_members_group .fp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid #EDE5D8; }
#add_members_group .fp-title { margin: 0 0 4px; font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 30px; font-weight: 600; color: #2B2622; line-height: 1.15; }
#add_members_group .fp-sub { margin: 0; font-size: 16px; color: #4A423B; }
#add_members_group .fp-x { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FBF8F2; color: #2B2622; font-size: 18px; }
#add_members_group .fp-x:hover { background: #F3EBDD; }
#add_members_group .fp-body { padding: 8px 24px 16px; }
#add_members_group .fp-h { margin: 16px 0 8px; font: 700 13px 'Source Sans 3', system-ui, sans-serif !important; letter-spacing: 1.5px; text-transform: uppercase; color: #8A6416 !important; }
#add_members_group .fp-list { list-style: none; margin: 0; padding: 0; }
#add_members_group .fp-list > li + li { border-top: 1px solid #EDE5D8; }
#add_members_group .fp-row { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 12px 8px; border-radius: 12px; cursor: pointer; }
#add_members_group .fp-row:hover { background: #FBF8F2; }
#add_members_group .fp-row.is-in { cursor: default; opacity: .75; }
#add_members_group .fp-check { flex: 0 0 auto; width: 22px; height: 22px; accent-color: #8A6416; }
#add_members_group .fp-photo { flex: 0 0 56px; width: 56px; height: 56px; }
#add_members_group .fp-photo img, #add_members_group .fp-mono { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #D9C7A6; }
#add_members_group .fp-mono { display: flex; align-items: center; justify-content: center; background: #F3EBDD; color: #75540F; font: 600 21px 'Cormorant Garamond', Georgia, serif; }
#add_members_group .fp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; color: #6B625A; }
#add_members_group .fp-text i { color: #8A6416; }
#add_members_group .fp-name { font-family: 'Cormorant Garamond', Georgia, serif !important; font-size: 21px; font-weight: 700; color: #2B2622; line-height: 1.2; }
#add_members_group .fp-tag { align-self: flex-start; margin-top: 4px; padding: 1px 9px; border-radius: 999px; background: #F3EBDD; color: #4A423B; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
#add_members_group .fp-tag.is-public { background: #EEF1F6; color: #1F2F4D; }
#add_members_group .fp-empty { padding: 14px 8px; font-size: 16px; color: #4A423B; }
#add_members_group .fp-find { margin-top: 6px; padding-top: 4px; border-top: 1px solid #EDE5D8; }
#add_members_group .fp-search { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; margin: 0; padding: 0 18px; border: 1.5px solid #D9C7A6; border-radius: 999px; background: #fff; }
#add_members_group .fp-search:focus-within { border-color: #B8862B; box-shadow: 0 0 0 3px rgba(184, 134, 43, .15); }
#add_members_group .fp-search i { color: #8A6416; font-size: 18px; }
#add_members_group .fp-search input { flex: 1 1 auto; height: 100%; padding: 0 !important; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; font-size: 17px; color: #2B2622; }
#add_members_group .fp-hint { margin: 8px 4px 4px; font-size: 14px; color: #6B625A; }
#add_members_group mark { padding: 0 1px; background: #F6E3B4; color: #2B2622; border-radius: 3px; font-weight: 700; }
#add_members_group .fp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid #EDE5D8; background: #FBF8F2; }
#add_members_group .fp-new { font-weight: 700; font-size: 16px; color: #75540F !important; text-decoration: none; }
#add_members_group .fp-new:hover { text-decoration: underline; }
#add_members_group .fp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#add_members_group .fp-count { font-size: 15px; color: #4A423B; margin-right: 4px; }
#add_members_group .fp-btn { height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid #D9C7A6; background: #fff; color: #2B2622; font: 700 16px 'Source Sans 3', system-ui, sans-serif; }
#add_members_group .fp-btn:hover { background: #F3EBDD; }
#add_members_group .fp-btn.is-primary { background: #8A6416; border-color: #8A6416; color: #fff; }
#add_members_group .fp-btn.is-primary:hover { background: #75540F; }
#add_members_group .fp-btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 575.98px) {
  #add_members_group .fp-head, #add_members_group .fp-body, #add_members_group .fp-foot { padding-left: 16px; padding-right: 16px; }
  #add_members_group .fp-title { font-size: 25px; }
  #add_members_group .fp-actions { width: 100%; }
  #add_members_group .fp-actions .fp-btn { flex: 1 1 auto; }
  #add_members_group .fp-count { width: 100%; }
}

/* Sign-in card: gentle note for a wrong password or other message (replaces the red top bar). */
body.thv2 .th-auth-note, .th-auth-note {
  margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px;
  background: #F6F1E8; border: 1px solid #E8DCC6; color: #4A423B;
  font-size: 15px; line-height: 1.45; text-align: center;
}

/* Create-a-memorial and medallion pages (new account, link medallion, private
   memorial card). Gentle, roomy layout in the new design. */
.thm-page { max-width: 720px; margin: 32px auto 120px; padding: 0 16px; }
.thm-page.is-embedded { margin-top: 8px; }
.thm-card { background: #fff; border: 1px solid #EDE5D8; border-radius: 20px; padding: 36px 40px;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .04), 0 8px 24px rgba(60, 40, 10, .06); }
.thm-eyebrow { font: 700 13px/1.2 'Source Sans 3', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8A6416; margin-bottom: 10px; }
body.thv2 .thm-title, .thm-title { font: 600 40px/1.1 'Cormorant Garamond', Georgia, serif !important; color: #2B2622; margin: 0 0 12px; }
body.thv2 .thm-subtitle, .thm-subtitle { font: 600 28px/1.15 'Cormorant Garamond', Georgia, serif !important; color: #2B2622; margin: 0 0 6px; }
body.thv2 .thm-lead, .thm-lead { font-size: 19px; line-height: 1.55; color: #4A423B; margin: 0 0 24px; }
body.thv2 .thm-p, .thm-p { font-size: 17px; line-height: 1.55; color: #4A423B; margin: 0 0 16px; }
.thm-small { font-size: 15px !important; color: #6B625A !important; }
.thm-help { margin: 22px 0 0; font-size: 16px; color: #6B625A; text-align: center; }
.thm-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 26px; flex-wrap: wrap; }
.thm-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #F6F1E8;
  font: 600 15px 'Source Sans 3', sans-serif; color: #6B625A; }
.thm-steps li span { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid #D9C7A6; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; }
.thm-steps li.is-on { background: #8A6416; color: #fff; }
.thm-steps li.is-on span { background: #fff; color: #8A6416; border-color: #fff; }
.thm-steps li.is-done span { background: #E9D7AE; border-color: #E9D7AE; color: #5C410B; }
.thm-form { margin: 0; }
.thm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.thm-field { display: block; margin: 0 0 16px; }
.thm-field > span { display: block; font: 600 16px 'Source Sans 3', sans-serif; color: #2B2622; margin-bottom: 6px; }
.thm-field > span em { font-style: normal; font-weight: 400; color: #6B625A; }
.thm-field input, .thm-field select { box-sizing: border-box; width: 100%; height: 52px; border-radius: 12px; border: 1px solid #D9C7A6; background: #FBF8F2;
  padding: 0 14px; font: 400 17px 'Source Sans 3', sans-serif; color: #2B2622; }
.thm-field input:focus, .thm-field select:focus { outline: none; border-color: #B8862B; box-shadow: 0 0 0 3px rgba(184, 134, 43, .18); background: #fff; }
.thv2-btn.thm-wide, .thm-wide { width: 100%; height: 54px; font-size: 17px; margin-top: 8px; }
.thm-note { display: flex; gap: 14px; align-items: flex-start; background: #F6F1E8; border: 1px solid #EDE5D8; border-radius: 14px;
  padding: 16px 18px; margin: 8px 0 18px; font-size: 16.5px; line-height: 1.5; color: #4A423B; }
.thm-note strong { color: #2B2622; }
.thm-note-icon { flex: 0 0 36px; height: 36px; border-radius: 10px; background: #fff; color: #8A6416; display: inline-flex;
  align-items: center; justify-content: center; font-size: 17px; border: 1px solid #EDE5D8; }
.thm-or { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: #6B625A; font: 600 14px 'Source Sans 3', sans-serif;
  text-transform: uppercase; letter-spacing: .12em; }
.thm-or::before, .thm-or::after { content: ''; flex: 1; height: 1px; background: #EDE5D8; }
.thm-list { display: grid; gap: 12px; }
.thm-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid #EDE5D8;
  border-radius: 16px; background: #FBF8F2; margin: 0; flex-wrap: wrap; }
.thm-choice-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.thm-choice-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; background: #F3EBDD; color: #8A6416;
  display: inline-flex; align-items: center; justify-content: center; font: 600 22px 'Cormorant Garamond', serif; }
.thm-choice-name { font: 600 22px/1.15 'Cormorant Garamond', Georgia, serif; color: #2B2622; }
.thm-choice-meta { font-size: 15px; color: #6B625A; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.thm-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #F3EBDD; color: #75540F; font: 600 13px 'Source Sans 3', sans-serif; }
.thm-howto { display: grid; gap: 12px; }
.thm-howto-step { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: #4A423B; }
.thm-howto-step strong { color: #2B2622; }
.thm-num { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #8A6416; color: #fff; display: inline-flex; align-items: center;
  justify-content: center; font: 700 15px 'Source Sans 3', sans-serif; }
/* Private memorial card in the memorial page's owner bar */
.thm-private { margin-top: 14px; padding: 18px; border-radius: 16px; background: #FBF8F2; border: 1px solid #E8DCC6; }
.thm-private-head { display: flex; gap: 14px; align-items: flex-start; }
.thm-private-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.thm-private-small { margin: 12px 0 0; font-size: 15px; color: #6B625A; }
.thm-linked { border-left: 4px solid #8A6416; }
@media (max-width: 640px) {
  .thm-card { padding: 26px 20px; }
  .thm-row { grid-template-columns: 1fr; gap: 0; }
  body.thv2 .thm-title, .thm-title { font-size: 32px !important; }
  .thm-choice .thv2-btn { width: 100%; }
  .thm-private-actions .mv2-btn { flex: 1 1 100%; justify-content: center; }
}

/* "Can't scan it?" on the link-a-medallion page */
.thm-cantscan { margin: 22px 0 6px; border-top: 1px solid #EDE5D8; padding-top: 16px; }
.thm-cantscan summary { cursor: pointer; font: 700 16px 'Source Sans 3', sans-serif; color: #8A6416; list-style: none; }
.thm-cantscan summary::-webkit-details-marker { display: none; }
.thm-cantscan summary::after { content: ' +'; }
.thm-cantscan[open] summary::after { content: ' \2212'; }
.thm-cantscan .thm-form { margin-top: 12px; }

/* "Their story": copy the obituary from its web address */
.thv2-obit-import { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -4px 0 18px; }
.thv2-obit-import[hidden] { display: none; }
.thv2-obit-import .thv2-btn { height: 44px; padding: 0 16px; }

/* Links step */
.thv2-links-label { font: 700 12px 'Source Sans 3', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8A6416; margin: 4px 0 8px; }
.thv2-links-have { margin: 0 0 18px; }
.thv2-link-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #EDE5D8; border-radius: 12px; background: #fff; margin: 0 0 8px; }
.thv2-link-row.is-have { background: #FBF8F3; }
.thv2-link-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: #2B2622; overflow-wrap: anywhere; }
.thv2-link-main span { color: #6B625A; font-size: 14px; }
.thv2-link-tag { flex: 0 0 auto; font: 700 13px 'Source Sans 3', system-ui, sans-serif; color: #2B2622; background: #F3EADB; border-radius: 999px; padding: 4px 10px; }
.thv2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.thv2-chip { border: 1px solid #D9C7A6; background: #fff; color: #2B2622; border-radius: 999px; padding: 8px 14px; font: 600 14px 'Source Sans 3', system-ui, sans-serif; cursor: pointer; }
.thv2-chip:hover { background: #FBF8F3; border-color: #B8862B; }
.thv2-link-add input { height: 48px; border: 1px solid #D9C7A6; border-radius: 12px; padding: 0 14px; font: 400 16px 'Source Sans 3', system-ui, sans-serif; box-sizing: border-box; width: 100%; }

/* Activate a memorial: get a medallion, then scan it */
.thm-activate { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 8px; padding: 18px; border: 1px solid #EDE5D8; border-radius: 14px; background: #FBF8F3; }
.thm-activate-step { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: #2B2622; }
.thm-activate .thv2-btn { display: inline-flex; align-items: center; text-decoration: none; padding: 0 18px; }

/* My memorials: search */
.thv2-profiles-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0 0; }
.thv2-profiles-search input[type=search] { flex: 1 1 260px; height: 48px; border: 1px solid #D9C7A6; border-radius: 12px; padding: 0 14px; font: 400 16px 'Source Sans 3', system-ui, sans-serif; box-sizing: border-box; }
.thv2-profiles-search .thv2-btn { height: 48px; padding: 0 20px; }
