/* Tziyun site styles.
   One world: night sky, candle gold, cream stone. Dark for the hero and the proof, light for reading and ordering.
   Change the look here: every colour is a variable on :root. */
:root {
  --ink: #0F1326;
  --ink-2: #181D38;
  --ink-3: #222949;
  --ink-line: #343C63;
  --ink-soft: #C9CEE2;
  --ink-mute: #A2A9C4;
  --cream: #F6F2E9;
  --cream-2: #ECE5D4;
  --card: #FFFFFF;
  --line: #E4DDCB;
  --field-line: #B9B19C;
  --text-mute: #565B70;
  --accent: #E0B252;
  --accent-2: #F3D48B;
  --link: #7A5410;
  --link-hover: #4F3608;
  --danger: #A3271B;
  --ok: #24663A;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 19, 38, .05), 0 10px 30px -12px rgba(15, 19, 38, .18);
  --shadow-lift: 0 2px 4px rgba(15, 19, 38, .06), 0 22px 44px -16px rgba(15, 19, 38, .3);
  --font-body: Rubik, system-ui, sans-serif;
  --font-head: 'Frank Ruhl Libre', 'Noto Serif', Georgia, serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font-body); color: var(--ink); background: var(--cream); font-size: 18px; line-height: 1.6; overflow-x: clip; }
