/* OurStudentParty.com marketing site — "Yearbook" design.
   Used by _MarketingLayout (home + legal pages). Event mini-sites and the admin area don't load it. */

:root {
  --mk-cobalt: #2340c8;
  --mk-cobalt-dark: #18308f;
  --mk-highlight: #ffe14d;
  --mk-ink: #1d1d24;
  --mk-paper: #fbfbf8;
  --mk-muted: #4e4f5c;
  --mk-line: #d9dae3;
  --mk-tint: #eef1fb;
  --mk-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --mk-hand: 'Caveat', 'Segoe Print', cursive;
  --mk-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mk-shadow: 0 18px 30px -24px rgba(29, 29, 36, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.mk {
  margin: 0;
  background: var(--mk-paper);
  color: var(--mk-ink);
  font-family: var(--mk-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mk a {
  color: inherit;
}

.mk a:hover {
  color: var(--mk-cobalt);
}

.mk a:focus-visible,
.mk button:focus-visible {
  outline: 3px solid var(--mk-cobalt);
  outline-offset: 3px;
}

.mk-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

.mk-skip {
  position: absolute;
  left: -9999px;
}

.mk-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: #fff;
  padding: 8px 12px;
}

/* ---------- Type helpers ---------- */
.mk-serif {
  font-family: var(--mk-serif);
  font-weight: 400;
}

.mk-hand {
  font-family: var(--mk-hand);
  color: var(--mk-cobalt);
}

.mk-hl {
  background-image: linear-gradient(transparent 55%, var(--mk-highlight) 55%, var(--mk-highlight) 92%, transparent 92%);
}

.mk em.mk-accent,
.mk-accent {
  color: var(--mk-cobalt);
}

.mk-h1 {
  margin: 0;
  overflow-wrap: break-word; /* a long single word must never push a phone sideways */
  font-family: var(--mk-serif);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.mk-h2 {
  margin: 0;
  font-family: var(--mk-serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
}

.mk-lede {
  margin: 0;
  max-width: 31em;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--mk-muted);
}

.mk-note {
  font-family: var(--mk-hand);
  font-size: 28px;
  line-height: 1.1;
  color: var(--mk-cobalt);
  transform: rotate(-2deg);
  align-self: flex-start;
}

.mk-muted {
  color: var(--mk-muted);
}

.mk-small {
  font-size: 15px;
  color: var(--mk-muted);
}

/* ---------- Buttons ---------- */
.mk-btn {
  font-family: inherit; /* <button>s don't inherit the page font by default */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 8px;
  background: var(--mk-cobalt);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  border: 0;
}

.mk a.mk-btn {
  color: #fff; /* beats ".mk a" so button links don't get blue text on blue */
}

.mk a.mk-btn:hover,
.mk-btn:hover {
  background: var(--mk-cobalt-dark);
  color: #fff;
}

.mk-btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 16px;
}

.mk-btn-lg {
  min-height: 60px;
  padding: 0 34px;
  font-size: 19px;
}

.mk-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 18px;
}

.mk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Header / footer ---------- */
.mk-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Shown only when the main nav is hidden (phones); see the 820px breakpoint */
.mk-header-signin {
  display: none;
  font-weight: 600;
  font-size: 16px;
}

.mk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.mk-logo {
  font-family: var(--mk-serif);
  font-size: 28px;
  text-decoration: none;
  white-space: nowrap;
}

.mk-logo em {
  color: var(--mk-cobalt);
}

.mk-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 600;
}

.mk-nav a {
  text-decoration: none;
}

.mk-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.mk-footer {
  background: var(--mk-ink);
  color: #d6d7e0;
  font-size: 16px;
}

.mk-footer-inner {
  padding-top: 48px;
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mk-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.mk-footer .mk-logo {
  color: #fff;
  font-size: 26px;
}

.mk-footer .mk-logo em {
  color: #fff;
}

.mk-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.mk-footer a:hover {
  color: #fff;
}

.mk-footer-legal {
  font-size: 14px;
}

/* ---------- Sections ---------- */
.mk-section {
  padding-top: clamp(72px, 10vw, 136px);
  padding-bottom: clamp(72px, 10vw, 136px);
}

.mk-band {
  background: var(--mk-tint);
  border-top: 1px solid var(--mk-line);
  border-bottom: 1px solid var(--mk-line);
}

.mk-band-cobalt {
  background: var(--mk-cobalt);
  color: #fff;
}

.mk-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px 64px;
  align-items: center;
}

.mk-split-end {
  align-items: end;
}

.mk-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Hero ---------- */
.mk-hero {
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.mk-paper {
  position: relative;
  background: #fff;
  border: 1px solid var(--mk-line);
  box-shadow: var(--mk-shadow);
}

.mk-tape {
  position: absolute;
  top: -14px;
  left: 40%;
  width: 120px;
  height: 30px;
  background: rgba(255, 225, 77, 0.75);
  transform: rotate(-3deg);
  z-index: 1;
}

.mk-ruled {
  background-image: linear-gradient(transparent 39px, rgba(35, 64, 200, 0.22) 39px, rgba(35, 64, 200, 0.22) 40px);
  background-size: 100% 40px;
  background-position: 0 12px;
}

.mk-todo {
  justify-self: center;
  width: min(100%, 500px);
  padding: 36px 32px 28px 64px;
  transform: rotate(1.5deg);
}

.mk-todo::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44px;
  width: 1.5px;
  background: rgba(214, 64, 64, 0.45);
}

.mk-todo h2 {
  margin: 0;
  font-family: var(--mk-hand);
  font-weight: 700;
  font-size: 34px;
  line-height: 40px;
}

.mk-todo ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mk-hand);
  font-size: 27px;
  line-height: 40px;
}

