/* Round 8 seating: rename, table pictures, Publish seating, printable plan (organiser), and Find your table (guest site).
   The organiser parts follow features.css. The guest block (ft-*) is neutral and reads only the site palette
   (--w-bg, --w-ink, --w-accent, --w-on-accent) so each layout can restyle the whole site tail later. */

/* ---------- rename (every tier) ---------- */
.tr-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.tr-head h4{margin:0}
.vp-table .tr-head h4 small{display:block;margin:2px 0 0}
.tr-rename{margin:0}
.table-top:has(.tr-form){flex-wrap:wrap}
.tr-form{flex:1 1 100%;display:grid;grid-template-columns:1fr auto;gap:6px 8px;align-items:end;margin:0}
.tr-label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:600;color:#2c4334;margin:0}
.tr-input{font-size:16px;min-height:44px;padding:8px 10px;border:1px solid #9fb09d;border-radius:6px;background:#fff;color:#1f2f24;width:100%}
.tr-input:focus{outline:2px solid #375a3e;outline-offset:1px}
.tr-input[aria-invalid=true]{border-color:#a3392b}
.tr-actions{display:inline-flex;gap:6px}
.tr-actions .small-button{margin:0;min-height:44px}
.tr-save{background:#375a3e;color:#fff;border-color:#375a3e}
.tr-error{grid-column:1/-1;margin:0;font-size:12px;color:#a3392b;min-height:0}
.tr-error:empty{display:none}

/* ---------- table pictures (Pro and Max) ---------- */
.vp-fig{position:relative}
.vp-figbox{position:relative;max-height:138px}
.vp-figbox .tbl-svg{max-height:none}
.tbl-photo{position:absolute;left:50%;top:50%;translate:-50% -50%;aspect-ratio:1;height:auto;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 0 0 2px #6d5b45,0 2px 6px #0003;pointer-events:none;user-select:none}
.fp-table .fp-photo{z-index:1}
.fp-table.fp-has-photo .fp-name{top:calc(50% + var(--below,0%));translate:-50% -12%;z-index:2}
.tp-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
.tp-thumb{width:44px;height:44px;border-radius:50%;object-fit:cover;border:1px solid #c1cec0}
.tp-file{position:relative;display:inline-flex;align-items:center;cursor:pointer;margin:0;border-style:dashed}
.tp-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;font-size:16px}
.tp-file:focus-within{outline:2px solid #375a3e;outline-offset:2px}
.tp-remove{margin:0}
.tp-full{font-size:11px;max-width:32em}
.fp-detail .tp-row{margin-bottom:12px}

/* ---------- Publish seating and the printable plan ---------- */
.seat-share{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 0}
.seat-share .panel-box{margin:0}
.seat-switch{position:relative;display:flex;gap:12px;align-items:flex-start;cursor:pointer;min-height:44px;margin:0}
.seat-switch input{position:absolute;left:0;top:0;width:46px;height:28px;opacity:0;margin:0;cursor:pointer;z-index:2}
.seat-track{flex:none;width:46px;height:28px;border-radius:14px;background:#c9d2c6;position:relative;transition:background .15s}
.seat-track::after{content:'';position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:translate .15s}
.seat-switch input:checked+.seat-track{background:#375a3e}
.seat-switch input:checked+.seat-track::after{translate:18px 0}
.seat-switch input:focus-visible+.seat-track{outline:3px solid var(--orange,#c76b2a);outline-offset:2px}
.seat-text strong{display:block;font-size:14px;color:#1f2f24}
.seat-text small{display:block;font-size:12px;color:#5f6f63;margin-top:2px;line-height:1.4}
.seat-state{margin:10px 0 0;font-size:12px;color:#6a796d}
.seat-state.on{color:#2f6b3b;font-weight:600}
.seat-print h4{margin:0 0 4px}
.seat-print p{font-size:12px;margin:0 0 10px}
.seat-print-btns{display:flex;flex-wrap:wrap;gap:8px}
.seat-print-btns .button{background:#375a3e;color:#fff;padding:10px 14px;gap:8px}
.seat-print-btns .button[aria-busy=true]{opacity:.6;cursor:progress}
.seat-locked{border-style:dashed;background:#fbfcf9}
.seat-locked-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.seat-locked-head h4{margin:0}
.seat-locked-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.seat-locked-list li{display:flex;gap:8px;align-items:flex-start}
.seat-locked-list strong{display:block;font-size:13px;color:#1f2f24}
.seat-locked-list small{display:block;font-size:11px;color:#5f6f63;line-height:1.4;margin-top:2px}
.seat-lock-ico{flex:none;display:inline-flex;width:26px;height:26px;border-radius:50%;background:#e9eee5;color:#375a3e;align-items:center;justify-content:center}
.seat-locked-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 0;font-size:12px}
.seat-locked-foot .button{background:#375a3e;color:#fff;padding:10px 14px}
@media(max-width:860px){.seat-share{grid-template-columns:1fr}.seat-locked-list{grid-template-columns:1fr}}
@media(max-width:720px),(pointer:coarse){
 .tr-rename,.tp-file,.tp-remove{min-height:44px;min-width:44px}
 .seat-switch input{width:100%;height:100%}
}
@media(prefers-reduced-motion:reduce){.seat-track,.seat-track::after{transition:none}}

/* ---------- Find your table (guest site) ---------- */
.ex-findtable{--ft-bg:var(--w-bg,#fbf8f2);--ft-ink:var(--w-ink,#1f2a22);--ft-accent:var(--w-accent,#8a5a3c);--ft-on:var(--w-on-accent,#ffffff);
  background:var(--ft-bg);color:var(--ft-ink)}
.ex-findtable .ft-head{max-width:640px}
.ex-findtable .ft-lead{margin:6px 0 0}
.ft-form{margin:18px 0 0;max-width:560px}
.ft-label{display:block;font-weight:600;font-size:14px;margin:0 0 6px;color:inherit}
.ft-row{display:flex;gap:8px;flex-wrap:wrap}
.ft-input{flex:1 1 220px;font:inherit;font-size:16px;min-height:48px;padding:10px 14px;border:1.5px solid color-mix(in srgb,var(--ft-ink) 45%,transparent);border-radius:8px;background:color-mix(in srgb,var(--ft-bg) 80%,#ffffff);color:var(--ft-ink)}
.ft-input::placeholder{color:color-mix(in srgb,var(--ft-ink) 55%,transparent)}
.ft-input:focus{outline:3px solid var(--ft-accent);outline-offset:1px}
.ft-go{flex:none;font:inherit;font-size:15px;font-weight:600;min-height:48px;padding:0 20px;border:0;border-radius:8px;background:var(--ft-accent);color:var(--ft-on);cursor:pointer}
.ft-go:focus-visible{outline:3px solid var(--ft-ink);outline-offset:2px}
.ft-result{margin:16px 0 0;max-width:820px}
.ft-result:empty{margin:0}
.ft-msg{margin:0;padding:12px 14px;border-left:4px solid var(--ft-accent);background:color-mix(in srgb,var(--ft-accent) 9%,transparent);border-radius:0 8px 8px 0;max-width:560px}
.ft-card{display:grid;grid-template-columns:1fr;gap:16px 24px;align-items:start;padding:18px;border:1.5px solid color-mix(in srgb,var(--ft-ink) 18%,transparent);border-radius:12px;background:color-mix(in srgb,var(--ft-bg) 85%,#ffffff)}
.ft-card.ft-has-photo{grid-template-columns:120px 1fr}
.ft-card.ft-has-map{grid-template-columns:1fr minmax(0,1.2fr)}
.ft-card.ft-has-photo.ft-has-map{grid-template-columns:120px 1fr minmax(0,1.3fr)}
.ft-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;border:3px solid var(--ft-accent)}
#wedding-findtable .ft-hello{margin:0;font-size:15px}
#wedding-findtable .ft-table{margin:2px 0 12px;font-size:34px;font-weight:600;line-height:1.1;letter-spacing:0;text-transform:none;color:inherit}
.ft-mates-h{margin:0 0 6px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;opacity:.75}
.ft-mates{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.ft-mates li{padding:4px 10px;border-radius:14px;background:color-mix(in srgb,var(--ft-accent) 14%,transparent);font-size:14px}
.ft-alone{margin:0;font-size:14px;opacity:.8}
.ft-map{margin:0;min-width:0}
.ft-map-cap{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;opacity:.75;margin:0 0 6px}
.ft-map-svg{display:block;width:100%;height:auto;border-radius:8px;background:color-mix(in srgb,var(--ft-ink) 4%,transparent);color:var(--ft-ink)}
.ft-map .fp-wall{fill:none;stroke:currentColor;stroke-width:5;opacity:.55}
.ft-map .fp-beam,.ft-map .fp-glaze,.ft-map .fp-scallop{stroke:currentColor;opacity:.15}
.ft-map .fp-door,.ft-map .fp-window{fill:none;stroke:currentColor;opacity:.4}
.ft-map .fp-pole{fill:currentColor;opacity:.3}
.ft-map .fp-plant,.ft-map .fp-chandelier{fill:none;stroke:currentColor;opacity:.2}
.ft-map .fp-zone{fill:none;stroke:currentColor;opacity:.35}
.ft-map .fp-label{fill:currentColor;opacity:.6;font-family:inherit}
.ft-map-other{fill:none;stroke:currentColor;stroke-width:3;opacity:.28}
.ft-map-mine{fill:var(--ft-accent);stroke:var(--ft-ink);stroke-width:4}
.ft-map-pin path{fill:var(--ft-accent);stroke:var(--ft-bg);stroke-width:4}
.ft-map-pin circle{fill:var(--ft-on)}
/* R21 (decision 155): the published site's lookup (findtable.js): table name only, two or three people when names match */
.ft-pub-card{max-width:560px}
.ft-few{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px;max-width:560px}
.ft-few li{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline;padding:10px 14px;border:1.5px solid color-mix(in srgb,currentColor 30%,transparent);border-radius:8px;background:color-mix(in srgb,var(--ft-accent) 9%,transparent);color:inherit}
.ft-few .ft-at{font-size:18px;font-weight:600}
@media(max-width:720px){
 .ft-card,.ft-card.ft-has-map,.ft-card.ft-has-photo.ft-has-map{grid-template-columns:1fr}
 .ft-card.ft-has-photo:not(.ft-has-map){grid-template-columns:88px 1fr}
 .ft-card.ft-has-photo.ft-has-map .ft-photo{width:96px;height:96px}
 .ft-card.ft-has-photo:not(.ft-has-map) .ft-photo{width:88px;height:88px}
 .ft-go{flex:1 1 100%}
 #wedding-findtable .ft-table{font-size:28px}
}
