/* convert-site.css — public site, auth and error views converted to rl markup.
   Only styles for classes that rl/css does not already define (or that bridge.css overrides). */

/* bridge.css turns every .row into a Bootstrap grid row (children width:100%). rl's .row is a
   simple flex row with gap. Restore rl behaviour for rows that carry no .col-* children. */
#main .row:not(:has(> [class*="col"])),
.auth .row:not(:has(> [class*="col"])),
.error-page .row:not(:has(> [class*="col"])) { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-inline: 0; }
#main .row:not(:has(> [class*="col"])) > *,
.auth .row:not(:has(> [class*="col"])) > *,
.error-page .row:not(:has(> [class*="col"])) > * { width: auto; max-width: none; flex: 0 0 auto; padding-inline: 0; margin-top: 0; }
#main .row > .btn, .auth .row > .btn, .error-page .row > .btn { padding-inline: 26px; }
#main .row > .btn-lg, .auth .row > .btn-lg, .error-page .row > .btn-lg { padding-inline: 34px; }
#main .row > .btn-sm, .auth .row > .btn-sm, .error-page .row > .btn-sm { padding-inline: 16px; }
#main .row > .btn-ghost, .auth .row > .btn-ghost { padding-inline: 14px; }
.row.between { justify-content: space-between; }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.stack { display: grid; gap: 10px; }
.serif { font-family: var(--font-display); }

/* notices and key/value lists live in panel.css, which the public surface does not load */
#main .notice, .auth .notice { border-radius: 12px; padding: 14px 18px; font-size: .9rem; display: flex; gap: 12px; align-items: flex-start; background: var(--ivory); border: 1px solid var(--line-soft); color: var(--ink-soft); }
#main .notice .ico, .auth .notice .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice-gold { background: var(--gold-soft); border-color: #eee0bd; color: var(--gold-deep); }
.notice-success { background: #e1f0e8; border-color: #c6e2d3; color: var(--success); }
.notice-warning { background: #fbf1dc; border-color: #efdcb4; color: #8a6116; }
.notice-danger { background: #f8e4e1; border-color: #efc9c3; color: var(--danger, #a4473b); }
#main .kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: .9rem; }
#main .kv dt { color: var(--muted); }
#main .kv dd { margin: 0; }
.kv-stack { grid-template-columns: 1fr !important; gap: 4px 0 !important; }
.kv-stack dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.kv-stack dt:first-child { margin-top: 0; }
.kv-stack dt .ico { width: 15px; height: 15px; }
.kv-stack dd { color: var(--ink); font-size: .95rem; }
.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 22px 0; }

/* page-head extras */
.page-head .crumbs { margin-bottom: 14px; font-size: .88rem; }
.page-head .crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.page-head .crumbs .ico { width: 14px; height: 14px; }
.page-head .filters { margin-top: 22px; }
.page-head.center .filters { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--ink-soft); }
.hero-points li, .hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .ico { width: 17px; height: 17px; color: var(--gold-deep); }
.page-head .hero-points { justify-content: center; }
.page-head .hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.link-arrow .ico { width: 14px; height: 14px; }

/* site-split partial */
.site-split { align-items: center; margin-bottom: 70px; }
.site-split:last-child { margin-bottom: 0; }
@media (min-width: 901px) { .site-split.reverse .site-split-media { order: 2; } }
.site-split .ticks { margin-bottom: 20px; }

/* about */
.about-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-self: center; }
.about-pair .frame:last-child { margin-top: 40px; }
@media (max-width: 600px) { .about-pair { grid-template-columns: 1fr; } .about-pair .frame:last-child { margin-top: 0; } }