.mk-todo s {
  text-decoration: none;
  padding: 0 4px;
  background-image: linear-gradient(transparent 46%, var(--mk-cobalt) 46%, var(--mk-cobalt) 60%, transparent 60%);
}

.mk-todo .mk-todo-done {
  color: var(--mk-cobalt);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mk-todo-sign {
  font-family: var(--mk-hand);
  font-size: 26px;
  color: var(--mk-cobalt);
  text-align: right;
  transform: rotate(-3deg);
  margin-top: 6px;
}

/* ---------- Polaroids ---------- */
.mk-polaroids {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
}

.mk-polaroid {
  margin: 0;
  flex: 0 1 260px;
  background: #fff;
  padding: 14px 14px 18px;
  box-shadow: 0 16px 28px -20px rgba(29, 29, 36, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mk-polaroid:nth-child(1) { transform: rotate(-3deg); }
.mk-polaroid:nth-child(2) { transform: rotate(2deg); margin-top: 40px; }
.mk-polaroid:nth-child(3) { transform: rotate(-1.5deg); margin-top: 8px; }
.mk-polaroid:nth-child(4) { transform: rotate(3deg); margin-top: 56px; }

.mk-shot {
  height: 190px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  background: #0b4f5c;
  color: #fff;
}

.mk-shot-light {
  background: #fff5d1;
  color: var(--mk-ink);
  border: 1px solid #efe3b0;
}

.mk-shot-mist {
  background: #eef3f2;
  color: var(--mk-ink);
}

.mk-shot strong {
  font-size: 16px;
}

.mk-shot-row {
  display: flex;
  justify-content: space-between;
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
  color: #0f1d20;
}

.mk-shot-row-outline {
  background: transparent;
  color: inherit;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.mk-shot-row-on {
  background: #0b4f5c;
  color: #fff;
}

.mk-shot-cta {
  margin-top: auto;
  background: #ffc53d;
  color: #08323b;
  border-radius: 6px;
  padding: 7px 10px;
  font-weight: 700;
  text-align: center;
}

.mk-shot-amount {
  font-family: var(--mk-serif);
  font-size: 34px;
  line-height: 1;
}

.mk-shot-bar {
  height: 10px;
  border-radius: 999px;
  background: #efe3b0;
}

.mk-shot-bar span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 999px;
  background: #0b4f5c;
}

.mk-shot-pills {
  display: flex;
  gap: 6px;
}

.mk-shot-pills span {
  flex: 1;
  border: 1.5px solid #0b4f5c;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.mk-shot-pills span.on {
  background: #0b4f5c;
  color: #fff;
}

.mk-shot-kicker {
  color: #ffc53d;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.mk-shot-url {
  margin-top: auto;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
  align-self: flex-start;
}

.mk-polaroid figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mk-polaroid figcaption .mk-cap {
  font-family: var(--mk-hand);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.mk-polaroid figcaption span:last-child {
  font-size: 15px;
  color: var(--mk-muted);
}

/* ---------- Superlatives ---------- */
.mk-superlatives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  border-top: 2px solid var(--mk-ink);
  margin: 0;
}

.mk-superlatives div {
  display: flex;
  gap: 20px;
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--mk-line);
}

.mk-superlatives dt {
  flex: 0 0 160px;
  font-family: var(--mk-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--mk-cobalt);
}

.mk-superlatives dd {
  margin: 0;
  min-width: 0; /* let it shrink on narrow phones instead of pushing the page sideways */
  overflow-wrap: break-word;
}

/* ---------- Steps ---------- */
.mk-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
}

.mk-steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  padding-top: 16px;
}

