/* Swift Built digital card — page-specific, do not use on other pages */
:root {
  --ink: #15202b;
  --ink-soft: #3c4a55;
  --muted: #5c6973;
  --cream: #f4efe6;
  --paper: #fffdf8;
  --copper: #b85a28;
  --copper-dark: #8c3f16;
  --forest: #1e3c32;
  --line: #e0d6c6;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius-pill: 999px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-dark); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.card-shell {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.75rem;
}
.card-logo {
  width: 9.5rem;
  margin: 0 auto 1rem;
}
.card-logo img { width: 100%; }
.card-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  line-height: 1.15;
  text-align: center;
  margin: 0;
  color: var(--ink);
}
.card-title {
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}
.card-org {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin: 0.35rem 0 0;
  color: var(--forest);
}
.rule {
  width: 3.25rem;
  height: 3px;
  background: var(--copper);
  border: 0;
  margin: 1rem auto 1.15rem;
  border-radius: 2px;
}

.pills {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
}
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.pill svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.pill-call { background: var(--copper); color: #fff; }
.pill-call:hover { background: var(--copper-dark); color: #fff; }
.pill-text { background: var(--forest); color: #f4efe6; }
.pill-text:hover { background: #152922; color: #fff; }
.pill-mail {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.pill-mail:hover { background: var(--ink); color: var(--paper); }
.pill-save {
  background: var(--paper);
  color: var(--forest);
  border-color: var(--forest);
}
.pill-save:hover { background: var(--forest); color: #f4efe6; }

.meta {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.meta a { color: inherit; text-decoration: none; font-weight: 600; }
.meta a:hover { color: var(--copper-dark); text-decoration: underline; }

.socials {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.15rem 0 1.25rem;
}
.socials a {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: #f4efe6;
  text-decoration: none;
}
.socials a:hover { background: var(--copper); color: #fff; }
.socials svg { width: 1.2rem; height: 1.2rem; }

.extra {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
}
.extra a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.extra a:hover { border-color: var(--copper); color: var(--copper-dark); }

.contact-form-embed {
  margin: 0.5rem 0 0;
  padding: 1.1rem 1.1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.contact-form-embed h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}
.contact-form-embed > p { margin: 0; color: var(--ink-soft); }
.form-toolbar { margin: 0.75rem 0 0; }
.form-toolbar .pill { width: 100%; }
.contact-form-fallback { margin: 0.45rem 0 0; font-size: 0.95rem; }
.contact-form-fallback[hidden],
.js-load-form[hidden],
.js-close-form[hidden] { display: none !important; }
.contact-form-slot { margin-top: 0.5rem; }
.contact-form-slot iframe {
  display: block; width: 100%; max-width: 100%; border: 0; background: #fff;
}

.form-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(21, 32, 43, 0.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 0.75rem; overflow: auto; -webkit-overflow-scrolling: touch;
}
.form-overlay[hidden] { display: none !important; }
.form-dialog {
  position: relative; width: min(720px, 100%); margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  max-height: calc(100vh - 1.5rem); overflow: auto; padding: 0 1rem 1rem;
  box-shadow: 0 16px 40px rgba(21, 32, 43, 0.18);
}
.form-dialog-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: flex-end; align-items: center;
  min-height: 56px; padding: 0.4rem 0 0.35rem; background: var(--paper);
}
.form-close-x {
  box-sizing: border-box; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink); font-size: 1.7rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.form-close-x:hover, .form-close-x:focus-visible {
  border-color: var(--forest); outline: 2px solid var(--forest); outline-offset: 2px;
}
.form-close-bottom-wrap { margin: 0.85rem 0 0; }
.btn {
  display: inline-block; text-decoration: none; padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill); font-weight: 700; border: 2px solid transparent;
  font: inherit; cursor: pointer;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.card-foot {
  margin: 1.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.card-foot a { color: inherit; }

html.form-lock, body.form-lock { overflow: hidden; }

@media (min-width: 720px) {
  .card-shell { padding-top: 2.4rem; padding-bottom: 3.5rem; }
  .card-logo { width: 10.5rem; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Deploy 13: slim way-back bar. Does not restyle the card shell. */
.card-topbar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  background: #f6f4ef;
  border-bottom: 1px solid #d9d3c8;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.card-topbar-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.card-topbar-logo img {
  display: block;
  height: 1.7rem;
  width: auto;
}
.card-topbar-back {
  color: #1e3c32;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.card-topbar-back:hover,
.card-topbar-back:focus {
  text-decoration: underline;
}
@media (max-width: 420px) {
  .card-topbar { padding: 0.35rem 0.65rem; }
  .card-topbar-back { font-size: 0.8rem; }
}
