/**
 * Wordy Page — Application Stylesheet (css/app.css)
 *
 * Clean-sheet styles for all application views:
 *   1. Design Tokens & Theme Palette (:root & body.dark)
 *   2. Reset, Document Base & Glass Surfaces
 *   3. Sticky Full-Bleed Header (.brand) & Navigation Menu (.tp-menu)
 *   4. Form Inputs, Textareas, Slug Bar, Validation (.ferr) & Segmented Controls
 *   5. Live ALL CAPS Blue Overlay (.bhl)
 *   6. Add Image Slot (.add-img / .pimg) & Unsplash Photo Search Lightbox (.us-dlg)
 *   7. Layout Surfaces, Page Items, Short/Long Form & My Pages
 *   8. Unified Button System (.btn, #addSec, .sec .rm) — light & dark
 *   9. Desktop Breakpoint (@media min-width: 700px)
 *
 * Every rule is defined once, in its section; no trailing override patches.
 */

/* ==========================================================================
   1. Design Tokens & Theme Palette
   ========================================================================== */
:root {
  /* Wordy Blue — unified bright electric blue for bold ALL CAPS, links, emails, and form field borders */
  --wordy-blue: #0a94e0;
  --bg: #eef2f6;
  --bg2: #e2e9f1;
  --card: #fff;
  --ink: #1c2633;
  --mut: #3a4757;
  --line: #cbd5e0;
  --pri: var(--wordy-blue);
  --acc: var(--wordy-blue);
  --bold: var(--wordy-blue);
  --err: #a3262a;
  --ok: #22643f;
  --field: #f8fafc;
  --fieldf: #fff;
  --seg: #e3edf7;
  --slug: #e5ebf2;
  --ro: #eef2f6;
  --bad: #fbeaea;
  --good: #e7f4ec;
  --btxt: #fff;
  --bhov: #244564;
  --glass-a: .66;
  --glass: rgba(255,255,255,var(--glass-a));
  --blur: blur(18px) saturate(1.3);
  --fglass: rgba(255,255,255,.58);
  --fglassf: rgba(255,255,255,.8);
  --fblur: blur(8px) saturate(1.2);
  --fshadow: 0 6px 22px rgba(30,50,75,.10),0 1px 3px rgba(30,50,75,.06);
}
body.dark {
  color-scheme: dark;
  --bg: #26282c;
  --bg2: #1f2125;
  --card: #262626;
  --ink: #ececec;
  --mut: #c8c8c8;
  --line: #3a3a3a;
  --pri: var(--wordy-blue);
  --acc: var(--wordy-blue);
  --bold: var(--wordy-blue);
  --err: #ff9a9a;
  --ok: #7fd6a0;
  --bad: #3a1d22;
  --good: #16301f;
  --bhov: #a9c8e6;
  --chip: #2e2e2e;
  --bar: rgba(30,30,30,.92);
  --box: #262626;
  --field: #2e2e2e;
  --fieldf: #333333;
  --seg: #333333;
  --slug: #2e2e2e;
  --ro: #222222;
  --btxt: #181818;
  --glass-a: .66;
  --glass: rgba(38,38,38,var(--glass-a));
  --fglass: rgba(46,46,46,.6);
  --fglassf: rgba(52,52,52,.82);
  --fshadow: 0 8px 26px rgba(0,0,0,.45),0 1px 3px rgba(0,0,0,.3);
}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  :root, body.dark { --glass-a: .9; }
}