.mk-steps .mk-step-num {
  font-family: var(--mk-hand);
  font-size: 56px;
  line-height: 1;
  color: var(--mk-highlight);
}

.mk-steps strong {
  font-size: 22px;
}

.mk-steps li span:last-child {
  color: #dfe4fb;
}

/* ---------- Fee slip ---------- */
.mk-slip {
  padding: 12px 32px 20px;
  transform: rotate(-1deg);
}

.mk-slip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  line-height: 40px;
}

.mk-slip-row.mk-muted {
  color: var(--mk-muted);
}

.mk-slip-total {
  align-items: baseline;
  padding-top: 8px;
}

.mk-slip-total .mk-hand {
  font-size: 30px;
  font-weight: 700;
}

.mk-slip-total strong {
  font-family: var(--mk-serif);
  font-weight: 400;
  font-size: 44px;
}

/* ---------- Testimonials ---------- */
.mk-quotes {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.mk-quote {
  margin: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mk-quote blockquote {
  margin: 0;
}

.mk-quote-lead {
  flex: 1.6 1 440px;
  padding: 32px;
  gap: 16px;
  transform: rotate(-1deg);
}

.mk-quote-lead blockquote {
  font-family: var(--mk-serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
}

.mk-quote-lead figcaption {
  font-family: var(--mk-hand);
  font-size: 28px;
  color: var(--mk-cobalt);
}

.mk-quote-side {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mk-quote-note blockquote {
  font-family: var(--mk-hand);
  font-size: 28px;
  line-height: 1.15;
}

.mk-quote-note figcaption {
  font-size: 15px;
  color: var(--mk-muted);
}

.mk-quote-yellow {
  background: #fff5d1;
  transform: rotate(2deg);
}

.mk-quote-white {
  transform: rotate(-1.5deg);
}

/* ---------- Sample site card ---------- */
.mk-sample {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  background: #fff;
  padding: 16px 16px 24px;
  transform: rotate(-1.5deg);
  box-shadow: 0 18px 30px -22px rgba(29, 29, 36, 0.55);
}

.mk-sample-shot {
  height: 200px;
  background: #0b4f5c;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 6px;
}

.mk-sample-shot strong {
  font-size: 30px;
  line-height: 1;
}

.mk-sample .mk-hand {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.mk-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.mk-cta {
  border-top: 2px solid var(--mk-ink);
}

/* ---------- FAQ (/for/ landing pages) ---------- */
.mk-faq {
  margin: 0;
  border-top: 2px solid var(--mk-ink);
}

.mk-faq div {
  padding: 22px 0;
  border-bottom: 1px solid var(--mk-line);
}

.mk-faq dt {
  font-family: var(--mk-serif);
  font-size: 22px;
  margin-bottom: 8px;
}

.mk-faq dd {
  margin: 0;
  max-width: 60em;
  color: var(--mk-muted);
}

/* ---------- Fee comparison (/compare) ---------- */
.mk-compare-wrap {
  margin: 0;
  background: #fff;
  border: 1px solid var(--mk-line);
}

.mk-compare-wrap:focus-visible {
  outline: 3px solid var(--mk-cobalt);
  outline-offset: 2px;
}

.mk-compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  font-size: 16px;
}

.mk-compare-table caption {
  padding: 16px 16px 8px;
  text-align: left;
  font-weight: 700;
}

.mk-compare-table th,
.mk-compare-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--mk-line);
}

.mk-compare-table thead th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--mk-ink);
}

