.endorse-page { padding-bottom: 76px; }
.endorse-intro {
  position: relative;
  overflow: hidden;
  padding: 58px 0 52px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(201, 168, 91, .21), transparent 25%),
    linear-gradient(125deg, #082a1b, #0b3d24 58%, #12613a);
}
.endorse-intro::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -180px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.025);
}
.endorse-kicker {
  color: #e4c77e;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.endorse-intro h1 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  letter-spacing: -.045em;
  line-height: 1.05;
}
.endorse-intro p { max-width: 650px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.02rem; }
.endorse-workspace {
  display: grid;
  grid-template-columns: minmax(290px, .82fr) minmax(360px, 1fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
  padding-top: 44px;
}
.endorse-form, .endorse-preview { min-width: 0; }
.endorse-form {
  padding: 28px;
  border: 1px solid #e6e9e5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(8, 42, 27, .08);
}
.endorse-form-heading, .endorse-preview-heading, .endorse-preview-heading > div {
  display: flex;
  align-items: center;
}
.endorse-form-heading { gap: 14px; margin-bottom: 24px; }
.endorse-step {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--deep);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.endorse-form-heading h2, .endorse-preview-heading h2 { margin: 0; color: var(--deep-dark); font-size: 1.2rem; }
.endorse-form-heading p { margin: 2px 0 0; color: var(--gray-600); font-size: .88rem; }
.endorse-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 16px;
  border: 1px dashed #9aab9e;
  border-radius: 12px;
  background: #f7faf7;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.endorse-upload:hover, .endorse-upload:focus-within { border-color: var(--green); background: #f0f8f2; }
.endorse-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.endorse-upload-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--deep);
  background: #e5efe7;
  font-size: 1.8rem;
  font-weight: 300;
}
.endorse-upload strong, .endorse-upload small { display: block; }
.endorse-upload strong { color: var(--deep-dark); font-size: .94rem; }
.endorse-upload small { margin-top: 3px; color: var(--gray-600); font-size: .76rem; }
.endorse-field { margin-top: 18px; }
.endorse-field label { display: block; margin-bottom: 6px; color: #26332a; font-size: .87rem; font-weight: 700; }
.endorse-field label span { color: var(--red); }
.endorse-field label small { margin-left: 5px; color: var(--gray-600); font-size: .75rem; font-weight: 500; }
.endorse-field input {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #d8ded9;
  border-radius: 9px;
  outline: none;
  color: var(--gray-900);
  background: #fff;
  font: inherit;
  font-size: .94rem;
}
.endorse-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,162,80,.12); }
.endorse-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 20px 0; color: var(--gray-600); font-size: .79rem; line-height: 1.5; }
.endorse-privacy span { font-size: .9rem; }
.endorse-create, .endorse-download {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--deep);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s, background .18s, opacity .18s;
}
.endorse-create:hover:not(:disabled), .endorse-download:hover:not(:disabled) { transform: translateY(-1px); background: #12613a; }
.endorse-create:disabled, .endorse-download:disabled { opacity: .46; cursor: not-allowed; }
.endorse-create span { font-size: 1.2rem; }
.endorse-error { min-height: 1.2em; margin: 8px 0 0; color: #a40f20; font-size: .82rem; }
.endorse-preview { position: sticky; top: 105px; }
.endorse-preview-heading { justify-content: space-between; gap: 12px; margin: 0 0 15px; }
.endorse-preview-heading > div { gap: 12px; }
.endorse-format { color: var(--gray-600); font-size: .76rem; white-space: nowrap; }
.endorse-canvas-wrap {
  overflow: hidden;
  border: 1px solid rgba(11,61,36,.12);
  border-radius: 14px;
  background: #e9eee9;
  box-shadow: 0 20px 55px rgba(8, 42, 27, .16);
}
.endorse-canvas-wrap canvas { display: block; width: 100%; height: auto; }
.endorse-download { margin-top: 18px; color: #fff; background: var(--red); }
.endorse-download:hover:not(:disabled) { background: #ad0e20; }
.endorse-download span { font-size: 1.25rem; }
.endorse-share-note { margin: 10px 0 0; color: var(--gray-600); font-size: .82rem; text-align: center; }
.endorse-page + .site-footer { margin-top: 0; }
.endorse-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: #354239; font-size: .82rem; line-height: 1.5; }
.endorse-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--deep); }
.endorse-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.endorse-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.endorse-actions .endorse-download, .endorse-actions .endorse-share { margin: 0; }
.endorse-share {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #cbd6ce;
  border-radius: 10px;
  color: var(--deep);
  background: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s, border-color .18s, opacity .18s;
}
.endorse-share:hover:not(:disabled) { border-color: var(--green); background: #f0f8f2; }
.endorse-share:disabled { opacity: .46; cursor: not-allowed; }
.endorse-view-list {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #cbd6ce;
  border-radius: 10px;
  color: var(--deep);
  background: #fff;
  font-size: .9rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.endorse-view-list:hover { border-color: var(--green); background: #f5faf6; }
.home-endorse-section { padding: 28px 0 34px; background: #f7f9f7; }
.home-endorse-container { max-width: 900px; }
.endorse-home-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 24px;
}
.endorse-home-form .endorse-upload,
.endorse-home-form .endorse-privacy,
.endorse-home-form .endorse-create,
.endorse-home-form .endorse-actions,
.endorse-home-form .endorse-share-note,
.endorse-home-form .endorse-error,
.endorse-home-canvas { grid-column: 1 / -1; }
.endorse-home-form .endorse-field { margin-top: 0; }
.endorse-home-form .endorse-privacy { margin: 0; }
.endorse-home-form .endorse-actions { margin-top: 0; }
.endorse-home-canvas { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.endorse-combined-intro {
  padding: 34px 0 0;
  color: var(--deep);
  background: transparent;
}
.endorse-combined-intro::after { display: none; }
.endorse-combined-intro h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.endorse-combined-workspace { padding-top: 24px; }
.endorse-combined-workspace .endorse-preview { position: sticky; }
.endorsements-content { padding-top: 42px; padding-bottom: 64px; }
.endorsements-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.endorsements-toolbar h2 { margin: 0; color: var(--deep-dark); font-size: 1.6rem; }
.endorsements-toolbar p { margin: 3px 0 0; color: var(--gray-600); }
.endorse-list-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border: 1px solid #cbd6ce;
  border-radius: 999px;
  color: var(--deep);
  background: #fff;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.endorse-list-link:hover { border-color: var(--green); background: #f5faf6; }
.endorsements-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.endorsement-card {
  position: relative;
  min-height: 170px;
  padding: 25px 22px 21px;
  overflow: hidden;
  border: 1px solid #e1e8e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(8,42,27,.05);
}
.endorsement-card::after { position: absolute; right: -25px; bottom: -50px; width: 130px; height: 130px; border: 1px solid #edf1ed; border-radius: 50%; content: ""; }
.endorsement-quote { position: absolute; top: 4px; right: 18px; color: #e8dfc7; font: 700 4.7rem Georgia, serif; line-height: 1; }
.endorsement-card h3 { position: relative; z-index: 1; margin: 16px 0 7px; color: var(--deep); font-size: 1.16rem; }
.endorsement-position, .endorsement-place { position: relative; z-index: 1; margin: 0; color: #46534a; font-size: .91rem; }
.endorsement-place { margin-top: 8px; color: var(--gray-600); font-size: .82rem; }
.endorsements-empty { grid-column: 1 / -1; padding: 45px 20px; border: 1px dashed #cbd6ce; border-radius: 14px; background: #fff; text-align: center; }
.endorsements-empty h3 { margin: 0 0 7px; color: var(--deep); }
.endorsements-empty p { margin: 0 0 16px; color: var(--gray-600); }
.endorsements-empty a { color: var(--deep); font-weight: 750; }
.endorse-load-more { display: block; min-width: 150px; margin: 26px auto 0; padding: 12px 20px; border: 1px solid #cbd6ce; border-radius: 999px; color: var(--deep); background: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.endorse-load-more:hover { border-color: var(--green); background: #f5faf6; }
.endorse-load-more:disabled { opacity: .55; cursor: wait; }

@media (max-width: 800px) {
  .endorse-workspace { grid-template-columns: 1fr; max-width: 620px; }
  .endorse-preview { position: static; }
  .endorsements-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .endorse-intro { padding: 42px 0 38px; }
  .endorse-intro p { font-size: .94rem; }
  .endorse-workspace { padding-top: 26px; padding-bottom: 34px; }
  .endorse-form { padding: 21px 18px; border-radius: 14px; }
  .endorse-preview-heading { align-items: flex-start; flex-direction: column; }
  .endorse-format { margin-left: 48px; }
  .home-endorse-section { padding: 20px 0 26px; }
  .endorse-home-form { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .endorse-home-form .endorse-upload,
  .endorse-home-form .endorse-privacy,
  .endorse-home-form .endorse-create,
  .endorse-home-form .endorse-actions,
  .endorse-home-form .endorse-share-note,
  .endorse-home-form .endorse-error,
  .endorse-home-canvas { grid-column: 1; }
  .endorse-combined-intro { padding-top: 26px; }
  .endorsements-toolbar { align-items: flex-start; flex-direction: column; }
  .endorsements-list { grid-template-columns: 1fr; }
  .endorsements-content { padding-top: 30px; }
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.endorse-combined-intro { padding: 46px 0 42px; }
.endorse-combined-intro .container { display: flex; flex-direction: column; align-items: flex-start; }
.endorse-combined-intro .endorse-kicker { margin: 0 0 7px; color: var(--red); }
.endorse-combined-intro h1 { margin-bottom: 8px; }
.endorse-combined-intro > .container > p:not(.endorse-kicker) { color: var(--gray-600); }
.endorse-open-form { width: auto; min-width: 230px; margin-top: 22px; padding: 0 24px; }
.endorsements-content { padding-top: 30px; }
.endorsements-toolbar { align-items: end; }
.endorse-search {
  display: flex;
  min-width: min(100%, 330px);
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #d8ded9;
  border-radius: 10px;
  color: #78827a;
  background: #fff;
}
.endorse-search > span:not(.sr-only) { font-size: 1.35rem; line-height: 1; }
.endorse-search input { width: 100%; border: 0; outline: 0; color: var(--gray-900); background: transparent; font: inherit; }
.endorse-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,162,80,.11); }
.endorsements-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.endorsement-card { min-height: 0; padding: 0; border-radius: 16px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.endorsement-card::after { display: none; }
.endorsement-card:hover { transform: translateY(-3px); border-color: #c7d7ca; box-shadow: 0 16px 36px rgba(8,42,27,.1); }
.endorsement-card-open {
  display: grid;
  width: 100%;
  min-height: 132px;
  grid-template-columns: 102px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 0;
  border-radius: inherit;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.endorsement-card-open:focus-visible { outline: 3px solid rgba(18,162,80,.5); outline-offset: -3px; }
.endorsement-card-photo, .endorsement-card-initials { display: grid; width: 102px; height: 102px; place-items: center; border-radius: 12px; object-fit: cover; background: #edf3ee; }
.endorsement-card-initials { color: var(--deep); font: 700 1.7rem Georgia, serif; }
.endorsement-card-copy { display: block; min-width: 0; }
.endorsement-card-name { display: block; margin: 0 0 7px; overflow-wrap: anywhere; color: var(--deep); font-size: 1.08rem; font-weight: 750; line-height: 1.3; }
.endorsement-card .endorsement-position, .endorsement-card .endorsement-place { display: block; color: #46534a; font-size: .88rem; line-height: 1.4; }
.endorsement-card .endorsement-place { margin-top: 5px; font-size: .8rem; }
.endorsement-card-action { display: block; margin-top: 11px; color: var(--red); font-size: .8rem; font-weight: 750; }
.endorse-empty-create { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; color: #fff; background: var(--deep); font: inherit; font-weight: 750; cursor: pointer; }
.endorse-empty-create:hover { background: #12613a; }
.endorse-dialog { width: min(100% - 28px, 560px); max-width: 560px; max-height: min(92dvh, 900px); padding: 0; overflow: auto; border: 0; border-radius: 18px; color: var(--gray-900); background: #f7f9f7; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.endorse-dialog::backdrop { background: rgba(5,20,12,.68); backdrop-filter: blur(3px); }
.endorse-dialog-panel { position: relative; padding: 30px; }
.endorse-dialog-close { position: absolute; z-index: 2; top: 16px; right: 17px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #d8ded9; border-radius: 50%; color: var(--deep); background: #fff; font: 400 1.7rem/1 Arial, sans-serif; cursor: pointer; }
.endorse-dialog-close:hover { border-color: var(--green); background: #f0f8f2; }
.endorse-form-dialog .endorse-form { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.endorse-form-dialog .endorse-form-heading { max-width: calc(100% - 44px); margin: 0 0 22px; }
.endorse-form-dialog .endorse-field { margin-top: 14px; }
.endorse-form-dialog .endorse-upload { min-height: 84px; }
.endorse-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 8px; color: #46534a; font-size: .82rem; line-height: 1.5; }
.endorse-form-dialog .endorse-error { margin: 8px 0 12px; }
.endorse-form-dialog .endorse-create { margin-top: 10px; }
.endorse-flyer-dialog { width: min(100% - 28px, 680px); max-width: 680px; }
.endorse-flyer-dialog .endorse-dialog-panel { padding: 24px; }
.endorse-flyer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 48px 18px 0; }
.endorse-flyer-heading .endorse-kicker { margin: 0 0 4px; color: var(--red); }
.endorse-flyer-heading h2 { margin: 0; color: var(--deep-dark); font-size: 1.35rem; }
.endorse-edit { min-height: 42px; padding: 0 15px; border: 1px solid #cbd6ce; border-radius: 9px; color: var(--deep); background: #fff; font: inherit; font-size: .84rem; font-weight: 750; cursor: pointer; }
.endorse-edit:hover { border-color: var(--green); background: #f0f8f2; }
.endorse-flyer-dialog .endorse-canvas-wrap { border-radius: 10px; text-align: center; }
.endorse-flyer-dialog .endorse-canvas-wrap canvas { display: block; width: min(100%, 520px); height: auto; margin: 0 auto; }
.endorse-flyer-dialog .endorse-actions { grid-template-columns: 1fr 1fr; }
.endorse-flyer-dialog .endorse-download, .endorse-flyer-dialog .endorse-share { min-height: 48px; }
.endorse-flyer-dialog .endorse-share-note { min-height: 1.2em; }
.endorse-home-form .endorse-consent { grid-column: 1 / -1; margin: 0; }
.endorse-home-form .endorse-upload { grid-column: 1 / -1; }
.endorse-home-form .endorse-actions { grid-column: 1 / -1; }
.endorse-home-form .endorse-create { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .endorsements-page ~ .site-footer { margin-bottom: 72px; }
}

@media (max-width: 800px) {
  .endorsements-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .endorse-combined-intro { padding: 36px 0 30px; }
  .endorsements-toolbar { align-items: stretch; }
  .endorse-search { min-width: 0; }
  .endorsements-list { grid-template-columns: 1fr; gap: 12px; }
  .endorsement-card-open { min-height: 112px; grid-template-columns: 82px minmax(0, 1fr); gap: 13px; padding: 13px; }
  .endorsement-card-photo, .endorsement-card-initials { width: 82px; height: 82px; }
  .endorse-dialog-panel, .endorse-flyer-dialog .endorse-dialog-panel { padding: 24px 18px; }
  .endorse-flyer-dialog .endorse-actions { grid-template-columns: 1fr; }
}