/* templates page */
.tpl-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.tpl:hover .tpl-photo img { transform: scale(1.04); }
.tpl-preview .mock { position: relative; overflow: hidden; }
/* the showcase family's name sits on a soft shade at the top of the photograph */
.tpl-preview .mock::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(22, 19, 14, .58), rgba(22, 19, 14, 0) 58%); }
.mock-txt { position: relative; z-index: 2; color: #fff; }
.mock-txt b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.mock-txt i { display: block; height: 4px; width: 42%; margin-top: 7px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.mock-txt i + i { width: 26%; margin-top: 5px; }
a.tpl-preview { display: block; color: inherit; text-decoration: none; }
a.tpl-preview:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
/* card: description on its own line, then colours left and the buttons right (wrapping, never clipped) */
.tpl { display: flex; flex-direction: column; }
.tpl-foot { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 0 22px 22px; margin-top: auto; }
.tpl-foot > p { margin: 0; line-height: 1.55; }
.tpl-foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; }
.tpl-foot .tpl-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.tpl-actions .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
/* /templates: the grids fit the sets — four website designs across, five invitations across — on wide screens */
.templates-sites { grid-template-columns: repeat(4, 1fr); }
.templates-invites { grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1180px) { .templates-sites { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .templates-invites { grid-template-columns: repeat(2, 1fr); } }
.templates-invites .tpl-preview { aspect-ratio: 3 / 2; padding: 0; }
.templates-invites .tpl-preview .mock { height: 100%; }
.templates-invites .tpl-preview .mock::before { background: linear-gradient(180deg, rgba(22, 19, 14, 0) 38%, rgba(22, 19, 14, .72)); }
.templates-invites .mock-txt { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.templates-invites .mock-txt small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82); margin-bottom: 4px; }
.templates-invites .mock-txt b { font-size: 1.45rem; }
.templates-invites .inv-3d { z-index: 2; top: 14px; left: 14px; }
.tpl-open { position: absolute; z-index: 2; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .72rem; font-weight: 600; opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.tpl-open .ico { width: 14px; height: 14px; }
.tpl-inv:hover .tpl-open, .tpl-inv:focus-within .tpl-open { opacity: 1; transform: none; }
.templates-invites .tpl-body { padding: 18px 22px 0; }
.templates-invites .tpl-body h4 { font-size: 1.35rem; }
.templates-invites .tpl-foot { padding: 12px 22px 22px; }
@media (max-width: 600px) { .templates-sites, .templates-invites { grid-template-columns: 1fr; } .templates-invites .tpl-preview { aspect-ratio: 4 / 3; } }
.tpl2-swatches { display: flex; gap: 6px; }
.tpl2-swatches span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); display: inline-block; }