:lang(ru) { --font-head: 'Noto Serif', Georgia, serif; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img, svg { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } body { font-size: 17px; } }
/* Hidden helpers are clipped in place. Moving them far off to one side makes right-to-left pages scroll sideways. */
.skip, .hp, input.hp { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input.hp { width: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.skip:focus { width: auto; height: auto; padding: 10px 14px; clip-path: none; inset-inline-start: 16px; top: 16px; background: var(--accent); color: var(--ink); padding: 10px 14px; z-index: 60; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--text-mute); }
.small { font-size: 15px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.ico { flex: none; }
[dir="rtl"] .go .ico, [dir="rtl"] .door > .ico:last-child { transform: scaleX(-1); }

main { flex: 1 0 auto; }

/* Preview banner */
.preview-bar { background: var(--accent); color: var(--ink); text-align: center; font-size: 14px; padding: 6px 16px; font-weight: 500; }

/* Header: one slim row that stays at the top */
.site-header { background: rgba(15, 19, 38, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--cream); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; flex: none; }
.brand:hover { color: var(--cream); }
.brand-name { font-family: var(--font-head); font-size: 26px; font-weight: 700; letter-spacing: .01em; }
.brand-alt { font-family: 'Frank Ruhl Libre', serif; font-size: 18px; color: var(--accent); }
.main-nav { display: flex; gap: 4px; font-size: 16px; margin-inline-start: auto; }
.main-nav a, .family-link { color: var(--ink-soft); text-decoration: none; padding: 9px 13px; border-radius: 999px; white-space: nowrap; transition: color .15s, background .15s; }
.main-nav a:hover, .family-link:hover { color: var(--cream); background: rgba(255, 255, 255, .07); }
.header-tools { display: flex; align-items: center; gap: 8px; font-size: 15px; flex: none; }
.family-link { border: 1px solid var(--ink-line); color: var(--cream); font-size: 15px; }
.menu { position: static; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px; border-radius: 999px; color: var(--cream); border: 1px solid var(--ink-line); user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: rgba(255, 255, 255, .08); }
.menu[open] > summary .ico:last-child { transform: rotate(180deg); }
.lang-menu { position: relative; }
.lang-menu .short { display: none; }
.menu-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .6); z-index: 50; }
.menu-pop a { color: var(--cream); text-decoration: none; padding: 11px 14px; border-radius: 10px; font-size: 16px; }
.menu-pop a:hover { background: rgba(255, 255, 255, .08); color: var(--cream); }
.menu-pop a[aria-current="true"] { color: var(--accent-2); background: rgba(224, 178, 82, .12); }
.nav-menu { display: none; }
.nav-menu > summary { padding: 0; width: 42px; justify-content: center; }
.nav-menu .menu-pop { top: 100%; inset-inline: 12px; border-radius: 0 0 18px 18px; border-top: 0; padding: 10px; }
.nav-menu .menu-pop a { font-size: 18px; padding: 14px; }
/* The menu folds into the button before its links stop fitting. Russian words are longer, so it folds sooner there. */
@media (max-width: 1180px) {
  .main-nav, .family-link { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 1360px) {
  html[lang="ru"] .main-nav, html[lang="ru"] .family-link { display: none; }
  html[lang="ru"] .nav-menu { display: block; }
}
@media (max-width: 520px) {
  .site-header .wrap { min-height: 60px; gap: 10px; }
  .brand-name { font-size: 23px; }
  .lang-menu .full { display: none; }
  .lang-menu .short { display: inline; }
}

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; background: linear-gradient(180deg, var(--accent-2), var(--accent) 60%); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 20px -8px rgba(224, 178, 82, .7); transition: transform .15s, box-shadow .15s, filter .15s; text-align: center; }
.btn:hover { color: var(--ink); filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.dark { background: var(--ink); color: var(--cream); box-shadow: 0 10px 22px -10px rgba(15, 19, 38, .6); }
.btn.dark:hover { color: var(--cream); background: var(--ink-3); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--field-line); min-height: 46px; font-weight: 500; padding: 0 20px; box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.lbl, .lbl { display: block; font-size: 15px; color: var(--text-mute); margin-bottom: 8px; }
.field { display: flex; flex-direction: column; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=url], input[type=password], select, textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--card); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(224, 178, 82, .45); }
textarea { padding: 12px 16px; resize: vertical; min-height: 0; }
select { padding: 0 12px; }
input.hebrew { font-size: 19px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check b { white-space: nowrap; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.errors { background: #FBE9E6; border: 1px solid #E4B4AC; color: var(--danger); border-radius: 14px; padding: 14px 18px; }
.errors ul { margin: 6px 0 0; padding-inline-start: 20px; }
.notice { background: var(--cream-2); border-radius: 14px; padding: 16px 20px; color: #4A4F63; font-size: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--link); background: rgba(224, 178, 82, .16); border-radius: 14px; padding: 5px 11px 5px 9px; }
.sample-tag { align-self: flex-start; font-size: 12px; border: 1px dashed var(--field-line); color: var(--text-mute); border-radius: 999px; padding: 2px 10px; background: rgba(255, 255, 255, .7); }
.sample-tag.on-dark { background: rgba(15, 19, 38, .6); border-color: rgba(255, 255, 255, .35); color: var(--cream); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.eyebrow { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.eyebrow.dark { color: var(--link); }
:lang(he) .eyebrow, :lang(yi) .eyebrow { letter-spacing: .05em; font-size: 16px; }

/* Hero */
.hero { color: var(--cream); padding: 64px 0 96px; position: relative; isolation: isolate;
  background:
    radial-gradient(60% 70% at 78% 62%, rgba(224, 178, 82, .16), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(86, 98, 170, .28), transparent 70%),
    var(--ink); }
[dir="rtl"] .hero { background:
    radial-gradient(60% 70% at 22% 62%, rgba(224, 178, 82, .16), transparent 70%),
    radial-gradient(40% 50% at 92% 0%, rgba(86, 98, 170, .28), transparent 70%),
    var(--ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.3vw, 74px); line-height: 1.06; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
:lang(he) .hero h1, :lang(yi) .hero h1 { line-height: 1.16; letter-spacing: 0; }
.hero .lead { font-size: 20px; color: var(--ink-soft); max-width: 540px; }
.search { display: flex; flex-direction: column; gap: 10px; max-width: 580px; }
.search label { font-size: 15px; color: var(--ink-soft); }
.search .row { display: flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .06); transition: border-color .15s, box-shadow .15s; }
.search .row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(224, 178, 82, .18); }
.search input { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 0 18px; border: 0; background: transparent; color: var(--cream); border-radius: 999px; }
.search input:focus { box-shadow: none; }
.search input::placeholder { color: var(--ink-mute); }
.search .btn { min-height: 50px; padding: 0 24px; flex: none; }
.search.light { max-width: none; }
.search.light label { color: var(--text-mute); }
.search.light .row { background: var(--card); border-color: var(--field-line); box-shadow: var(--shadow); }
.search.light input { color: var(--ink); }
.search.light input::placeholder { color: #8A8FA3; }
@media (max-width: 480px) {
  .search .row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .search input { min-height: 48px; }
}
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 580px; }
.door { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .04); color: var(--cream); text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.door:hover { color: var(--cream); border-color: var(--accent); background: rgba(224, 178, 82, .08); transform: translateY(-2px); }
.door .ico { color: var(--accent); margin-top: 2px; }
.door > span { display: flex; flex-direction: column; gap: 4px; }
.door b { font-family: var(--font-head); font-weight: 500; font-size: 21px; line-height: 1.2; }
.door span span { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.hero-media { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-media > p { font-size: 15px; color: var(--ink-mute); max-width: 420px; }
.frame { position: relative; margin: 0; aspect-ratio: 5 / 6; max-height: 560px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 8px rgba(255, 255, 255, .03); }
.frame .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame .sample-tag { position: absolute; top: 16px; inset-inline-start: 16px; }
.frame .play { position: absolute; top: 16px; inset-inline-end: 16px; line-height: 0; }
.ticks { position: absolute; inset-inline: 14px; bottom: 14px; margin: 0; padding: 12px 14px; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; background: rgba(15, 19, 38, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; font-size: 14.5px; }
.ticks li { display: flex; align-items: center; gap: 7px; color: var(--cream); line-height: 1.25; }
.ticks .ico { color: var(--accent); }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(-1.5deg); } 35% { transform: scale(.95, 1.07) rotate(2deg); } 65% { transform: scale(1.04, .96) rotate(-.5deg); } }
@media (prefers-reduced-motion: reduce) { .flame { animation: none; } html { scroll-behavior: auto; } .btn, .door, .place-card, .svc { transition: none; } }
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .frame { aspect-ratio: 4 / 5; max-height: 520px; width: 100%; max-width: 460px; margin-inline: auto; }
  .hero .lead { font-size: 18px; }
}

/* Sections */
.section { padding: 88px 0; }
.section.white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.night { background: radial-gradient(50% 60% at 50% 0%, rgba(224, 178, 82, .12), transparent 70%), var(--ink); color: var(--cream); }
.section.night .section-head p { color: var(--ink-soft); }
.section .wrap { display: flex; flex-direction: column; gap: 36px; }
.section h2, .page h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.005em; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head .muted, .section-head p { font-size: 19px; }
@media (max-width: 640px) { .section { padding: 60px 0; } .section .wrap { gap: 28px; } .section-head .muted, .section-head p { font-size: 17px; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

/* Place cards: a picture on top, the name and the starting price below */
.place-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.place-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #CFC6AE; }
.plate { display: block; position: relative; aspect-ratio: 16 / 9; background: linear-gradient(180deg, #0B0F22, #1E2550 70%, #2C2A4B); overflow: hidden; background-size: cover; background-position: center; }
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plate.n1 { background: linear-gradient(180deg, #10112A, #2A2356 70%, #3A2C52); }
.plate.n2 { background: linear-gradient(180deg, #081420, #143449 70%, #23404C); }
.plate.n3 { background: linear-gradient(180deg, #0D1024, #232A5C 70%, #40304A); }
.plate.k-kollel { background: linear-gradient(180deg, #0B0F22, #1A1F40); }
.place-card .body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; flex: 1; }
.place-card .country { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--link); font-weight: 600; }
:lang(he) .place-card .country, :lang(yi) .place-card .country { letter-spacing: .03em; font-size: 14px; }
.place-card .pname { font-family: var(--font-head); font-size: 27px; line-height: 1.15; }
.place-card .who { color: var(--text-mute); font-size: 15.5px; line-height: 1.45; }
.place-card .from { margin-top: auto; padding-top: 14px; font-size: 15.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.place-card .go { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--cream); color: var(--ink); flex: none; transition: background .2s, color .2s; }
.place-card:hover .go { background: var(--accent); }
.place-card .sample-tag { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(15, 19, 38, .6); border-color: rgba(255, 255, 255, .35); color: var(--cream); }
.place-card.is-custom { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.place-card.is-custom:hover { color: var(--cream); }
.place-card.is-custom .country { color: var(--accent); }
.place-card.is-custom .who { color: var(--ink-soft); }
.place-card.is-custom .go { background: var(--accent); }
@media (max-width: 640px) {
  .cards.places { grid-template-columns: 1fr 1fr; gap: 12px; }
  .place-card .body { padding: 12px 14px 14px; }
  .place-card .pname { font-size: 21px; }
  .place-card .who { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .place-card .from { font-size: 14px; padding-top: 10px; }
  .place-card .go { display: none; }
  .place-card .sample-tag { top: 8px; inset-inline-start: 8px; font-size: 11px; }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; inset-inline: 28px; border-top: 1px dashed var(--field-line); }
.steps li { display: flex; flex-direction: column; gap: 8px; position: relative; }
.steps .n { font-family: var(--font-head); font-size: 26px; line-height: 1; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--accent-2); margin-bottom: 10px; box-shadow: 0 0 0 8px var(--card); }
.steps b { font-family: var(--font-head); font-weight: 500; font-size: 24px; line-height: 1.2; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 28px; bottom: 28px; inset-inline: 27px auto; border-top: 0; border-inline-start: 1px dashed var(--field-line); }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; row-gap: 4px; }
  .steps .n { grid-row: span 2; margin: 0; }
  .steps b { align-self: end; font-size: 21px; }
}

/* Services: The Visit leads, the rest follow */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.svc:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #CFC6AE; }
.svc-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.svc .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.svc h3 { font-size: 26px; }
.svc .price { font-size: 21px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc .text { color: var(--text-mute); font-size: 16.5px; }
.svc .chip { margin-top: auto; }
.svc.feature { grid-row: span 2; background: var(--ink); color: var(--cream); border-color: var(--ink); }
.svc.feature:hover { color: var(--cream); }
.svc.feature .plate { aspect-ratio: auto; flex: 1 1 200px; min-height: 200px; }
.svc.feature .svc-body { flex: none; gap: 14px; padding: 30px; }
.svc.feature h3 { font-size: 36px; }
.svc.feature .price { font-size: 30px; color: var(--accent-2); }
.svc.feature .text { color: var(--ink-soft); font-size: 18px; }
.svc.feature .chip, .section.night .chip, .pkg.feature .chip { color: var(--accent-2); background: rgba(224, 178, 82, .16); }
.svc.wide { grid-column: 1 / -1; background: var(--cream-2); border-color: #DDD4BD; box-shadow: none; }
.svc.wide .svc-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.svc.wide .top { flex: 0 0 auto; flex-direction: column; gap: 2px; align-items: flex-start; }
.svc.wide .text { flex: 1 1 320px; }
.svc.wide .chip { margin: 0; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc.feature { grid-column: 1 / -1; grid-row: auto; flex-direction: row; } .svc.feature .plate { flex: 1 1 40%; min-height: 0; } .svc.feature .svc-body { flex: 1 1 60%; } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; gap: 14px; } .svc.feature { flex-direction: column; } .svc.feature .plate { flex: none; aspect-ratio: 16 / 9; } .svc-body, .svc.feature .svc-body { padding: 22px; } .svc h3 { font-size: 24px; } .svc.feature h3 { font-size: 30px; } }

.fine { padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-mute); }
.section.night .fine { border-color: var(--ink-line); color: var(--ink-mute); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; align-items: center; }
.panel { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }

/* Proof: what the family receives */
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: proof; border: 1px solid var(--ink-line); border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.proof-grid li { counter-increment: proof; display: flex; flex-direction: column; gap: 8px; padding: 30px 26px 32px; position: relative; border-inline-start: 1px solid var(--ink-line); }
.proof-grid li:first-child { border-inline-start: 0; }
.proof-grid li::after { content: counter(proof); position: absolute; top: 22px; inset-inline-end: 22px; font-family: var(--font-head); font-size: 15px; color: var(--ink-mute); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink-line); display: flex; align-items: center; justify-content: center; }
.proof-grid .ico { color: var(--accent); margin-bottom: 10px; }
.proof-grid b { font-family: var(--font-head); font-size: 25px; font-weight: 500; line-height: 1.2; }
.proof-grid span { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr; } .proof-grid li { border-inline-start: 0; padding: 22px 20px 24px; } .proof-grid li + li { border-top: 1px solid var(--ink-line); } .proof-grid b { font-size: 21px; } .proof-grid span { font-size: 15px; } .proof-grid li::after { top: 16px; inset-inline-end: 14px; } }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.person-slot { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--ink-line); border-radius: 16px; color: var(--ink-mute); font-size: 15px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 38%, var(--ink-line) 0 26%, transparent 27%), radial-gradient(circle at 50% 108%, var(--ink-line) 0 46%, transparent 47%), var(--ink-3); }

/* Packages */
.pkgs { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.pkg { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pkg .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pkg h3 { font-size: 26px; }
.pkg .price { font-size: 22px; font-weight: 600; white-space: nowrap; }
.pkg .text { color: var(--text-mute); font-size: 16.5px; }
.pkg .btn { align-self: flex-start; margin-top: auto; }
.pkg.feature { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pkg.feature .text { color: var(--ink-soft); }
.pkg.feature .price { color: var(--accent-2); }

/* Family calendar sample */
.cal-sample { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lift); }
.cal-row { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); border-inline-start: 4px solid var(--accent); }
.cal-row > span { display: flex; flex-direction: column; gap: 2px; }
.cal-row .when { text-align: end; }
.cal-row .hname, .person .hname { font-family: 'Frank Ruhl Libre', serif; font-size: 24px; font-weight: 500; line-height: 1.2; }
.cal-row .muted { font-size: 15px; }
.cal-notes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--text-mute); }
.cal-notes li { display: flex; align-items: center; gap: 6px; }
.cal-notes .ico { color: var(--ok); }

.band { background: radial-gradient(50% 120% at 85% 50%, rgba(224, 178, 82, .14), transparent 70%), var(--ink); color: var(--cream); padding: 72px 0; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.band h2 { font-size: clamp(30px, 3.6vw, 42px); }
.band p { color: var(--ink-soft); max-width: 640px; margin-top: 10px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--ink-soft); padding: 56px 0 32px; font-size: 16px; border-top: 1px solid var(--ink-line); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); }
.site-footer b { color: var(--cream); display: block; margin-bottom: 10px; font-weight: 500; }
.site-footer .fine { border-color: var(--ink-line); color: var(--ink-mute); margin-top: 36px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

/* Order */
.order-head .wrap { flex-wrap: wrap; }
.progress { display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 0; list-style: none; font-size: 15px; color: var(--ink-mute); }
.progress li { display: flex; align-items: center; gap: 8px; }
.progress li + li::before { content: ""; width: 28px; border-top: 1px solid var(--ink-line); margin-inline-end: 2px; }
.progress .dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink-line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.progress .on { color: var(--cream); font-weight: 500; }
.progress .on .dot { background: var(--accent); border-color: var(--accent); color: var(--ink); }
@media (max-width: 720px) { .order-head .wrap { padding-top: 8px; padding-bottom: 10px; gap: 8px 12px; } .order-head .progress { order: 3; flex: 1 0 100%; justify-content: center; margin: 0; } .progress li + li::before { width: 16px; } .progress { font-size: 14px; } }
@media (max-width: 400px) { .progress .lbl-step { display: none; } .progress .on .lbl-step { display: inline; } }
.order-main { padding-top: 32px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.order-form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: box; }
.order-hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 180px; display: flex; align-items: flex-end; color: var(--cream); background: var(--ink); box-shadow: var(--shadow-lift); }
.order-hero .plate { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(62%, 460px); aspect-ratio: auto; -webkit-mask-image: linear-gradient(to left, #000 55%, transparent); mask-image: linear-gradient(to left, #000 55%, transparent); }
[dir="rtl"] .order-hero .plate { -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent); }
.order-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15, 19, 38, .7)); pointer-events: none; }
.order-hero .over { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 62px 24px 22px; }
.order-hero h1 { font-size: clamp(32px, 4.5vw, 44px); }
.order-hero .who { color: var(--ink-soft); font-size: 16px; }
.order-hero .eyebrow { font-size: 12.5px; color: var(--accent-2); }
.order-hero .sample-tag { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; }
.order-hero .change { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; color: var(--cream); font-size: 14.5px; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(15, 19, 38, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.order-hero .change:hover { border-color: var(--accent); color: var(--accent-2); }
.box { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.box h2 { font-family: var(--font-head); font-size: 24px; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.order-form > .box { counter-increment: box; }
.order-form.no-count > .box > h2::before { display: none; }
.order-form > .box > h2::before { content: counter(box); font-family: var(--font-body); font-size: 14px; font-weight: 600; width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2); color: var(--link); display: inline-flex; align-items: center; justify-content: center; flex: none; }
@media (max-width: 640px) { .box { padding: 18px 16px; gap: 12px; } .box h2 { font-size: 21px; } .order-main { padding-top: 20px; gap: 18px; } .order-form { gap: 14px; } }
.place-box { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.opt:hover { border-color: var(--field-line); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--cream); box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(224, 178, 82, .35); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt .t { display: contents; }
.opt .t b { font-weight: 600; font-size: 18px; grid-column: 1; grid-row: 1; }
.opt .p { grid-column: 2; grid-row: 1; font-size: 19px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt .t > span { grid-column: 1 / -1; }
.opt .t > span:not(.chip) { font-size: 15px; color: var(--text-mute); line-height: 1.45; }
.opt .t .chip { margin-top: 4px; justify-self: start; }
.opt:has(input[type=checkbox]) .t b { display: flex; align-items: center; gap: 10px; }
.opt:has(input[type=checkbox]) .t b::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--field-line); background: var(--card); }
.opt:has(input[type=checkbox]:checked) .t b::before { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5.5 11.5l3.7 3.7L16.5 7.5' fill='none' stroke='%23F3D48B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.opt .was { color: var(--text-mute); font-weight: 400; font-size: 15px; margin-inline-end: 6px; }
.opt.bundle { border-color: #DCC88F; background: linear-gradient(180deg, rgba(224, 178, 82, .10), rgba(224, 178, 82, 0) 70%), var(--card); }
.opt:has(input:disabled) { opacity: .5; cursor: default; }
.notice-line { font-weight: 500; font-size: 15px; color: var(--link); margin-bottom: 10px; }
.pick-group { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.pick-head { display: flex; flex-direction: column; gap: 4px; }
.pick-head h2 { font-size: clamp(26px, 3vw, 34px); }
.region-head { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--link); display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.region-head .chip { text-transform: none; letter-spacing: 0; }
.summary .line.off { color: var(--accent-2); }
.opt-group-title { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--link); font-weight: 600; margin-top: 8px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--cream-2); border-radius: 16px; flex-wrap: wrap; align-self: flex-start; max-width: 100%; }
.seg label { cursor: pointer; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; min-height: 42px; align-items: center; justify-content: center; text-align: center; padding: 4px 16px; border-radius: 12px; font-size: 16px; line-height: 1.25; }
.seg input:checked + span { background: var(--ink); color: var(--cream); font-weight: 500; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }
.name-row { display: flex; gap: 8px; align-items: center; }
.name-row input { flex: 1; }
.summary { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: radial-gradient(80% 50% at 50% 0%, rgba(224, 178, 82, .14), transparent 70%), var(--ink); color: var(--cream); border-radius: 22px; position: sticky; top: 88px; box-shadow: var(--shadow-lift); }
.summary h2 { font-size: 26px; }
.summary .line { display: flex; justify-content: space-between; gap: 16px; }
.summary .sub { color: var(--ink-soft); font-size: 15px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; border-top: 1px solid var(--ink-line); }
.summary .total b:last-child { font-size: 34px; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.summary .btn { min-height: 58px; font-size: 18px; }
.summary .errors { font-size: 15px; padding: 12px 14px; }
.summary .errors ul { padding-inline-start: 18px; }
.summary p { font-size: 15px; color: var(--ink-soft); }
.summary .fineprint { font-size: 13.5px; color: var(--ink-mute); }
@media (max-width: 900px) { .summary { position: static; padding: 22px; } }
/* On phones the total and the pay button stay at the bottom of the screen */
.paybar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(15, 19, 38, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--cream); border-top: 1px solid var(--ink-line); transition: transform .25s; }
.paybar.off { transform: translateY(110%); }
.paybar .sum { display: flex; flex-direction: column; line-height: 1.2; }
.paybar .sum span { font-size: 13px; color: var(--ink-mute); }
.paybar .sum b { font-size: 22px; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.paybar .btn { min-height: 48px; padding: 0 22px; flex: 0 1 auto; }
@media (max-width: 900px) { .paybar { display: flex; } }

/* Calendar */
.cal { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--card); max-width: 560px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal-head .titles { text-align: center; display: flex; flex-direction: column; line-height: 1.3; }
.cal-head .titles b { font-family: var(--font-head); font-size: 21px; font-weight: 500; }
.cal-head .titles span { font-size: 14.5px; color: var(--link); }
.cal-nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--field-line); background: var(--card); font: inherit; font-size: 20px; cursor: pointer; }
.cal-nav:hover { border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .wd { text-align: center; font-size: 12.5px; color: var(--text-mute); padding: 4px 0; overflow: hidden; }
.cal-day { min-height: 50px; border-radius: 12px; border: 1px solid transparent; background: var(--cream); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: var(--ink); padding: 2px; transition: border-color .12s, background .12s; }
.cal-day .c { font-size: 16.5px; font-weight: 500; line-height: 1.2; }
.cal-day .h { font-size: 12.5px; color: var(--link); line-height: 1.2; font-family: 'Frank Ruhl Libre', serif; }
.cal-day:hover:not([disabled]) { border-color: var(--ink); }
.cal-day[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 0 0 0 3px rgba(224, 178, 82, .5); }
.cal-day[aria-pressed="true"] .h { color: var(--accent-2); }
.cal-day[disabled] { background: transparent; color: #A2A5B2; cursor: not-allowed; }
.cal-day[disabled] .h { color: #B5AD98; }
.cal-day.today { border-color: var(--accent); }
.cal-day.empty { visibility: hidden; }
.cal-chosen { margin-top: 12px; font-weight: 500; padding: 10px 14px; background: var(--cream); border-radius: 12px; font-size: 16px; }
.yz-result { padding: 14px 18px; background: var(--cream); border-radius: 12px; border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); }
@media (max-width: 420px) { .cal-grid .wd { font-size: 11px; letter-spacing: -.02em; } .cal { padding: 10px; } .cal-day { min-height: 46px; border-radius: 10px; } .cal-grid { gap: 3px; } }

/* Simple pages */
.page { padding: 56px 0 88px; }
.page .wrap, .wrap.page { display: flex; flex-direction: column; gap: 24px; }
.narrow { max-width: 720px; }
.done-box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px; display: flex; flex-direction: column; gap: 16px; max-width: 720px; box-shadow: var(--shadow); }
.done-box h1 { font-size: clamp(30px, 4vw, 40px); }
.done-box.ok { border-top: 4px solid var(--accent); }
.done-mark { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--accent-2); display: inline-flex; align-items: center; justify-content: center; }
.guide-name { font-family: 'Frank Ruhl Libre', serif; font-size: 30px; line-height: 1.2; padding-inline-start: 14px; border-inline-start: 4px solid var(--accent); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.person .next { background: var(--cream); border-radius: 12px; padding: 10px 14px; font-size: 16px; border-inline-start: 4px solid var(--accent); }
.person .row-actions { margin-top: 4px; align-items: center; }
.person .row-actions .btn { min-height: 46px; padding: 0 20px; }
.btn.ghost.quiet { border-color: transparent; background: transparent; color: var(--text-mute); padding: 0 10px; }
.btn.ghost.quiet:hover { color: var(--danger); border-color: transparent; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tp-main { padding-top: 56px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.tp-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tp-text .eyebrow { color: var(--link); }
.tp-text h1 { font-size: 46px; line-height: 1.1; }
.tp-form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .tp-form { padding: 20px; } .tp-text h1 { font-size: 36px; } .page { padding: 36px 0 64px; } .done-box { padding: 24px; } }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; font-size: 15px; color: var(--text-mute); }
.person { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.person .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* Office */
.office { font-size: 16px; }
.office table { width: 100%; border-collapse: collapse; background: var(--card); }
.office th, .office td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.office th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); }
.office .scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.pill { display: inline-block; font-size: 13px; border-radius: 999px; padding: 2px 10px; background: var(--cream-2); }
.pill.paid, .pill.done, .pill.ready { background: #DCEFE1; color: var(--ok); }
.pill.refunded, .pill.cancelled, .pill.flag { background: #FBE9E6; color: var(--danger); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.kv dt { color: var(--text-mute); }
.kv dd { margin: 0; }
.office-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.office-nav a { color: var(--cream); text-decoration: none; padding: 8px 0; }
.copy-box { font-family: ui-monospace, monospace; font-size: 14px; word-break: break-all; background: var(--cream-2); padding: 10px 12px; border-radius: 8px; }

/* Calendar: regular or Hebrew months */
.cal-mode { display: flex; gap: 4px; padding: 4px; background: var(--cream-2); border-radius: 14px; margin-bottom: 12px; }
.cal-mode button { flex: 1 1 0; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); cursor: pointer; padding: 4px 10px; }
.cal-mode button[aria-pressed="true"] { background: var(--ink); color: var(--cream); font-weight: 500; }
.cal-mode button:focus-visible { outline: 3px solid var(--accent); }
/* Family calendar: the date of passing beside the box */
.remember-passing { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.remember-passing[hidden] { display: none; }

/* Terms, privacy and refunds */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6; }
.legal h1 { margin-bottom: 0; }
.legal ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal p { margin: 0; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.site-footer .fine a { color: inherit; }

/* Date fields never push a card wider than the screen (iPhone) */
input[type=date] { min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; text-align: start; }
input[type=date]::-webkit-date-and-time-value { text-align: start; }
.field { min-width: 0; }
/* Hebrew date of passing: day, month, year */
.heb-date { border: 0; padding: 0; margin: 0; min-width: 0; }
.heb-date legend { font-size: 15px; color: var(--text-mute); padding: 0; margin-bottom: 8px; }
.heb-date-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) minmax(0, 1.2fr); gap: 10px; }
.heb-date-row select { width: 100%; min-width: 0; }

/* ---------- Yahrzeits of the tzaddikim: the band on the home page, the calendar, the page to leave a name ---------- */
.yz-strip { padding: 40px 0 0; }
.yz-strip + .section { padding-top: 64px; }
.yz-card { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 22px; padding: 28px 32px; box-shadow: var(--shadow); }
.yz-card .info { display: flex; flex-direction: column; gap: 8px; flex: 1 1 440px; min-width: 0; }
.yz-card h2 { font-size: clamp(30px, 3.6vw, 42px); }
.yz-meta { font-size: 17px; font-weight: 500; }
.yz-card .muted { font-size: 17px; max-width: 640px; }
.yz-card .act { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.yz-all { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 500; text-decoration: none; }
.yz-all:hover { color: var(--link-hover); text-decoration: underline; }
[dir=rtl] .yz-all .ico, [dir=rtl] .go-chip .ico { transform: scaleX(-1); }
.yz-list { display: flex; flex-direction: column; gap: 12px; }
.yz-row { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.yz-row:hover { border-color: var(--field-line); box-shadow: var(--shadow); color: inherit; }
.yz-row.is-open, .yz-row.is-open:hover { border-inline-start-color: var(--accent); }
.yz-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yz-row .date b { font-size: 19px; font-weight: 600; }
.yz-row .muted { font-size: 15px; }
.yz-row .who { font-family: var(--font-head); font-weight: 500; font-size: 24px; line-height: 1.2; }
.yz-row .end { text-align: end; align-items: flex-end; max-width: 280px; }
.go-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); background: linear-gradient(180deg, var(--accent-2), var(--accent) 60%); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
/* The top of a yahrzeit page carries more words than a place page, so the picture stays to the side and the words stay clear. */
.yz-hero .plate { width: min(48%, 420px); }
.yz-hero::after { background: linear-gradient(90deg, rgba(15, 19, 38, .92) 30%, rgba(15, 19, 38, .35) 75%, transparent); }
[dir="rtl"] .yz-hero::after { background: linear-gradient(270deg, rgba(15, 19, 38, .92) 30%, rgba(15, 19, 38, .35) 75%, transparent); }
.yz-hero .over { padding-top: 58px; }
.order-form > .box.yz-plain { counter-increment: none; }
.order-form > .box.yz-plain > h2::before { display: none; }
.yz-about p { margin: 0; }
.yz-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.yz-points li { display: flex; gap: 10px; align-items: flex-start; }
.yz-points .ico { color: var(--link); flex: none; margin-top: 5px; }
.yz-order textarea.hebrew { font-size: 19px; line-height: 1.5; }
.yz-order .t-fam { display: none; }
.yz-order:has(input[name=tier][value=yahrzeit_family]:checked) .t-fam { display: inline; }
.yz-order:has(input[name=tier][value=yahrzeit_family]:checked) .t-one { display: none; }
.yz-names { margin: 0; padding-inline-start: 28px; display: flex; flex-direction: column; gap: 4px; }
.yz-names .hname { font-family: 'Frank Ruhl Libre', serif; font-size: 22px; }
@media (max-width: 760px) {
  .yz-strip { padding-top: 24px; }
  .yz-strip + .section { padding-top: 44px; }
  .yz-card { padding: 22px 20px; }
  .yz-card .act { align-items: stretch; width: 100%; }
  .yz-all { justify-content: center; }
  .yz-row { grid-template-columns: 1fr; padding: 16px 18px; }
  .yz-row .end { text-align: start; align-items: flex-start; max-width: none; }
  .yz-hero .plate { opacity: .25; }
}

/* Sayings and highlights about a tzaddik */
.yz-read { max-width: 900px; }
.yz-quote { margin: 0; padding: 4px 20px; border-inline-start: 4px solid var(--accent); display: flex; flex-direction: column; gap: 6px; }
.yz-quote + .yz-quote { margin-top: 10px; }
.yz-quote blockquote { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.yz-quote p { margin: 0; }
.yz-quote .q { font-family: 'Frank Ruhl Libre', serif; font-size: 26px; line-height: 1.4; font-weight: 500; }
[dir="ltr"] .yz-quote .q { text-align: left; }
.yz-quote .tr { font-size: 18px; }
.yz-quote figcaption { font-size: 14.5px; color: var(--text-mute); }
.yz-cta p { margin: 0; }
@media (max-width: 640px) { .yz-quote .q { font-size: 22px; } .yz-quote { padding-inline: 14px; } }
