/* S2G MCX Phase 1 mockups — Prototype A coastal theme */
:root {
  --sand: #F6EFE4;
  --sand-deep: #E8D9C3;
  --cream: #FBF7F0;
  --ink: #1C2A33;
  --ink-soft: #3D4C55;
  --teal: #2A6F7F;
  --teal-dark: #1A4A56;
  --sunset: #D4693A;
  --gold: #C4A265;
  --sky: #7BA7B5;
  --white: #FFFCFA;
  --rule: rgba(28,42,51,.12);
  --shadow: 0 20px 50px rgba(26,74,86,.12);
}
@font-face {
  font-family: Outfit;
  src: url("/assets/fonts/outfit.woff2") format("woff2-variations"),
       url("/assets/fonts/outfit.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2-variations"),
       url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2-variations"),
       url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--sunset); outline-offset: 3px; }
::selection { background: #F0C9B0; color: var(--ink); }
.wrap { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }

/* Nav */
.site-header { background: var(--cream); border-bottom: 1px solid var(--rule); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .02em;
}
.brand img { height: 36px; width: auto; display: block; }
.brand span {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-dark); }
.nav-links a[aria-current="page"] { font-weight: 600; }

.brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; flex: 0 0 auto; }
.back-home {
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  white-space: nowrap;
}
.back-home:hover, .back-home:focus-visible { text-decoration: underline; }
.site-footer .back-home { color: var(--gold); align-self: center; }

.btn, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .04em;
  padding: .9rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit;
}
.btn { background: var(--sunset); color: #fff; }
.btn:hover { background: #c45a2f; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(28,42,51,.25);
}
.btn-ghost:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.btn-danger { background: #8B3A3A; color: #fff; }
.btn-sm { padding: .45rem .85rem; font-size: .78rem; letter-spacing: .03em; }
.btn-teal { background: var(--teal-dark); color: #fff; }
.btn-teal:hover { background: #143840; }

.kicker {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: .8rem;
}

/* Landing hero */
.hero {
  background:
    radial-gradient(ellipse 80% 70% at 80% 20%, rgba(123,167,181,.35), transparent 55%),
    linear-gradient(180deg, #e8eef0 0%, var(--sand) 70%);
  padding: 4.2rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--teal-dark);
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: italic; color: var(--ink); }
.hero-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 36rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(28,42,51,.06);
}
.hero-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem; font-weight: 600; margin-bottom: .4rem;
}
.hero-card p { color: var(--ink-soft); font-size: .95rem; }
.session-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #e7f3f1; color: var(--teal-dark);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2e8b6a; box-shadow: 0 0 0 4px rgba(46,139,106,.18); }

.steps { padding: 4rem 0 4.5rem; background: var(--cream); }
.steps h2, .plain h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; margin-bottom: 1.6rem;
}
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step {
  background: var(--white); border-radius: 16px; padding: 1.4rem 1.3rem;
  border: 1px solid var(--rule);
}
.step .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem; color: var(--gold); font-weight: 600; line-height: 1;
  margin-bottom: .5rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .92rem; }

.site-footer {
  background: var(--teal-dark); color: var(--cream); padding: 2rem 0;
  font-size: .85rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer small { color: rgba(251,247,240,.7); }

/* Forms */
.page-main { padding: 3.2rem 0 4rem; }
.form-card {
  max-width: 36rem; margin: 0 auto;
  background: var(--white); border-radius: 20px;
  box-shadow: var(--shadow); padding: 2.2rem 2rem;
  border: 1px solid rgba(28,42,51,.06);
}
.form-card h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem; font-weight: 600; margin-bottom: .4rem;
}
.form-card .lead { color: var(--ink-soft); margin-bottom: 1.5rem; }
label { display: block; font-size: .82rem; font-weight: 600; margin: 0 0 .35rem; color: var(--ink); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; padding: .7rem .85rem; border-radius: 10px;
  border: 1px solid rgba(28,42,51,.2); background: var(--cream);
  font: inherit; color: var(--ink); margin-bottom: 1rem;
}
.consent {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .88rem; color: var(--ink-soft); margin: .4rem 0 1.3rem;
}
.consent input { margin-top: .25rem; accent-color: var(--teal-dark); }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 1rem; }
.form-card .btn { width: 100%; }