/* ==========================================================================
   2. Reset, Document Base & Glass Surfaces
   ========================================================================== */
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: auto;
  overflow-y: scroll;
  overflow-x: clip;
}
body {
  margin: 0;
  font: 17px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color: var(--ink);
  overflow-x: clip;
  --page-fill: linear-gradient(180deg,var(--bg2),var(--bg) 320px);
  background-color: var(--bg);
  background-image: var(--page-texture,none),var(--page-fill);
  background-repeat: repeat,no-repeat;
  background-size: auto,auto;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 max(16px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left,0px));
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
main>* { flex: 0 0 auto; }
main>.card, main>.stack { margin-top: 0; }
.ic {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -.16em;
  flex: none;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
[hidden] { display: none!important; }
a, a:link, a:visited, a:hover, a:focus, a:active { text-decoration: none!important; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
a:focus-visible {
  outline: 2px solid var(--pri);
  outline-offset: 2px;
  border-radius: 4px;
}
main p a:not(.btn):not(#delLink), main li a:not(.btn), main p a:not(.btn):not(#delLink):visited {
  color: var(--wordy-blue);
}
main p a:not(.btn):not(#delLink):hover, main li a:not(.btn):hover {
  color: color-mix(in srgb,var(--wordy-blue) 78%,#000);
}

@media(prefers-reduced-motion:reduce) {
  * { transition: none!important; }
}

/* ==========================================================================
   3. Sticky Full-Bleed Header (.brand) & Navigation Menu (.tp-menu)
   ========================================================================== */
.brand, .tp-bar, .tp-menu {
  color-scheme: dark;
  --glass: rgba(32,32,32,.84);
  --ink: #ececec;
  --mut: #c8c8c8;
  --pri: var(--wordy-blue);
  --acc: var(--wordy-blue);
  --line: #3a3a3a;
  --chip: #2e2e2e;
  --card: #262626;
  --fglass: rgba(52,52,52,.7);
  --fglassf: rgba(60,60,60,.85);
  --bhov: #a9c8e6;
  --btxt: #181818;
  --fshadow: 0 8px 26px rgba(0,0,0,.35);
  color: var(--ink);
}
.brand {
  font-weight: 800;
  font-size: 1.15rem;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  margin: 0 0 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: max(12px,env(safe-area-inset-top)) 12px 12px 16px;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100vw;
  right: -100vw;
  z-index: -1;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-radius: 0;
  box-shadow: var(--fshadow);
  border-bottom: 1px solid var(--line);
}
.brand .home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
header.brand .hdr-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin: 0 0 0 auto;
}
header.brand .hdr-go[hidden] { display: none; }
header.brand .hdr-go:not([hidden])+.tp-mbtn { margin-left: 10px; }

@media(max-width:699px) {
  header.brand .hdr-go:not([hidden])+.tp-mbtn { margin-left: 8px; }
}
.tp-mbtn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  margin-left: auto;
  background: var(--fglass);
  -webkit-backdrop-filter: var(--fblur);
  backdrop-filter: var(--fblur);
  border: 1px solid var(--wordy-blue);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
}
.tp-mbtn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s,opacity .2s;
}
.tp-mbtn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tp-mbtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tp-mbtn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.tp-menu {
  position: absolute;
  right: max(calc(16px + env(safe-area-inset-right,0px)),calc(50% - 560px + 16px));
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 200px;
  max-width: min(320px,92vw);
  max-height: 70vh;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  background: var(--card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.tp-menu[hidden] { display: none; }
.tp-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.tp-menu a:hover, .tp-menu a:focus-visible { background: var(--line); color: var(--pri); }
.tp-menu a[aria-current] { color: var(--pri); font-weight: 700; }

/* ==========================================================================
   4. Form Inputs, Textareas, Slug Bar, Validation & Segmented Controls
   ========================================================================== */
label {
  font-weight: 600;
  font-size: .95rem;
  margin: 0 0 12px;
}
.opt { font-weight: 400; color: var(--mut); }
input:where(:not([type=checkbox]):not([type=radio])), textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 12px;
  min-height: 40px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: var(--ink);
  background: var(--fglass);
  -webkit-backdrop-filter: var(--fblur);
  backdrop-filter: var(--fblur);
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--wordy-blue);
  border-radius: 10px;
}
textarea {
  min-height: 92px;
  resize: none;
  overflow-y: hidden;
  tab-size: 4;
}
input:where(:not([type=checkbox]):not([type=radio])):focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--wordy-blue) 30%,transparent);
  background: var(--fglassf);
}
input[readonly] { color: var(--mut); background: color-mix(in srgb,var(--ro) 70%,transparent); }
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
legend {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 6px;
  padding: 0;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg label { margin: 0; }
.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--wordy-blue);
  border-radius: 10px;
  background: var(--fglass);
  -webkit-backdrop-filter: var(--fblur);
  backdrop-filter: var(--fblur);
  cursor: pointer;
  font-weight: 600;
}
.seg input:focus-visible+span { outline: 3px solid var(--acc); outline-offset: 2px; }
.seg input:checked+span {
  border-color: var(--pri);
  box-shadow: inset 0 0 0 1px var(--pri);
  background: color-mix(in srgb,var(--seg) 78%,transparent);
}
.slug {
  display: flex;
  align-items: stretch;
  margin-top: 6px;
}
.slug span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: var(--slug);
  border: 1px solid var(--wordy-blue);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: var(--mut);
  font-size: .85rem;
  font-weight: 400;
  white-space: nowrap;
}
.slug input {
  margin: 0;
  border-radius: 0 10px 10px 0;
  min-width: 0;
}
.hint {
  display: block;
  font-weight: 400;
  font-size: .88rem;
  color: var(--mut);
  margin-top: 6px;
  min-height: 1.3em;
}
#slugHint { display: none; }
.hint.bad {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  margin: -1px!important;
  padding: 0!important;
  overflow: hidden!important;
  clip: rect(0 0 0 0)!important;
  white-space: nowrap!important;
  border: 0!important;
}
.hint.good { color: var(--ok); }
input.ferr, textarea.ferr, label:has(.hint.bad) input, label:has(.hint.bad) textarea, select.ferr {
  border-color: var(--err)!important;
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--err) 25%,transparent)!important;
  color: var(--err);
}
input.ferr::placeholder, textarea.ferr::placeholder {
  color: var(--err);
  opacity: 1;
  font-weight: 600;
}
#f .lt {
  position: absolute!important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