.mk-compare-table tbody th {
  font-weight: 700;
}

.mk-compare-table a {
  color: var(--mk-cobalt);
}

.mk-compare-table .mk-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mk-compare-table td:last-child {
  min-width: 240px;
  color: var(--mk-muted);
  font-size: 15px;
}

.mk-compare-table tbody th {
  min-width: 150px;
}

.mk-compare-us {
  background: var(--mk-highlight);
}

.mk-compare-us td:last-child {
  color: var(--mk-ink);
}

/* ---------- Legal pages ---------- */
.mk-legal-title {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.mk-legal-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 15px;
}

.mk-legal-meta div {
  display: flex;
  gap: 8px;
}

.mk-legal-meta dt {
  color: var(--mk-muted);
}

.mk-legal-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere; /* long email addresses wrap on narrow phones */
}

.mk-summary {
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: rotate(1deg);
}

.mk-summary h2 {
  margin: 0;
  font-family: var(--mk-hand);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--mk-cobalt);
}

.mk-summary ul,
.mk-summary ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
}

.mk-legal-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding-bottom: clamp(72px, 10vw, 136px);
}

.mk-toc {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  border-top: 2px solid var(--mk-ink);
  padding-top: 14px;
}

.mk-toc-label {
  font-family: var(--mk-hand);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--mk-cobalt);
  padding-bottom: 8px;
}

.mk-toc a {
  text-decoration: none;
  padding: 5px 0;
}

.mk-legal {
  max-width: 760px;
}

.mk-legal section {
  padding: 48px 0;
  border-top: 1px solid var(--mk-line);
  scroll-margin-top: 24px;
}

.mk-legal section:first-child {
  border-top: 2px solid var(--mk-ink);
  padding-top: 14px;
}

.mk-legal .mk-section-label {
  font-family: var(--mk-hand);
  font-size: 26px;
  line-height: 1;
  color: var(--mk-cobalt);
  padding: 0 0 8px;
}

.mk-legal section:first-child .mk-section-label {
  padding-top: 18px;
}

.mk-legal h2 {
  margin: 0 0 16px;
  font-family: var(--mk-serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.05;
}

.mk-legal h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.mk-legal p {
  margin: 0 0 14px;
}

.mk-legal ul,
.mk-legal ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.mk-legal li {
  margin-bottom: 6px;
}

.mk-legal a {
  color: var(--mk-cobalt);
}

.mk-table-wrap {
  overflow-x: auto;
  margin: 8px 0 18px;
}

.mk-legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  min-width: 560px;
}

.mk-legal th,
.mk-legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--mk-line);
}

.mk-legal th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 2px solid var(--mk-ink);
}