/* pricing comparison */
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.compare-table thead th { background: var(--ivory); font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.compare-table td + td, .compare-table th + th { text-align: center; }
.compare-table .compare-group td { background: var(--ivory); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); text-align: left; font-weight: 600; }
.ico.tick { width: 18px; height: 18px; color: #fff; background: var(--success); border-radius: 50%; padding: 3px; }
.compare-table .muted { color: var(--line-strong, #c9c2b4); }

/* destinations search */
.dest-search { padding: 24px; margin-top: 26px; text-align: left; }
.dest-search-grid { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; }
.dest-search .filters { margin: 14px 0 0; }
@media (max-width: 900px) { .dest-search-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dest-search-grid { grid-template-columns: 1fr; } }

/* events (public page + personal RSVP) */
.event-facts { font-size: .95rem; }
.event-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
.timeline { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--line-soft); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gold); }
.timeline li.timeline-day { padding-bottom: 8px; }
.timeline li.timeline-day::before { background: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.timeline .time { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.timeline h4 { margin: 2px 0 2px; font-size: 1.15rem; }
.timeline .loc { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.timeline .loc .ico { width: 14px; height: 14px; }
.timeline p { margin: 6px 0 0; font-size: .92rem; color: var(--ink-soft); }
.sticky-aside { position: sticky; top: 90px; }
.rsvp-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rsvp-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rsvp-option label { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 10px; border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--ink-soft); transition: border-color .2s, background .2s; }
.rsvp-option label .ico { width: 22px; height: 22px; color: var(--gold-deep); }
.rsvp-option input:checked + label { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.rsvp-option input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 560px) { .rsvp-options { grid-template-columns: 1fr; } }
.contact-form .field + .field { margin-top: 0; }

/* join (auth layout) and error pages */
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.join-steps div { background: var(--ivory); border-radius: 12px; padding: 14px; font-size: .82rem; color: var(--ink-soft); }
.join-steps div b { display: block; color: var(--gold-deep); font-family: var(--font-display); font-size: 1.3rem; }
@media (max-width: 600px) { .join-steps { grid-template-columns: 1fr; } }
.error-page.error-inline { min-height: 0; padding: 20px 0; }
.error-page .code .ico { width: 1em; height: 1em; }
.error-page h2 { margin: 10px 0 8px; }
.error-page .lead { margin-bottom: 24px; }
.error-detail { text-align: left; font-size: .78rem; margin-top: 24px; padding: 14px; background: var(--ivory); border: 1px solid var(--line-soft); border-radius: 12px; overflow: auto; max-height: 50vh; }

/* rl's .narrow centres; inside a left-aligned page-head the lead should hug the heading */
.page-head:not(.center) .lead.narrow { margin-inline: 0; max-width: 760px; width: auto; }
.cta-pro .row { flex: 0 0 auto; }
.frame.wide { margin-bottom: 30px; }
.site-split .frame img, .page-head .split .frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* home hero pins and arcs — positions as classes because CSP blocks inline style */
.turntable .spin:nth-of-type(1) { left: 26.93%; top: 29.39%; }
.turntable .spin:nth-of-type(2) { left: 55.68%; top: 24.83%; }
.turntable .spin:nth-of-type(3) { left: 81.35%; top: 34.05%; }
.turntable .spin:nth-of-type(4) { left: 73.49%; top: 49.37%; }
.turntable .spin:nth-of-type(5) { left: 34.08%; top: 57.93%; }
.turntable .spin:nth-of-type(6) { left: 81.49%; top: 66.39%; }
.arcs .arc:nth-of-type(1) { animation-delay: -0s; }
.arcs .arc:nth-of-type(2) { animation-delay: -1.3s; }
.arcs .arc:nth-of-type(3) { animation-delay: -2.6s; }
.arcs .arc:nth-of-type(4) { animation-delay: -3.9s; }
.arcs .arc:nth-of-type(5) { animation-delay: -5.2s; }
.arcs .arc:nth-of-type(6) { animation-delay: -6.5s; }
.arcs .arc:nth-of-type(7) { animation-delay: -7.8s; }

/* ---- utilities replacing inline style="" (the app's CSP has no 'unsafe-inline' for styles) ---- */
.gold-deep { color: var(--gold-deep); }
.pb-40 { padding-bottom: 40px; } .pb-80 { padding-bottom: 80px; } .pb-90 { padding-bottom: 90px; }
.ml-0 { margin-left: 0 !important; } .mt-10 { margin-top: 10px; } .mb-14 { margin-bottom: 14px; } .mb-6 { margin-bottom: 6px; } .m-0 { margin: 0; }
.hp { position: absolute; left: -9999px; }
.plain-text { text-transform: none; letter-spacing: 0; }
.scroll-x { overflow-x: auto; }
.plain-list { list-style: none; padding: 0; }
.how-steps.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .how-steps.cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .how-steps.cols-5 { grid-template-columns: 1fr; } }
.price-xl { font-size: 2.4rem; }
.price-unit { font-size: .9rem; font-family: var(--font-body); }
.tagline { font-size: 1.15rem; margin: 0 0 6px; }
.wrap-end { flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.align-start { align-items: start; } .align-center { align-items: center; }
.finder.finder-aisle { background-image: linear-gradient(90deg, rgba(20, 30, 27, .94) 0%, rgba(20, 30, 27, .72) 50%, rgba(20, 30, 27, .5) 100%), url(../rl/img/photos/wed-aisle-bg.webp); }
/* template accents by slug (home .tpl2 and /templates .tpl-preview) */
.ac-heirloom { --ac: #d3b86e; } .ac-meridian { --ac: #2f5d8a; } .ac-vows { --ac: #c4584f; } .ac-regalia { --ac: #6b2737; } .ac-gathering { --ac: #1f3a34; }
.ac-crest { --ac: #0f4a43; } .ac-aangan { --ac: #a3472a; } .ac-saffron { --ac: #b5651d; }
.ac-wedding-3d { --ac: #8a6a3b; } .ac-birthday-3d { --ac: #b0476a; } .ac-anniversary-3d { --ac: #6b2737; } .ac-ceremony-3d { --ac: #9a6b14; } .ac-gettogether-3d { --ac: #2f5d8a; }
.ac-atelier { --ac: #1b1a17; } .ac-evergreen { --ac: #1f6b4a; } .ac-lumiere { --ac: #9a6b14; } .ac-nocturne { --ac: #2f2a44; }
.tpl-preview[class*="ac-"] { background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 14%, #fff), var(--sand)); }
.tpl2-swatches .sw-ac { background: var(--ac); } .tpl2-swatches .sw-ink { background: #1b1a17; } .tpl2-swatches .sw-paper { background: #f6f1e7; }
.tpl2-swatches .sw { display: inline-block; border-radius: 50%; }
/* home demo tree avatars */
.av-8f6f3a { background: #95772f; } .av-b8955a { background: #d3b86e; } .av-1f3a34 { background: #1f3a34; } .av-2f5d8a { background: #2f5d8a; }
.av-c4584f { background: #c4584f; } .av-4f7a6c { background: #4f7a6c; } .av-6c5b9c { background: #6c5b9c; }
/* home: website and invitation template groups */
.tpl-group-title { display: flex; align-items: baseline; gap: 14px; font-size: 1.35rem; margin: 8px 0 20px; }
.tpl-group-title small { font-family: var(--font-body); font-size: .86rem; font-weight: 400; color: var(--muted); }
.tpl-group-title::after { content: ""; flex: 1; border-top: 1px solid var(--line-soft); transform: translateY(-4px); }
@media (max-width: 620px) { .tpl-group-title { flex-wrap: wrap; gap: 4px 12px; } .tpl-group-title::after { display: none; } }
/* home templates: a narrower section, compact website cards */
#examples > .container { max-width: 1120px; }
#examples .tpl-grid { gap: 22px; }
#examples .tpl2-win { padding: 14px 14px 0; }
#examples .tpl2-hero { aspect-ratio: 16 / 9; }
#examples .tpl2-body { padding: 14px 18px 16px; gap: 6px; }
#examples .tpl2-body > p { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#examples .tpl2-meta { display: none; }
.tpl-group-head { display: flex; align-items: baseline; gap: 18px; margin-top: 52px; }
.tpl-group-head .tpl-group-title { flex: 1; margin-top: 0; }
.tpl-group-head > .link { flex: none; font-size: .9rem; }
/* home: invitation designs as one row of portrait tiles */
.inv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.inv-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow-xs); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.inv-tile:hover, .inv-tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.inv-tile figure { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: color-mix(in srgb, var(--ac, var(--gold)) 20%, #fff); }
.inv-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.inv-tile:hover img { transform: scale(1.05); }
.inv-tile figcaption { position: absolute; inset: auto 0 0; padding: 44px 18px 16px; display: flex; flex-direction: column; gap: 2px; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(12, 12, 14, .78)); }
.inv-tile figcaption small { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.inv-tile figcaption b { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.15; }
.inv-3d { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .64rem; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; }
.inv-body { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex: 1; padding: 14px 18px 16px; }
.inv-body p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inv-go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ac); white-space: nowrap; }
.inv-go .ico { width: 15px; height: 15px; transition: transform .25s; }
.inv-tile:hover .inv-go .ico { transform: translateX(3px); }
@media (max-width: 1000px) { .inv-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 42%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; } .inv-tile { scroll-snap-align: start; } }
@media (max-width: 620px) { .inv-row { grid-auto-columns: 78%; } .inv-body { flex-direction: column; align-items: flex-start; gap: 8px; } .tpl-group-head { flex-wrap: wrap; } }
.tpl-foot .tpl-actions { display: inline-flex; align-items: center; gap: 14px; }
/* footer social profiles */
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line, #e2dccf); color: inherit; }
.footer-social a:hover { border-color: currentColor; }