#f label:not(.chk) > input:where(:not([type=checkbox]):not([type=radio])),
#f label:not(.chk) > textarea,
#f label:not(.chk) > .bwrap > textarea,
#f label:not(.chk) > .slug {
  margin-top: 0;
}
.chk {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 16px;
  cursor: pointer;
  font-weight: 600;
}
.chk input {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--pri);
  cursor: pointer;
}
.msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
}
.msg.bad { /* non-field errors only (network, rate limit, server); field errors show inside the field */
  display: block;
  background: var(--bad);
  color: var(--err);
  font-weight: 600;
}
.msg.good {
  display: block;
  background: var(--good);
  color: var(--ok);
}

/* ==========================================================================
   5. Live ALL CAPS Blue Overlay (.bhl)
   ========================================================================== */
.bwrap { position: relative; display: block; container-type: inline-size; }
.bwrap textarea { margin: 0; font-weight: 400; white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; }
.bwrap.has-v textarea { color: transparent!important; caret-color: var(--ink); }
.bwrap.has-v textarea::selection { background: color-mix(in srgb,var(--wordy-blue) 28%,transparent); color: transparent; }
.bwrap textarea:not(.ferr)::placeholder { color: transparent!important; }
.bhl {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-wrap: break-word;
  tab-size: 4;
  overflow: hidden;
}
.bhl.is-ph { color: var(--mut); opacity: .75; }
.bhl mark { background: none; color: var(--bold); font-weight: inherit; -webkit-text-stroke: .3px currentColor; }

/* ==========================================================================
   6. Add Image Slot (.add-img / .pimg) & Unsplash Photo Search Lightbox (.us-dlg) — full screen, centered
   ========================================================================== */