@media (max-width: 900px) {
  .mk-legal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .mk-toc {
    position: static;
  }
}

@media (max-width: 820px) {
  .mk-nav {
    display: none;
  }

  .mk-header-signin {
    display: inline;
  }

  .mk-header {
    gap: 12px;
  }

  .mk-header-actions {
    gap: 14px;
  }

  .mk-header-actions a {
    white-space: nowrap;
  }

  .mk-header .mk-btn-sm {
    padding: 0 14px;
  }
}

@media (max-width: 420px) {
  .mk-header .mk-logo {
    font-size: 23px;
  }
}

@media (max-width: 360px) {
  .mk-header .mk-logo {
    font-size: 20px;
  }

  .mk-header-actions {
    gap: 10px;
  }
}

@media (max-width: 340px) {
  .mk-header .mk-logo {
    font-size: 18px;
  }

  .mk-header-actions {
    gap: 8px;
  }

  .mk-header-signin {
    font-size: 15px;
  }

  .mk-header .mk-btn-sm {
    padding: 0 10px;
    font-size: 15px;
  }

}

@media (max-width: 600px) {
  .mk-polaroid,
  .mk-polaroid:nth-child(n) {
    margin-top: 0;
  }

  .mk-todo {
    padding-left: 52px;
  }

  .mk-todo::before {
    left: 34px;
  }

  .mk-superlatives dt {
    flex-basis: 120px;
  }
}

/* ---------- Forms: sign in, create account (no Bootstrap on marketing pages) ---------- */
.mk-auth {
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.mk-card {
  padding: clamp(24px, 4vw, 40px);
}

.mk-card h2 {
  margin: 0 0 6px;
  font-family: var(--mk-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.05;
}

.mk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.mk-label {
  font-weight: 600;
  font-size: 16px;
}

.mk-input,
.mk-select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid #80839a; /* 3.7:1 on white, WCAG non-text contrast */
  border-radius: 8px;
  background: #fff;
  color: var(--mk-ink);
  font: inherit;
  font-size: 17px;
}

.mk-input::placeholder {
  color: #6b6e80;
}

.mk-input:focus,
.mk-select:focus,
.mk-switch input:focus-visible {
  outline: 3px solid var(--mk-cobalt);
  outline-offset: 2px;
  border-color: var(--mk-cobalt);
}

.mk-input-code {
  text-align: center;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.3em;
}

.mk-hint {
  font-size: 15px;
  color: var(--mk-muted);
}

.mk-error,
.mk .field-validation-error {
  font-size: 15px;
  color: #b42318;
}

.mk-error:empty,
.mk .field-validation-valid {
  display: none;
}

.mk-alert {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 16px;
}

.mk-alert ul {
  margin: 0;
  padding-left: 20px;
}

.mk-alert-error {
  background: #fdeceb;
  border-color: #f0b4ad;
  color: #7a1a12;
}

.mk-alert-success {
  background: #e8f5ec;
  border-color: #a7d7b5;
  color: #14532d;
}

.mk-alert-info {
  background: var(--mk-tint);
  border-color: #c5cdf1;
  color: var(--mk-ink);
}

.mk-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 16px;
  cursor: pointer;
}

.mk-switch input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--mk-cobalt);
  cursor: pointer;
}

.mk-btn-block {
  width: 100%;
}

.mk-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mk-btn-ghost,
.mk a.mk-btn-ghost {
  background: transparent;
  color: var(--mk-ink);
  border: 2px solid var(--mk-ink);
}

.mk-btn-ghost:hover,
.mk a.mk-btn-ghost:hover {
  background: var(--mk-ink);
  color: #fff;
}

.mk-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
  font-size: 15px;
  color: var(--mk-muted);
}

.mk-divider::before,
.mk-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mk-line);
}

.mk-card-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--mk-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.mk-turnstile {
  margin-bottom: 20px;
  min-height: 65px;
}

.mk-spinner {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mk-spin 0.75s linear infinite;
}

