/* Goldie Weekly — Letters from Readers submission modal. Senior-friendly:
   large type, high contrast, big touch targets. Warm magazine palette. */
#gwl-overlay {
  /* Above the cookie bar / nav / floating widgets so the modal never opens behind
     another overlay. (Onboarding disclaimer is higher, but that must be dismissed
     first anyway.) */
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(40, 30, 15, .55);
  display: none; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
#gwl-overlay.open { display: flex; }

.gwl-modal {
  width: 100%; max-width: 560px; margin: 3vh auto auto;
  background: #FFFDF8; color: #3f3728;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(60, 40, 10, .38);
  font-family: Georgia, 'Times New Roman', serif;
  display: flex; flex-direction: column; max-height: 94vh;
  animation: gwlPop .18s ease-out;
}
@keyframes gwlPop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.gwl-head {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 20px 22px; background: linear-gradient(135deg, #C97A0E, #E0952B);
  color: #fff;
}
.gwl-emoji { font-size: 26px; line-height: 1; }
.gwl-head h2 { margin: 0; font-size: 24px; font-weight: 700; color: #fff; flex: 1; }
.gwl-x {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .22); color: #fff;
  font-size: 26px; line-height: 34px; cursor: pointer; padding: 0;
}
.gwl-x:hover { background: rgba(255, 255, 255, .38); }

.gwl-body { padding: 22px; overflow-y: auto; }
.gwl-lead { font-size: 18px; line-height: 1.6; margin: 0 0 14px; color: #4a4234; }
.gwl-as { font-size: 16px; margin: 0 0 16px; color: #4a4234; }
.gwl-as strong { color: #C97A0E; }
.gwl-priv { display: block; font-size: 14px; color: #8a7d64; margin-top: 3px; }

.gwl-label { display: block; font-size: 16px; font-weight: 700; margin: 14px 0 6px; color: #3f3728; }
.gwl-label:first-of-type { margin-top: 0; }
.gwl-opt { font-weight: 400; color: #9a8d72; }
.gwl-input {
  width: 100%; box-sizing: border-box;
  font: 18px/1.4 Georgia, serif; color: #3f3728;
  padding: 12px 14px; border: 2px solid #e3d5b8; border-radius: 12px; background: #fff;
}
.gwl-input:focus { outline: none; border-color: #C97A0E; box-shadow: 0 0 0 3px rgba(201, 122, 14, .18); }
.gwl-textarea {
  width: 100%; box-sizing: border-box;
  font: 18px/1.6 Georgia, serif; color: #3f3728;
  padding: 14px; border: 2px solid #e3d5b8; border-radius: 12px;
  background: #fff; resize: vertical; min-height: 150px;
}
.gwl-textarea:focus { outline: none; border-color: #C97A0E; box-shadow: 0 0 0 3px rgba(201, 122, 14, .18); }
.gwl-count { text-align: right; font-size: 13px; color: #9a8d72; margin: 5px 2px 0; }
.gwl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.gwl-msg { min-height: 4px; margin: 10px 0 0; font-size: 15px; }
.gwl-msg.err { color: #B4231C; font-weight: 700; }

.gwl-foot {
  display: flex; gap: 12px; justify-content: flex-end;
  padding: 16px 22px; border-top: 1px solid #eee2c9; background: #fbf6ea;
}
.gwl-btn {
  font: 700 17px/1 Georgia, serif; cursor: pointer;
  padding: 14px 22px; border-radius: 12px; border: 2px solid transparent;
  text-decoration: none; display: inline-flex; align-items: center;
}
.gwl-btn-primary { background: #C97A0E; color: #fff; }
.gwl-btn-primary:hover { background: #b06c0b; }
.gwl-btn-primary:disabled { opacity: .6; cursor: default; }
.gwl-btn-ghost { background: transparent; color: #7a6d54; border-color: #ddceb0; }
.gwl-btn-ghost:hover { background: #f2e9d4; }

.gwl-thanks { text-align: center; padding: 14px 6px; }
.gwl-emoji-big { font-size: 46px; display: block; margin-bottom: 8px; }
.gwl-thanks h3 { margin: 0 0 8px; font-size: 22px; color: #C97A0E; }
.gwl-thanks p { font-size: 18px; line-height: 1.6; color: #4a4234; margin: 0; }

@media (max-width: 560px) {
  .gwl-head h2 { font-size: 21px; }
  .gwl-lead, .gwl-textarea, .gwl-thanks p { font-size: 17px; }
  .gwl-foot { flex-direction: column-reverse; }
  .gwl-btn { width: 100%; justify-content: center; }
}