html.us-open { overflow: hidden; }
.us-dlg {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  margin: 0;
}
.us-dlg[hidden] { display: none; }
.us-bg {
  position: absolute;
  inset: 0;
  background: rgba(12,14,18,.96);
}
.us-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow-y: auto;
  padding: max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: rgba(18,20,24,.96);
  color: #ececec;
  text-align: center;
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: none;
}
.us-top, .us-f, .us-msg, .us-more, .us-foot {
  width: min(644px,100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.us-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.us-x {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 4px 12px;
  min-height: 44px;
  font-size: 1.85rem;
  line-height: 1;
  color: #ececec;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--wordy-blue);
  border-radius: 10px;
  cursor: pointer;
}
.us-x:hover, .us-x:focus-visible { background: rgba(255,255,255,.16); }
.us-f {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}
.us-f input {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  background: rgba(255,255,255,.08);
  color: #ececec;
  border-color: var(--wordy-blue);
}
.us-f input::placeholder { color: #9aa3ad; }
.us-msg {
  min-height: 1.3em;
  margin: 10px auto;
  color: #c8c8c8;
  font-size: .92rem;
}
.us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  justify-content: center;
  gap: 12px;
  width: min(1080px,100%);
  margin-left: auto;
  margin-right: auto;
}
.us-ph {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  background: #2e2e2e;
}
.us-ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.us-ph:hover, .us-ph:focus-visible {
  border-color: var(--wordy-blue);
  outline: 2px solid var(--wordy-blue);
  outline-offset: -2px;
}
.us-ph:disabled { opacity: .5; }
.us-by {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 8px 5px;
  font-size: .75rem;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent,rgba(0,0,0,.7));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.us-more {
  display: flex;
  justify-content: center;
  margin: 12px auto 0;
}
.us-foot {
  margin: 14px auto 0;
  font-size: .82rem;
  color: #b8b8b8;
}
.us-foot a { color: var(--wordy-blue); }
.us-f .btn, .us-more .btn {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
}
.us-more .btn { margin-left: auto; margin-right: auto; justify-self: center; }
/* One header image per page: the slot sits between the Page name and the Text field. */
.img-slot { display: block; margin: 0; }
.sec .img-slot .add-img { width: auto; max-width: none; margin: 0; }
.img-slot .add-img[hidden], .pimg[hidden] { display: none; }
.pimg { position: relative; display: block; background: var(--bg); border-radius: 0; border: 1px solid var(--line); overflow: hidden; }
.pimg img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; object-position: center; background: var(--bg); border-radius: 0; cursor: pointer; }
.pimg-cap { display: block; padding: 6px 10px; font-size: .78rem; color: #c9ced6; background: #141414; }
.pimg-cap a { color: var(--wordy-blue); }
.pimg-chg { background: none; border: 0; padding: 0; font: inherit; color: var(--wordy-blue); cursor: pointer; text-decoration: underline; }
.pimg-chg:hover { color: #54b8f2; }
.pimg-rm {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; min-height: 28px;
  border-radius: 50%; border: 1px solid var(--wordy-blue); padding: 0; margin: 0;
  background: rgba(0,0,0,.68); color: #fff; font: 700 16px/1 sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pimg-rm:hover, .pimg-rm:focus-visible { background: rgba(198,40,40,.92); }

/* ==========================================================================
   7. Layout Surfaces, Page Items, Short/Long Form & My Pages
   ========================================================================== */
.sec {
  margin: 0 0 16px;
  padding: 14px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
}
.card, .stack .sec {
  margin: 0 0 30px;
  padding: 18px 16px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: var(--fshadow);
}
body.dark .card, body.dark .stack .sec {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.sec { display: flex; flex-direction: column; gap: 14px; }
.sec > *, .sec label { margin: 0; }
/* Per-page contact form row: every page ends with "Include a contact form"; added pages put Remove page on the same row. */
.cf-check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .92rem; cursor: pointer; }
.cf-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--wordy-blue); }
.sec-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-foot .rm { margin: 0; }
.stack { margin: 0; }
.stack .card>label:last-child, .stack .card>fieldset { margin-bottom: 0; }
.lead { color: var(--mut); margin: 0 0 20px; }
.intro .lead { margin: 0; }
.who {
  color: var(--mut);
  font-size: .92rem;
  margin: -8px 0 16px;
  word-break: break-all;
}
.intro .who { margin: 10px 0 0; }
.who a {
  color: var(--pri);
  display: inline-block;
  padding: 6px 2px;
}
.card .chk { margin: 0; }
.faq .card p { margin: 0; color: var(--mut); }
.item { margin-bottom: 12px; }
.item h3 {
  margin: 0 0 2px;
  font-size: 1.1rem;
  word-break: break-word;
}
.live {
  display: block;
  color: var(--pri);
  word-break: break-all;
  font-weight: 600;
  margin: 6px 0 14px;
}
.item .live { margin: 0 0 4px; font-size: .92rem; }
.row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
details { margin: 0 0 16px; }
summary {
  cursor: pointer;
  color: var(--pri);
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
}
/* Account-deleted notice */
.gone .msg.good { margin: 0; }
.delacct {
  text-align: center;
  margin: 8px 0 20px;
  font-size: .85rem;
}
.delacct a { color: var(--err); opacity: .85; }

/* Short form (signed out) vs. full editor (signed in) */
body.short .full { display: none; }
body.short .card.pub {
  border: 0;
  box-shadow: none;
  padding: 0;
}
#f.one .card, #f.one .sec {
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#f.one .card.pub { margin: 8px 0 0; }
#f.one .msg:empty { display: none; }
.short-only { display: none; }
body.short #f .short-only { display: block; margin: 0 0 12px; }
body.short #f #ownerRow.full:not([hidden]) { display: block; margin: 0 0 16px; }
body.short #f #ownerRow .hint { display: none; }
body:not(.short) #f .card.pub { display: none; }
#em input[type=email] { margin: 6px 0 16px; font-weight: 600; }
#em .msg:empty { display: none; }

/* Page headings & dividers */
h1.ph {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
h1.ph:has(+.ph-sub) { margin-bottom: 4px; }
/* Signed-in form: "Edit page" heading only; signed-out: pitch + sample link (body.short set server-side, toggled by app.js). */
body.short .ph-in, body:not(.short) .ph-out { display: none; }
.ph-sub {
  margin: 0 0 8px;
  font-size: .88rem;
  line-height: 1.3;
}
hr.ph-hr {
  display: block;
  border: 0;
  height: 1px;
  margin: 10px 0 16px;
  background: linear-gradient(90deg,transparent,color-mix(in srgb,var(--ink) 35%,transparent) 50%,transparent);
  opacity: .9;
}
main p.ph-sub a:not(.btn):not(#delLink), main p.ph-sub a:not(.btn):not(#delLink):visited { color: var(--wordy-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@supports not (background:color-mix(in srgb,red 50%,transparent)) {
  hr.ph-hr { background: linear-gradient(90deg,transparent,var(--line),transparent); }
}
#linkStep h2, #cd h2, #delCard h2, .item h3, .msg.good, #tap p, .intro .lead {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}

/* ==========================================================================
   8. Unified Button System (.btn, + Add page, Remove page) — light & dark
   ========================================================================== */
.btn, .sec .rm {
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--wordy-blue);
  border-radius: 10px;
  background: #3d4148;
  color: #ececec;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}
.btn {
  display: flex;
  width: 100%;
  transition: background .2s,transform .2s;
}
.sec .rm {
  display: inline-flex;
  margin: 0;
}
.btn[disabled] { opacity: .6; }
.btn.add {
  width: 50%;
  margin: 0 auto 20px;
}
.btn:hover, .sec .rm:hover { background: #4a4f57; color: #ececec; }
.btn:active, .sec .rm:active { background: #33363c; }
.btn:focus-visible, .sec .rm:focus-visible {
  outline: 2px solid var(--wordy-blue);
  outline-offset: 2px;
  background: #3d4148;
  color: #ececec;
}
body.dark .btn, body.dark .sec .rm {
  background: #ececec;
  color: #3d4148;
}
body.dark .btn:hover, body.dark .sec .rm:hover { background: #d9dcdf; color: #33363c; }
.btn.danger, body.dark .btn.danger {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}
.btn.danger:hover, body.dark .btn.danger:hover {
  background: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
}
.card:has(.msg.bad) .btn:not(.ghost), .card:has(.msg.bad) #go.btn, .cu:has(.msg.bad) .btn {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--err) 25%,transparent);
}

@media(max-width:420px) {
  #addSec.btn { width: 80%; }
}

/* ==========================================================================
   9. Desktop Breakpoint (@media min-width: 700px)
   ========================================================================== */
@media(min-width:700px) {
  .us-box { padding: 28px 32px; }
  .us-grid { grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 14px; }
  .us-f .btn { margin-right: 0; }
  main { padding-top: 0; }
  .card, .stack .sec { padding: 22px 24px; margin-bottom: 40px; }
  #f.one .card, #f.one .sec { padding: 0; margin-bottom: 16px; }
  #f.one .card.pub { margin-bottom: 0; }
  .row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; grid-template-columns: 1fr 1fr; }
  .tp-menu { width: min(50%,560px); max-width: 560px; min-width: 0; box-sizing: border-box; }
  h1.ph { font-size: 1.25rem; }
  #linkStep h2, #cd h2, #delCard h2, .item h3, .msg.good, #tap p, .intro .lead { font-size: 1.25rem; }
  .btn:not(.hdr-go), .sec .rm {
    width: calc((100% - 20px)/3);
    max-width: calc((100% - 20px)/3);
    margin-left: 0;
    margin-right: auto;
    justify-self: start;
  }
  #f #go { display: block; min-width: 0; }
  .row>.btn { flex: 0 0 calc((100% - 20px)/3); margin-right: 0; }
}

/* Header photo as background (2026-10-26, rev 2): solid bg color stays on body (canvas); the blurred photo sits IN FRONT of it at 50% opacity.
   Fixed layer (not background-attachment, which iOS ignores) so it never scrolls. body isolation keeps z-index:-1 above body's bg, below all content. */
body.has-bg-img { background: var(--bg)!important; isolation: isolate; }
body.has-bg-img::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg-img) center/cover no-repeat; transform: scale(1.12); filter: blur(28px) saturate(1.15); opacity: .5; }