.mk-spinner.d-none {
  display: none;
}

@keyframes mk-spin {
  to { transform: rotate(360deg); }
}

/* One-time code panel on sign in; Admin/Login/Login.cshtml's script toggles .collapsed */
.mk .one-time-code-section {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 260px;
  opacity: 1;
}

.mk .one-time-code-section.collapsed {
  max-height: 0;
  opacity: 0;
  visibility: hidden; /* keep the hidden code field out of the tab order */
}

@media (prefers-reduced-motion: reduce) {
  .mk .one-time-code-section,
  .mk-spinner {
    transition: none;
    animation: none;
  }
}

/* ---------- Easy Setup (Areas/Admin/EasySetup, first stop after a new account confirms) ---------- */
.mk-header-focused .mk-header-signin {
  display: inline; /* the only header link here, so show it at every width */
}

.mk [hidden] {
  display: none !important; /* .mk-btn etc. set display, which would beat the hidden attribute */
}

.mk-setup {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.mk-setup-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 32px;
}

.mk-setup-h1 {
  font-size: clamp(44px, 5.5vw, 80px);
}

.mk-setup-card {
  scroll-margin-top: 16px;
}

.mk-setup-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.mk-setup-count {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--mk-muted);
}

.mk-progress {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--mk-tint);
  overflow: hidden;
}

.mk-progress-bar {
  height: 100%;
  background: var(--mk-cobalt);
  transition: width 0.3s ease;
}

.mk-setup-q {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  font-family: var(--mk-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
}

.mk-setup-q:focus {
  outline: none;
}

.mk-setup-q:focus-visible {
  outline: 3px solid var(--mk-cobalt);
  outline-offset: 4px;
}

.mk-setup .mk-hint {
  margin: 8px 0 16px;
}

.mk-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.mk-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--mk-line);
  border-radius: 8px;
  background: #fff;
  font-size: 17px;
  cursor: pointer;
}

.mk-choice:hover {
  border-color: #80839a;
}

.mk-choice:has(input:checked) {
  border-color: var(--mk-cobalt);
  background: var(--mk-tint);
}

.mk-choice:has(input:disabled) {
  cursor: default;
}

.mk-choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--mk-cobalt);
  cursor: inherit;
}

.mk-choice input:focus-visible {
  outline: 3px solid var(--mk-cobalt);
  outline-offset: 2px;
}

.mk-setup .mk-choice-sub {
  display: block;
  margin: 2px 0 0;
  font-size: 15px;
}

.mk-input[aria-invalid="true"] {
  border-color: #b42318;
}

.mk-input-sm {
  min-height: 44px;
  font-size: 16px;
}

.mk-slug {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #80839a;
  border-radius: 8px;
  background: #fff;
}

.mk-slug:focus-within {
  outline: 3px solid var(--mk-cobalt);
  outline-offset: 2px;
  border-color: var(--mk-cobalt);
}

.mk-slug-prefix {
  display: flex;
  align-items: center;
  padding: 0 4px 0 14px;
  color: var(--mk-muted);
  font-size: 16px;
  white-space: nowrap;
}

.mk-slug .mk-input {
  min-width: 0;
  border: 0;
  padding-left: 2px;
}

.mk-slug .mk-input:focus {
  outline: none;
}

.mk-setup .mk-slug-ok {
  color: #14632f;
  font-weight: 600;
}

.mk-setup .mk-slug-bad {
  color: #b42318;
  font-weight: 600;
}

.mk-money {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  font-size: 20px;
  font-weight: 600;
}

.mk-money-sm {
  max-width: 160px;
  font-size: 16px;
}

.mk-link-plain {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--mk-cobalt);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.mk-link-plain:hover {
  color: var(--mk-cobalt-dark);
}

.mk-setup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.mk-setup-row .mk-hint {
  margin: 0;
  flex: 1 1 220px;
}