/* Waiting room */
.waiting {
  min-height: calc(100vh - 140px);
  display: grid; place-items: center;
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(123,167,181,.28), transparent 60%),
    var(--sand);
}
.waiting-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem;
  align-items: center; width: min(1040px, calc(100% - 2.5rem)); margin-inline: auto;
}
.preview {
  aspect-ratio: 16/10;
  border-radius: 18px;
  background:
    radial-gradient(circle at 40% 35%, #7BA7B5, transparent 45%),
    linear-gradient(160deg, #1A4A56, #3D4C55);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.preview .you {
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(160deg, #E8D9C3, #7BA7B5 70%);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: grid; place-items: center;
  color: var(--teal-dark); font-weight: 600; font-size: 1.4rem; letter-spacing: .06em;
  border: 3px solid rgba(255,252,250,.7);
}
.preview .nameplate {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(28,42,51,.72); color: #fff;
  padding: .3rem .7rem; border-radius: 8px; font-size: .8rem;
}
.waiting-copy h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem; font-weight: 600; line-height: 1.15; margin-bottom: .7rem;
}
.waiting-copy p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.dev-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1.2rem; }
.toggles { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }

/* In-call */
body.call { background: #1a242b; color: var(--cream); height: 100vh; overflow: hidden; }
.call-app { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; }
.call-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.1rem; background: #12191e; border-bottom: 1px solid rgba(255,255,255,.06);
}
.call-top .brand span, .call-top .brand { color: #dfe7ea; }
.call-top .brand img { height: 28px; filter: brightness(0) invert(1); }
.call-meta { display: flex; align-items: center; gap: 1rem; font-size: .82rem; color: #b7c4c9; }
.call-stage {
  display: grid; grid-template-columns: 1fr 280px; gap: 12px;
  padding: 12px 12px 0; min-height: 0;
}
.stage-main {
  min-height: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px;
}
.presenter .mono {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.2rem; font-weight: 600; color: rgba(255,252,250,.22);
  letter-spacing: .04em; pointer-events: none;
}
.presenter {
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, #4a7c8a, transparent 50%),
    linear-gradient(165deg, #1A4A56 0%, #2A6F7F 45%, #D4693A 130%);
  display: grid; place-items: end stretch;
}
.presenter .label {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(18,25,30,.78); padding: .35rem .75rem; border-radius: 8px; font-size: .85rem;
}
.presenter .badge {
  position: absolute; left: 14px; top: 14px;
  background: var(--sunset); color: #fff; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; padding: .25rem .55rem; border-radius: 6px;
}
.filmstrip {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px;
}
.tile {
  aspect-ratio: 16/11; border-radius: 10px; overflow: hidden; position: relative;
  background: #2c3a42; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.06);
}
.tile .av {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: .85rem; color: var(--teal-dark);
  background: var(--sand-deep);
}
.tile .cap {
  position: absolute; left: 6px; right: 6px; bottom: 5px;
  font-size: .68rem; color: #fff; text-shadow: 0 1px 2px #000;
  display: flex; justify-content: space-between; align-items: center; gap: 4px;
}
.tile.off { background: #243038; }
.tile.hand { outline: 2px solid var(--gold); }
.tile .icons { font-size: .7rem; opacity: .9; }
.side {
  background: #12191e; border-radius: 16px; display: grid;
  grid-template-rows: auto 1fr auto; min-height: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.side h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: .85rem 1rem .4rem; color: #9eafb6; font-weight: 600; }
.roster { overflow: auto; padding: 0 .55rem .6rem; }
.roster-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center;
  padding: .4rem .45rem; border-radius: 8px; font-size: .8rem;
}
.roster-row:hover { background: rgba(255,255,255,.04); }
.roster-row .mini {
  width: 26px; height: 26px; border-radius: 50%; background: var(--sand-deep);
  display: grid; place-items: center; color: var(--teal-dark); font-size: .65rem; font-weight: 700;
}
.roster-row .st { color: #8aa0a8; font-size: .72rem; }
.chat {
  border-top: 1px solid rgba(255,255,255,.06); padding: .7rem;
  display: grid; grid-template-rows: 1fr auto; gap: .5rem; height: 190px;
}
.chat-log { overflow: auto; font-size: .8rem; color: #d5dfe3; }
.chat-log p { margin-bottom: .4rem; }
.chat-log b { color: #fff; font-weight: 600; }
.chat input {
  background: #1a242b; border: 1px solid rgba(255,255,255,.1);
  color: #fff; border-radius: 8px; padding: .45rem .6rem; margin: 0; font: inherit;
}
.call-bar {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem; background: #12191e; border-top: 1px solid rgba(255,255,255,.06);
}
.ctrl {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #2a353c; color: #fff; font-size: .7rem; font-weight: 600;
  letter-spacing: .02em; font-family: inherit;
  display: grid; place-items: center; text-align: center; line-height: 1.1;
}
.ctrl.on { background: #2A6F7F; }
.ctrl.warn { background: var(--gold); color: var(--ink); }
.ctrl.leave { background: #8B3A3A; width: auto; padding: 0 1.1rem; border-radius: 999px; font-size: .8rem; }

/* Phone in-call */
body.call-phone { background: #12191e; height: 100vh; overflow: hidden; color: var(--cream); }
.phone-app { display: grid; grid-template-rows: auto 1fr auto auto; height: 100vh; }
.phone-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .8rem; font-size: .72rem; color: #b7c4c9;
}
.phone-presenter {
  margin: 0 .7rem; border-radius: 14px; position: relative; min-height: 0;
  background:
    radial-gradient(circle at 40% 35%, #4a7c8a, transparent 50%),
    linear-gradient(165deg, #1A4A56, #2A6F7F 60%, #D4693A);
}
.phone-presenter .label {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(18,25,30,.78); padding: .25rem .55rem; border-radius: 7px; font-size: .75rem;
}
.phone-strip {
  display: flex; gap: 8px; overflow: hidden; padding: .65rem .7rem .2rem;
}
.phone-strip .tile { flex: 0 0 28%; aspect-ratio: 1; }
.phone-bar {
  display: flex; justify-content: space-around; align-items: center;
  padding: .7rem .6rem 1.1rem; gap: .3rem;
}
.phone-bar .ctrl { width: 44px; height: 44px; font-size: .62rem; }

/* Admin Windows chrome */
body.admin {
  background: #3a4a52;
  height: 100vh; overflow: hidden;
  display: grid; place-items: center;
  font-size: 14px;
}
.desktop-bg {
  width: 100vw; height: 100vh;
  background:
    radial-gradient(ellipse at 20% 0%, #5a7a82, transparent 50%),
    linear-gradient(180deg, #4a5e66, #2c3a40);
  display: grid; place-items: center; padding: 14px;
}
.win {
  width: 100%; height: 100%;
  background: #f4efe7;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  display: grid; grid-template-rows: 36px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
}
.win-title {
  background: #ece6dc;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 0 12px;
  border-bottom: 1px solid rgba(28,42,51,.1);
  user-select: none;
}
.win-title .cap {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.win-title .cap img { height: 18px; width: auto; }
.win-btns { display: flex; height: 100%; }
.win-btns span {
  width: 46px; height: 100%; display: grid; place-items: center;
  color: var(--ink-soft); font-size: 12px;
}
.win-btns span.close { width: 48px; }
.win-body { display: grid; grid-template-columns: 220px 1fr; min-height: 0; }
.admin-nav {
  background: var(--teal-dark); color: var(--cream);
  padding: 1rem .8rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.admin-nav .who { font-size: .75rem; color: rgba(251,247,240,.7); margin: 0 .5rem 1rem; }
.admin-nav a {
  color: var(--cream); text-decoration: none; border-radius: 8px;
  padding: .55rem .7rem; font-size: .88rem; font-weight: 500;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); }
.admin-nav a.on { background: rgba(255,255,255,.14); font-weight: 600; }
.admin-main { padding: 1.1rem 1.2rem 1rem; overflow: auto; min-width: 0; }
.admin-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1rem;
}
.admin-head h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem; font-weight: 600; line-height: 1.15;
}
.admin-head p { color: var(--ink-soft); font-size: .88rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .45rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: 1rem; }
.stat {
  background: var(--white); border-radius: 12px; padding: .75rem .9rem;
  border: 1px solid var(--rule);
}
.stat b { display: block; font-size: 1.25rem; font-weight: 650; color: var(--teal-dark); }
.stat span { font-size: .75rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.panel {
  background: var(--white); border-radius: 12px; border: 1px solid var(--rule); overflow: hidden;
}
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
th { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; background: #faf7f2; }
tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 600; padding: .12rem .45rem; border-radius: 999px;
}
.pill.ok { background: #e3f2ea; color: #1d6b45; }
.pill.off { background: #ececec; color: #5a5a5a; }
.pill.fair { background: #f4ead0; color: #7a5b12; }
.pill.poor { background: #f6e0da; color: #8b3a3a; }
.pill.live { background: #e7f3f1; color: var(--teal-dark); }
.actions { display: flex; gap: .3rem; flex-wrap: nowrap; }
.actions button {
  border: 1px solid var(--rule); background: var(--cream); color: var(--ink);
  border-radius: 6px; padding: .22rem .45rem; font: inherit; font-size: .7rem;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.actions button.danger { color: #8B3A3A; }
.toggle-row {
  display: flex; align-items: center; gap: .6rem; margin-top: .4rem;
  font-size: .82rem; color: var(--ink-soft);
}
.toggle-row input { accent-color: var(--teal-dark); }
.muted { color: var(--ink-soft); }
.table-foot { padding: .55rem .8rem; font-size: .75rem; color: var(--ink-soft); background: #faf7f2; }

@media (max-width: 860px) {
  .hero-grid, .waiting-grid, .step-grid { grid-template-columns: 1fr; }
  .brand img { height: 30px; }
  .nav-links { display: none; }
  .hero { padding: 2.4rem 0 3rem; }
  .form-card { padding: 1.5rem 1.2rem; }
}

/* App additions (live /mcx, not mockup-only) */
.nav-links { flex-wrap: wrap; }
.lang-switch { display: flex; align-items: center; gap: .45rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.lang-switch a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.lang-switch a[aria-current="true"], .lang-switch a:hover { color: var(--teal-dark); }
.nav-user { font-size: .85rem; color: var(--ink-soft); }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.alert {
  border-radius: 12px; padding: .85rem 1rem; margin: 0 0 1.1rem; font-size: .92rem;
  border: 1px solid var(--rule);
}
.alert-error { background: #f6e0da; color: #8b3a3a; border-color: #e8c4bb; }
.alert-ok { background: #e3f2ea; color: #1d6b45; border-color: #c5e0d0; }
.alert-info { background: #e7f3f1; color: var(--teal-dark); border-color: #c9ded9; }
.field-error { color: #8b3a3a; font-size: .78rem; margin: -.4rem 0 .8rem; }
input.invalid { border-color: #c47a6a; }
.form-card form { display: grid; }
.form-note { margin-top: 1.1rem; color: var(--ink-soft); font-size: .88rem; }
.admin-grid { display: grid; gap: 1.5rem; }
.admin-card {
  background: var(--cream); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: var(--shadow); padding: 1.3rem 1.3rem 1rem; overflow: auto;
}
.admin-card h1, .admin-card h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.settings-form { display: grid; gap: 0; max-width: 32rem; }
.settings-form .btn { width: auto; justify-self: start; margin-top: .6rem; }
.join-card { max-width: 36rem; margin: 0 auto; }
#zmmtg-root, #aria-notify-area { /* Zoom Meeting SDK Client View mounts here */ }
.join-sdk-note { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }
.page-main { padding: 2.4rem 0 3.5rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .nav-links { display: flex; }
  .name-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; align-items: flex-start; }
  .brand-block { width: 100%; }
  .back-home { font-size: .8rem; padding: .15rem 0 .25rem; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: .55rem; }
  .site-footer .back-home { order: -1; }
}

.field-note { font-size: .82rem; color: var(--ink-soft); margin: -.35rem 0 .85rem; }
input[readonly] { background: var(--cream, #f4f1ea); color: var(--ink-soft); cursor: not-allowed; }
.nav-user a { color: inherit; text-decoration: none; }
.nav-user a:hover { text-decoration: underline; }
