/* Slideshow.Memorial — the projection room.
   Ivory paper, deep ink, sepia umber, brass. Sibling of Guestbook & ObitWriter. */

:root {
  --bg: #f8f5ee;
  --surface: #fffdf8;
  --ink: #29251c;
  --ink-soft: #6f6a5c;
  --line: #e6dfd0;
  --umber: #75563a;
  --umber-dark: #5c422c;
  --brass: #a5854f;
  --brass-soft: #f1e8d3;
  --danger: #9c4a3c;
  --danger-soft: #f7e9e6;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
body.bare main { max-width: none; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.1rem; margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 32px 0 12px; }
h3 { font-size: 1.15rem; margin: 20px 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--umber); }

/* Nav */
.appnav { display: flex; align-items: center; gap: 28px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { color: var(--brass); }
.appnav .links { display: flex; gap: 4px; flex-wrap: wrap; }
.appnav .links a { text-decoration: none; color: var(--ink-soft); padding: 6px 12px; border-radius: 8px; font-size: 0.95rem; }
.appnav .links a:hover { background: var(--bg); color: var(--ink); }
.appnav .links a.active { background: var(--brass-soft); color: var(--ink); font-weight: 600; }
.navright { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.username { color: var(--ink-soft); font-size: 0.9rem; }
a.quiet { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
a.quiet:hover { color: var(--ink); }

/* Buttons & forms */
.btn { display: inline-block; background: var(--umber); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 1rem; font-family: var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--umber-dark); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; }
.btn.big { padding: 14px 26px; font-size: 1.08rem; }
.btn.secondary { background: transparent; color: var(--umber); border: 1px solid var(--umber); }
.btn.secondary:hover { background: var(--brass-soft); }
.btn.gold { background: var(--brass); }
.btn.gold:hover { background: #8d713f; }
.btn.danger { background: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: default; }
button.linklike { background: none; border: none; color: var(--umber); cursor: pointer; font-size: 0.85rem; padding: 2px 4px; text-decoration: underline; }
button.linklike.danger { color: var(--danger); }

form.stack label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 0.92rem; }
label .req { color: var(--umber); font-weight: 400; font-size: 0.8rem; }
label .opt { color: var(--ink-soft); font-weight: 400; font-size: 0.8rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url],
input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: var(--sans); background: var(--surface); color: var(--ink);
}
input[type=file] { font-size: 0.95rem; }
.file-inline { max-width: 220px; }
.form-hint { color: var(--ink-soft); font-size: 0.85rem; margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; margin-top: 14px; }
label.check input { width: auto; }

/* Cards & layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card.narrow { max-width: 480px; margin: 40px auto; }
.card.narrow-wide { max-width: 680px; margin: 0 auto; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }
.center { text-align: center; }
.subtle { color: var(--ink-soft); font-size: 0.95rem; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.pagehead h1 { margin-bottom: 2px; }
.pagehead.tight { margin: 0 0 10px; align-items: baseline; }
.pagehead-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-value { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.stat-label { color: var(--ink-soft); font-size: 0.88rem; margin-top: 2px; }
.stat-hint { color: var(--ink-soft); font-size: 0.78rem; margin-top: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 600; }
tr:last-child td { border-bottom: none; }
a.rowlink { font-weight: 600; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.02rem; }
a.rowlink:hover { color: var(--umber); }

/* Badges, notices */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.badge-published { background: #ece4d3; color: var(--umber-dark); }
.badge-draft { background: #eeeae2; color: var(--ink-soft); }
.flash { max-width: 1120px; margin: 16px auto 0; padding: 12px 18px; background: var(--danger-soft); border: 1px solid #e0c1ba; border-radius: 8px; color: var(--danger); }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 0.94rem; }
.notice.welcome { background: #efe9dc; border: 1px solid #d9cbb2; color: var(--umber-dark); }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-mini { padding: 28px; text-align: center; color: var(--ink-soft); }
.inline-form { display: inline; }
.livecount { display: inline-block; background: var(--umber); color: #fff; font-family: var(--sans); font-size: 0.85rem; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.linkgrid .card h2 { margin-top: 0; }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.linkrow:last-child { border-bottom: none; }
.pubrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.settings-form { margin-bottom: 4px; }

/* Footer & prose */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 24px 36px; text-align: center; color: var(--ink-soft); font-size: 0.92rem; }
.site-footer .fineprint { font-size: 0.8rem; margin-top: 6px; }
.prose { max-width: 720px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; }
.prose h1 { margin-top: 0; }
.fineprint { color: var(--ink-soft); font-size: 0.85rem; }

/* ============================== Landing ============================== */

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0 40px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; background: var(--brass-soft); color: #6d5628; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 2.7rem; line-height: 1.12; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin: 26px 0 20px; flex-wrap: wrap; }
.trust-strip { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.9rem; }

/* The screen: a live mini-slideshow */
.screen-frame { text-align: center; }
.screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: #211c15; box-shadow: 0 18px 50px rgba(41, 37, 28, 0.25); border: 6px solid #33302a;
}
.screen-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; animation: screenfade 17.5s ease infinite; }
.title-slide { background: #f8f5ee; animation-delay: 0s; }
.ss-rule { width: 60px; height: 2px; background: var(--brass); margin-bottom: 12px; }
.ss-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.ss-dates { color: var(--brass); letter-spacing: 0.14em; margin-top: 4px; font-size: 0.85rem; }
.photo-slide { background: #f8f5ee; padding: 5% 7%; }
/* Height-driven so the whole photograph shows, letterboxed on the ivory slide
   exactly as the real player does it. Filling the box would crop a 4:3 family
   photo to roughly half its height and take the heads off. */
/* flex-shrink rather than a fixed percentage: the photograph takes whatever
   height is left once the caption has its line, so a taller caption font (the
   serif falls back differently on Windows) can never push it out of the frame. */
.ss-photo {
  flex: 0 1 auto; min-height: 0; max-height: 100%; max-width: 100%;
  width: auto; height: auto; object-fit: contain;
  border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.ss-caption { font-family: var(--serif); font-size: 0.78rem; color: var(--ink-soft); margin-top: 3%; }
@keyframes screenfade { 0% { opacity: 0; } 3%, 18% { opacity: 1; } 24%, 100% { opacity: 0; } }
.screen-foot { color: var(--ink-soft); font-size: 0.75rem; font-style: italic; margin-top: 14px; }

.band { padding: 56px 0; }
.band.alt { position: relative; }
.band.alt::before { content: ''; position: absolute; inset: 0 -100vw; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: -1; }
.band h2 { font-size: 1.9rem; margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num { width: 36px; height: 36px; border-radius: 999px; background: var(--umber); color: #fff; font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 12px; }
.step h3 { margin-top: 0; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.price-math { margin-top: 30px; }
.price-math-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .price-math-inner { grid-template-columns: 1fr 1fr; } }
.pm-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.pm-col.us { background: var(--umber); border-color: var(--umber); color: #fff; }
.pm-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.pm-num span { font-size: 1rem; font-weight: 400; }
.pm-label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.pm-col.us .pm-label { color: #ece2d4; }
.pm-foot { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: 16px; font-style: italic; }

.outputs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 900px) { .outputs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .outputs-grid { grid-template-columns: 1fr; } }
.output { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.output h3 { margin-top: 0; font-size: 1.02rem; }
.output p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

.band.dark { position: relative; color: #efeadf; }
.band.dark::before { content: ''; position: absolute; inset: 0 -100vw; background: #262019; z-index: -1; }
.dark-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.band.dark h2 { color: #f6f2e8; }
.band.dark p { color: #b9b0a0; }
.band.dark blockquote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.6; color: #e6dfd0; border-top: 1px solid #4a4136; margin: 28px auto 0; padding: 24px 12px 0; }

.whyfree-card { background: var(--surface); border: 1px solid var(--brass); border-radius: var(--radius); padding: 36px 40px; max-width: 760px; margin: 0 auto; }
.whyfree-card h2 { margin-top: 0; }
.faq { max-width: 760px; margin: 30px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; font-size: 0.98rem; }
.faq details p { color: var(--ink-soft); padding-bottom: 16px; margin: 0; }
.final-cta { text-align: center; padding: 70px 0 60px; }
.final-cta h2 { font-size: 1.9rem; }
.final-cta p { color: var(--ink-soft); margin-bottom: 24px; }

/* ============================== Family upload page ============================== */

.guest-page { max-width: 640px; margin: 0 auto; padding: 36px 20px 60px; }
.service-head { text-align: center; margin-bottom: 26px; }
.service-inmemory { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.service-name { font-family: var(--serif); font-size: 2.2rem; margin: 6px 0 2px; line-height: 1.15; }
.service-dates { color: var(--ink-soft); letter-spacing: 0.1em; }
.signbook-title { text-align: center; font-size: 1.3rem; margin: 0 0 6px; }
.guest-card { padding: 28px 30px; }
.guest-foot { text-align: center; color: var(--ink-soft); font-size: 0.82rem; margin-top: 18px; }
.bigcheck { width: 64px; height: 64px; border-radius: 999px; background: var(--umber); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 6px auto 16px; }

/* ============================== Photo grid ============================== */

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: grab; }
.photo-cell.dragging { opacity: 0.4; }
.photo-cell.is-hidden { opacity: 0.45; }
.photo-cell img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; display: block; }
.cap-input { width: 100%; border: none; background: transparent; font-size: 0.82rem; padding: 6px 2px 2px; color: var(--ink); }
.cap-input.year { font-size: 0.75rem; color: var(--ink-soft); padding-top: 0; }
.cap-input:focus { outline: none; background: #fff; border-radius: 4px; }
.photo-by { font-size: 0.72rem; color: var(--brass); padding: 2px; }
.photo-actions { display: flex; justify-content: space-between; padding-top: 4px; }

/* ============================== Player ============================== */

.player { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.player-start { text-align: center; padding: 40px 24px; }
.player-actions { margin: 26px 0 14px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.player-loop { justify-content: center; color: var(--ink-soft); }
.player-stage { position: fixed; inset: 0; }
.player-stage.hidden, .player-controls.hidden, .player-start.hidden, .hidden { display: none; }
.live-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.9s ease; }
.live-slide.visible { opacity: 1; }
.live-card { text-align: center; padding: 24px; }
.live-rule { width: 90px; height: 3px; margin: 0 auto 26px; }
.live-name { font-family: var(--slide-font, var(--serif)); font-size: calc(clamp(2rem, 6vw, 4.5rem) * var(--slide-scale, 1)); font-weight: 700; }
.live-sub { font-family: var(--slide-font, var(--serif)); font-size: calc(clamp(1rem, 2.5vw, 1.7rem) * var(--slide-scale, 1)); margin-top: 14px; }
.live-credit { font-size: 0.85rem; margin-top: 60px; opacity: 0.7; }
.live-photo { max-width: 88vw; max-height: 82vh; border-radius: 4px; box-shadow: 0 12px 48px rgba(0,0,0,0.35); }
.live-cap { font-family: var(--slide-font, var(--serif)); font-size: calc(clamp(0.9rem, 2vw, 1.3rem) * var(--slide-scale, 1)); margin-top: 18px; }
.player-controls { position: fixed; bottom: 18px; right: 18px; display: flex; gap: 8px; opacity: 0.25; transition: opacity 0.2s; z-index: 10; }
.player-controls:hover { opacity: 1; }
.pc-btn { background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 8px; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; }

/* ============================== Export page ============================== */

.export-presets { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.export-status { font-family: var(--serif); font-size: 1.05rem; color: var(--umber-dark); min-height: 1.6em; margin: 10px 0; }
.export-preview { background: #211c15; border-radius: 8px; padding: 10px; }
.export-preview canvas { width: 100%; height: auto; display: block; border-radius: 4px; }
#exportResult { margin-top: 16px; }

/* ============================== QR cards print ============================== */

.print-note { max-width: 720px; margin: 18px auto; background: var(--brass-soft); border: 1px solid #dcc99b; color: #6d5628; border-radius: 8px; padding: 12px 18px; font-size: 0.9rem; display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.qr-sheet.four { display: grid; grid-template-columns: 4.25in 4.25in; grid-auto-rows: 5.5in; width: 8.5in; margin: 20px auto; background: #fff; }
.qr-card { border: 1px dashed var(--line); text-align: center; padding: 0.45in 0.4in; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.qc-inmemory { letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); font-size: 0.66rem; }
.qc-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin: 5px 0 10px; }
.qc-qr { width: 1.8in; height: 1.8in; }
.qc-line { font-family: var(--serif); font-size: 1rem; font-weight: 600; margin-top: 10px; }
.qc-sub { font-size: 0.75rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }

@media print {
  .no-print, .print-note, .appnav, .site-footer { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .qr-sheet.four { margin: 0 auto; }
  .qr-card { border: 0.5px solid #ddd; }
}


/* ============================ THE SERVICE BAR ============================== */
/* Copied verbatim from memorial-hub/clients/mbar.css — edit it there, not here. */

/* THE SERVICE BAR — append verbatim to each tool's public/styles.css.
   Canonical source: memorial-hub/clients/mbar.css
   Uses each tool's own --surface/--line if defined, with safe fallbacks. */

.mbar { background: var(--surface, #fffdf8); border-bottom: 1px solid var(--line, #e6dfd0); }
.mbar-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 7px 14px; flex-wrap: wrap; }
.mbar-item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 0.86rem; line-height: 1; }
.mbar-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mbar-item.live { color: var(--c, #29251c); background: color-mix(in srgb, var(--c, #29251c) 9%, transparent); font-weight: 600; }
.mbar-item.live:hover { background: color-mix(in srgb, var(--c, #29251c) 16%, transparent); }
.mbar-item.current { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #29251c) 35%, transparent); }
.mbar-item.off { color: #b3ada0; cursor: default; }
.mbar-count { margin-left: auto; font-size: 0.74rem; color: #a29c8e; letter-spacing: 0.04em; }
.mbar-all { font-size: 0.78rem; color: #6f6a5c; text-decoration: none; border-left: 1px solid var(--line, #e6dfd0); padding-left: 12px; margin-left: 10px; }
.mbar-all:hover { color: #29251c; }
@media (max-width: 560px) {
  .mbar-item span { display: none; }
  .mbar-item { padding: 7px 10px; }
  .mbar-count { font-size: 0.7rem; }
}
@media print { .mbar { display: none !important; } }

/* Founder note on /why-free — a real person, at a size that reads as a byline
   rather than an author photo on a dust jacket. */
.whyfree .lede-strong { font-size: 1.06rem; color: var(--ink); }
.founder { display: flex; gap: 20px; align-items: flex-start; margin: 20px 0 18px; }
.founder-photo { width: 120px; height: 150px; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(41,37,28,0.14); flex: none; }
.founder-words p { margin: 0; }
@media (max-width: 560px) {
  .founder { flex-direction: column; gap: 14px; }
  .founder-photo { width: 108px; height: 135px; }
}

/* Music library resource guide */
.musiclib .mood-group { margin-top: 30px; }
.musiclib .mood-group h2 { margin-bottom: 8px; }
.tracklist { list-style: none; margin: 0; padding: 0; }
.track { display: flex; align-items: center; gap: 14px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.track:last-child { border-bottom: none; }
.track-play {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--umber); background: var(--surface); color: var(--umber);
  font-size: 0.72rem; cursor: pointer; line-height: 1;
}
.track-play:hover { background: var(--brass-soft); }
.track-title { font-family: var(--serif); font-size: 1.05rem; }

/* Hosting window */
.hosting-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px; background: var(--brass-soft); border-radius: 8px; font-size: 0.9rem; }
.hosting-row.expired { background: var(--danger-soft); }

/* Custom background color picker */
.customcolor { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.customcolor input[type=color] { width: 52px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }

/* Backgrounds gallery */
.bg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
@media (max-width: 760px) { .bg-grid { grid-template-columns: 1fr; } }
.bg-card { margin: 0; }
.bg-card img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 22px rgba(41,37,28,0.16); display: block; }
.bg-card figcaption { font-family: var(--serif); font-size: 1.02rem; margin-top: 8px; text-align: center; color: var(--ink); }

/* Vendor comparison table on the landing page */
.compare-table { margin-top: 22px; background: var(--surface); }
.compare-table th.us, .compare-table td.us { background: var(--brass-soft); font-weight: 600; color: var(--ink); }
.compare-table td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .compare-table td:first-child { white-space: normal; } }
