/* RIP – Death Notices & Condolences (aligned with #index home landing: DM Sans, cream/teal palette, frosted cards) */

/* Full-width section: at least one viewport tall; grows with content so background covers full scroll */
#rip.bodySection,
#rip.bodySection.visible {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  --ripNavy: var(--color-text, #2c3340);
  --ripTeal: var(--color-accent, #5c9120);
  --ripTealDeep: var(--color-accent-dark, #487f14);
  --ripCream: #faf7f2;
  background:
    radial-gradient(ellipse 95% 55% at 50% 32%, rgba(232, 210, 175, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 125% 78% at 50% -12%, rgba(255, 255, 255, 0.92) 0%, transparent 52%),
    radial-gradient(ellipse 68% 44% at 92% 8%, rgba(255, 236, 214, 0.35) 0%, transparent 42%),
    linear-gradient(172deg, #fffefb 0%, #faf7f2 42%, #f3eee6 70%, #e9e2d6 100%);
  color: var(--color-text);
}

.ripPage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ripSection .ripMain {
  text-align: left;
}

.ripHeader .ripSectionTitle {
  color: var(--color-text, #2c3340);
  font-size: 18px;
  font-weight: bold;
  padding: 12px;
}

.ripMain {
  flex: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 22px 40px;
  width: 100%;
  box-sizing: border-box;
}

#rip .ripMain {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  padding-left: clamp(14px, 4vw, 40px);
  padding-right: clamp(14px, 4vw, 40px);
}

.ripMain.ripLanding {
  border-radius: 0;
}

.ripHero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(74, 139, 181, 0.12);
}

.ripHeroCopy {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.ripPageHeading {
  margin: 0 0 10px;
  text-align: center;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  font-feature-settings: "kern" 1, "liga" 1;
  color: var(--ripNavy, #2c3340);
  border-bottom: none;
  padding-bottom: 0;
}

.ripHeroSubtitle {
  margin: 0 auto;
  max-width: 36em;
  text-align: center;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(0.95rem, 1.9vw, 1.08rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ripTeal, #5c9120);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.ripAddNoticeToggle {
  margin-bottom: 0;
}

.ripSearchForm,
.ripSearchCard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px 22px;
  margin-bottom: 32px;
  padding: 26px 24px 24px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 36px rgba(74, 139, 181, 0.06),
    0 2px 8px rgba(74, 139, 181, 0.04);
  box-sizing: border-box;
}

.ripSearchHint {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4a5562;
  font-weight: 400;
}

.ripSearchRow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ripSearchNameRow {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.ripSearchNameRow .ripSearchRow {
  flex: 1;
  min-width: 120px;
}

.ripSearchLocationRow {
  grid-column: 1 / -1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.ripSearchLocationRow .ripSearchLocationInput {
  max-width: 400px;
  width: 100%;
}

.ripSearchDateRow {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
}
.ripSearchDateCol {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.ripSearchDateLabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.ripSearchDateRow .ripInput {
  max-width: 160px;
}

.ripSearchButtonRow {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.ripLabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.ripInput,
.ripTextarea {
  padding: 11px 14px;
  border: 1px solid rgba(36, 87, 109, 0.18);
  border-radius: 10px;
  font-size: 15px;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--color-text);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ripInput:focus,
.ripTextarea:focus {
  outline: none;
  border-color: var(--color-primary, #4a8bb5);
  box-shadow: 0 0 0 3px rgba(36, 87, 109, 0.12);
}

.ripTextarea {
  resize: vertical;
  min-height: 88px;
}

.ripButton {
  padding: var(--f2n-btn-pad, 0.7rem 1.35rem);
  border: none;
  border-radius: var(--f2n-btn-radius, 999px);
  font-size: var(--f2n-btn-size, 0.9375rem);
  font-family: var(--f2n-btn-font, "DM Sans", "Segoe UI", system-ui, sans-serif);
  font-weight: var(--f2n-btn-weight, 600);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ripButton:active {
  transform: scale(0.98);
}

.ripButtonPrimary {
  background: var(--f2n-btn-primary-bg, linear-gradient(180deg, #5c9120 0%, #487f14 100%));
  color: #ffffff;
  box-shadow: var(--f2n-btn-primary-shadow, 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 22px rgba(92, 145, 32, 0.22));
}

.ripButtonPrimary:hover {
  background: var(--f2n-btn-primary-hover, linear-gradient(180deg, #56851f 0%, #3f6e12 100%));
  color: #ffffff;
}

.ripButtonSecondary {
  background: var(--f2n-btn-secondary-bg, #ffffff);
  color: var(--f2n-btn-secondary-color, #2c3340);
  border: var(--f2n-btn-secondary-border, 1px solid rgba(4, 25, 77, 0.16));
  box-shadow: 0 6px 18px rgba(4, 25, 77, 0.06);
}

.ripButtonSecondary:hover {
  background: #f7fafc;
  color: var(--color-text, #2c3340);
  border-color: rgba(74, 139, 181, 0.35);
}


.ripHero .ripButtonPrimary.ripHeroCta {
  flex-shrink: 0;
  align-self: center;
  font-family: var(--f2n-btn-font, "DM Sans", "Segoe UI", system-ui, sans-serif);
  font-weight: var(--f2n-btn-weight, 600);
  font-size: var(--f2n-btn-size, 0.9375rem);
  padding: var(--f2n-btn-pad, 0.7rem 1.35rem);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--ripTeal, #5c9120) 0%, var(--ripTealDeep, #487f14) 100%);
  border: none;
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 28px rgba(92, 145, 32, 0.22),
    0 3px 10px rgba(74, 139, 181, 0.1);
}

.ripHero .ripButtonPrimary.ripHeroCta:hover {
  background: linear-gradient(180deg, #56851f 0%, #3f6e12 100%);
  filter: none;
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 32px rgba(92, 145, 32, 0.28),
    0 4px 12px rgba(74, 139, 181, 0.12);
}

.ripNoticeListContainer,
.ripListSurface {
  margin-top: 8px;
}

.ripMessage {
  margin: 0 0 14px;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  color: #5a6578;
}

.ripNoticeList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ripNoticeListItem {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 28px rgba(74, 139, 181, 0.05),
    0 2px 6px rgba(74, 139, 181, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ripNoticeListItemPic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(74, 139, 181, 0.12);
}

.ripNoticeListItem:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 109, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 40px rgba(74, 139, 181, 0.08),
    0 4px 12px rgba(74, 139, 181, 0.05);
}

.ripNoticeListItemContent {
  min-width: 0;
  flex: 1;
}
.ripNoticeListItemName {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ripNavy, #2c3340);
  margin-bottom: 6px;
}

.ripNoticeListItemMeta {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.86rem;
  color: #5a6578;
  line-height: 1.4;
}

.ripDetailContainer {
  margin-top: 12px;
}

.ripBackButton {
  margin-bottom: 22px;
}

.ripNoticeDetail,
.ripNoticeDetailCard {
  padding: 28px 26px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-left: 4px solid var(--color-primary, #4a8bb5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(74, 139, 181, 0.06),
    0 2px 8px rgba(74, 139, 181, 0.04);
  position: relative;
}
.ripDetailHeaderWrap {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.ripDetailActionBtn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ripDetailActionBtn:hover {
  background: var(--color-primary);
  color: #fff;
}
.ripDetailActionBtn i {
  font-size: 14px;
}
.ripDetailInner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.ripDetailPic,
.ripNoticeListItemPic {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.ripDetailPic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ripDetailContent {
  min-width: 0;
  flex: 1;
}

.ripDetailName {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ripNavy, #2c3340);
  margin: 0 0 10px;
}

.ripDetailMeta {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #5a6578;
  margin-bottom: 16px;
  line-height: 1.45;
}

.ripDetailText {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #2f3a48;
  white-space: pre-wrap;
}

.ripCondolencesSection,
.ripCondolencesPanel {
  margin-top: 8px;
  padding: 26px 24px 28px;
  border-top: none;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 10px 36px rgba(74, 139, 181, 0.05),
    0 2px 8px rgba(74, 139, 181, 0.04);
}

.ripCondolencesHeading {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ripNavy, #2c3340);
  margin: 0 0 8px;
}

.ripCondolencesIntro {
  margin: 0 0 20px;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5a6578;
  max-width: 42em;
}

.ripCondolenceListWrap {
  max-height: 340px;
  overflow-y: auto;
  margin-top: 22px;
  padding-top: 22px;
  padding-right: 4px;
  border-top: 1px solid rgba(74, 139, 181, 0.1);
  scrollbar-color: rgba(36, 87, 109, 0.35) transparent;
}

.ripCondolenceListWrap .ripCondolenceList {
  margin-bottom: 0;
}

.ripCondolenceFormWrap {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ripCondolenceList {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  width: 100%;
}

.ripCondolenceItem {
  padding: 16px 18px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(74, 139, 181, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(74, 139, 181, 0.04);
}

.ripCondolenceItemBody {
  flex: 1;
  min-width: 0;
}

.ripCondolenceItemActions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
}

.ripCondolenceActionBtn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ripCondolenceActionBtn:hover {
  background: var(--color-primary);
  color: #fff;
}

.ripCondolenceActionBtn i {
  font-size: 13px;
}

.ripCondolenceEditAuthor,
.ripCondolenceEditMessage {
  width: 100%;
  margin-bottom: 8px;
}

.ripCondolenceEditActions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ripCondolenceAuthor {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ripNavy, #2c3340);
  margin-bottom: 6px;
}

.ripCondolenceMessage {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #2f3a48;
  white-space: pre-wrap;
}

.ripCondolenceDate {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 8px;
}

.ripCondolenceForm,
.ripCondolenceFormCard {
  width: 100%;
  padding: 22px 22px 24px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}
.ripCondolenceForm .ripInput,
.ripCondolenceForm .ripTextarea {
  width: 100%;
  box-sizing: border-box;
}

.ripCondolencePreviewIntro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text, #2c3e50);
}

.ripCondolencePreviewMount {
  margin: 0.75rem 0 1.25rem;
  max-height: min(45vh, 22rem);
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  background: rgba(249, 247, 242, 0.95);
  border: 1px solid rgba(74, 139, 181, 0.1);
  box-sizing: border-box;
}

.ripCondolencePreviewMount .ripCondolenceList,
.ripCondolenceListPreview {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ripCondolencePreviewMount .ripCondolenceItem {
  margin-bottom: 0;
}

.ripFormRow {
  margin-bottom: 14px;
}

.ripFormRow:last-of-type {
  margin-bottom: 18px;
}

.ripLoading,
.ripError {
  margin: 1.5rem auto;
  max-width: 480px;
  padding: 2rem 1.5rem;
  border-radius: var(--f2n-empty-radius, 16px);
  font-size: 0.95rem;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  text-align: center;
}

.ripLoading {
  color: var(--color-text-muted, #5a6578);
  background: var(--f2n-empty-bg, rgba(255, 252, 248, 0.72));
  border: var(--f2n-empty-border, 1.5px dashed rgba(74, 139, 181, 0.28));
}

.ripError {
  background: rgba(180, 60, 60, 0.08);
  color: #8b2635;
  border: 1.5px dashed rgba(180, 60, 60, 0.28);
}

.ripHidden {
  display: none !important;
}

.ripNoticeDateOfDeathWrap {
  margin-bottom: 12px;
}


@media (min-width: 768px) {
  #ripNoticeDateOfDeathChooser {
    flex-wrap: nowrap;
  }
}
.ripNoticeFieldLabel,
.ripNoticeOtherDetailsTitle {
  display: block;
  font-size: inherit;
  font-weight: bold;
  color: var(--f2n-lightbox-card-text, var(--color-text, #2c3e50));
  margin: 0 0 8px;
}
.ripNoticeOtherDetailsTitle {
  margin-top: 4px;
  font-size: var(--f2n-lightbox-title-size, 24px);
  color: var(--f2n-lightbox-title-color, var(--color-ink, #2c3340));
}
.ripNoticeNameRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 10px;
}
.ripNoticeNameRow > div {
  flex: 1;
  min-width: 120px;
}
.ripNoticeLocationRow {
  text-align: left;
  margin-bottom: 16px;
}
.ripNoticeLocationRow .ripNoticeFieldLabel {
  text-align: left;
}
.ripNoticeLocationRow .ripNoticeLocationContainer {
  max-width: 100%;
  margin: 0;
}
.ripNoticeLocationContainer {
  margin-bottom: 0;
}
.ripNoticePhotoRow {
  margin-bottom: 20px;
}
.ripNoticePhotoWrap {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.ripNoticePhotoPreview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  background: var(--color-primary-soft);
}
.ripNoticePhotoUploadBtn {
  background-color: #f1f5f9;
  color: #475569;
  padding: 10px 18px;
  border: 1px solid var(--color-border, #ded6ca);
  border-radius: 8px;
  font-size: 16px;
  font-weight: normal;
  font-family: var(--f2n-lightbox-card-font, 'Segoe UI', system-ui, sans-serif);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ripNoticePhotoUploadBtn:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}
.ripNoticePhotoUploadBtn:active {
  background-color: #cbd5e1;
}
.ripNoticePhotoInputHidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  border: 0;
}
.ripNoticePersonSearchRow {
  margin-bottom: 20px;
  position: relative;
}
.ripNoticePersonSearchResults {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: block;
}
.ripNoticePersonSearchResults .ripNoticePersonSearchItem,
.ripNoticePersonSearchResults .familyPanelInlineItem {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  transition: background-color 0.2s ease;
}
.ripNoticePersonSearchResults .ripNoticePersonSearchItem:last-child,
.ripNoticePersonSearchResults .familyPanelInlineItem:last-child {
  border-bottom: none;
}
.ripNoticePersonSearchResults .ripNoticePersonSearchItem:hover,
.ripNoticePersonSearchResults .familyPanelInlineItem:hover {
  background: #f0f7f6;
}
.ripNoticeLocationContainer gmpx-place-autocomplete {
  display: block;
  width: 100%;
}

@media (max-width: 767px) {
  
  #rip.bodySection,
  #rip.bodySection.visible {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .ripSearchNameRow .ripSearchNameMaiden {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .ripSearchNameRow,
  .ripSearchLocationRow {
    min-width: 0;
  }
  .ripSearchLocationRow {
    align-items: stretch;
  }
  .ripSearchNameRow .ripSearchRow {
    min-width: 0;
  }
  .ripSearchLocationRow .ripSearchLocationInput {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #rip .ripMain {
    padding-top: 18px;
    padding-bottom: 32px;
    padding-left: clamp(12px, 4vw, 24px);
    padding-right: clamp(12px, 4vw, 24px);
  }
  .ripHero {
    gap: 16px;
    margin-bottom: 22px;
  }
  .ripHero .ripButtonPrimary.ripHeroCta {
    align-self: center;
    max-width: min(100%, 22rem);
    box-sizing: border-box;
  }
  .ripPageHeading {
    font-size: 1.05rem;
  }
  .ripSearchForm {
    grid-template-columns: 1fr;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .ripSearchForm > * {
    min-width: 0;
  }
  .ripSearchHint {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .ripSearchForm .ripInput {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ripSearchDateRow {
    grid-column: 1;
  }
  .ripSearchDateRow .ripSearchDateCol {
    flex: 1;
    min-width: 0;
  }
  .ripSearchDateRow .ripInput {
    max-width: none;
  }
  .ripNoticeDetail {
    padding: 16px;
  }
  .ripDetailName {
    font-size: 19px;
  }
  
  #ripNoticeFormLightbox {
    overflow-x: hidden;
    max-width: 100vw;
  }
  #ripNoticeFormLightbox .accountForm {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  #ripNoticeForm .ripNoticeNameRow {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
  }
  #ripNoticeForm .ripNoticeNameRow > div {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
  
  #ripNoticeFormLightbox .ripNoticePhotoUploadBtn {
    width: auto !important;
    max-width: fit-content;
    padding: 6px 12px;
    font-size: 12px;
  }
}