.mk-setup-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.mk-setup-table caption {
  margin-bottom: 8px;
  text-align: left;
  font-weight: 600;
}

.mk-setup-table th {
  padding: 0 8px 6px 0;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mk-muted);
}

.mk-setup-table td {
  padding: 4px 8px 4px 0;
  vertical-align: middle;
}

.mk-setup-table th:last-child,
.mk-setup-table td:last-child {
  padding-right: 0;
}

.mk-col-num {
  width: 96px;
}

.mk-setup-more {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--mk-line);
}

.mk-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 16px;
  margin-top: 16px;
}

.mk-setup-email {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mk-setup-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.mk-setup-nav .mk-btn {
  min-width: 120px;
}

.mk-setup-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--mk-line);
  font-size: 15px;
}

.mk-setup-foot .mk-link-plain {
  font-size: 15px;
  font-weight: 500;
  color: var(--mk-muted);
}

.mk-setup-foot #reset-confirm .mk-link-plain {
  margin-left: 8px;
  color: var(--mk-cobalt);
}

@media (max-width: 900px) {
  .mk-setup {
    grid-template-columns: 1fr;
  }

  .mk-setup-intro {
    position: static;
  }
}

@media (max-width: 420px) {
  .mk-setup-nav .mk-btn {
    min-width: 0;
    flex: 1;
  }

  .mk-slug-prefix {
    font-size: 14px;
    padding-left: 10px;
  }

  .mk-col-num {
    width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-progress-bar {
    transition: none;
  }
}

/* ---------- Payment receipt (Features/Receipt, standalone page) ---------- */
.mk-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mk-receipt-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 16px 48px;
}

.mk-receipt {
  padding: clamp(24px, 5vw, 48px);
}

.mk-receipt-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--mk-ink);
}

.mk-receipt-org {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-cobalt);
  overflow-wrap: anywhere;
}

.mk-receipt-title {
  margin: 0;
  font-family: var(--mk-serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 64px);
  line-height: 1;
}

.mk-receipt-type {
  margin: 6px 0 0;
  color: var(--mk-muted);
  overflow-wrap: anywhere;
}

.mk-receipt-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 32px;
  margin: 28px 0 32px;
}

.mk-receipt-meta dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-muted);
}

.mk-receipt-meta dd {
  margin: 4px 0 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mk-receipt-sub {
  display: block;
  font-size: 15px;
  color: var(--mk-muted);
}

.mk-receipt-mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 15px;
}

.mk-receipt-h2 {
  margin: 0 0 8px;
  font-family: var(--mk-serif);
  font-weight: 400;
  font-size: 28px;
}

.mk-receipt-items {
  width: 100%;
  border-collapse: collapse;
}

.mk-receipt-items td,
.mk-receipt-items th {
  padding: 14px 0;
  border-bottom: 1px solid var(--mk-line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.mk-receipt-items td:last-child {
  padding-left: 16px;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.mk-receipt-items tfoot th,
.mk-receipt-items tfoot td {
  border-bottom: 0;
  border-top: 2px solid var(--mk-ink);
  padding-top: 18px;
  font-size: 22px;
  font-weight: 700;
}

.mk-receipt-thanks {
  margin: 32px 0 0;
  font-family: var(--mk-serif);
  font-size: 24px;
  color: var(--mk-cobalt);
}

.mk-receipt-foot {
  margin-top: 28px;
  font-size: 15px;
  color: var(--mk-muted);
  text-align: center;
}

.mk-receipt-foot p {
  margin: 0 0 12px;
}

.mk-receipt-foot nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.mk-receipt-foot a {
  color: var(--mk-ink);
}

@media print {
  body.mk-receipt-page {
    background: #fff;
  }

  .mk-no-print,
  .mk-receipt .mk-tape {
    display: none !important;
  }

  .mk-receipt-wrap {
    padding: 0;
  }

  .mk-receipt {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
