.memorial-site [hidden] { display: none !important; }
.memorial-site {
  margin: 0;
  background: #f5f1e9;
  color: #27312f;
  font: 15px/1.65 Arial, sans-serif;
  background-image: radial-gradient(ellipse at 50% 0, #dbcba544, transparent 50%);
}
.memorial-site *, .m-dialog * { box-sizing: border-box; }
.memorial-site h1, .memorial-site h2, .memorial-site h3, .m-dialog h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: #25342e;
  line-height: 1.2;
}
.memorial-site a { color: inherit; text-decoration: none; }
.m-eyebrow { font: 700 10px/1.5 Arial, sans-serif; letter-spacing: .19em; color: #927447; }
.memorial-access { max-width: 490px; margin: 5vh auto; padding: 35px 32px; text-align: center; }
.memorial-access > img { height: 100px; width: 145px; object-fit: contain; }
.memorial-access h1 { font-size: 43px; line-height: 1.1; margin: 25px 0; }
.memorial-access > p { color: #666c65; font-size: 14px; }
.memorial-access form { text-align: left; background: #fffaf0; border: 1px solid #d8ceb9; padding: 26px; border-radius: 16px; margin: 25px 0; }
.memorial-access form label { font-weight: bold; font-size: 12px; }
.memorial-site label, .m-dialog label { display: grid; gap: 7px; font-size: 12px; margin: 12px 0; color: #4c5751; }
.memorial-site input, .m-dialog input, .m-dialog textarea { font: 15px Arial, sans-serif; color: #26342c; background: #fff; border: 1px solid #c4cabc; padding: 13px; border-radius: 7px; min-width: 0; width: 100%; }
.m-code { display: flex; align-items: center; border: 1px solid #c9ba98; border-radius: 8px; background: #fff; padding-left: 14px; font-size: 18px; margin: 8px 0; }
.m-code input { border: 0; letter-spacing: .18em; font-size: 23px; }
.memorial-access small { font-size: 11px; color: #757969; }
.memorial-site button, .m-dialog button { cursor: pointer; font: 13px Arial, sans-serif; transition: background .18s, color .18s; }
.m-primary { border: 1px solid #304638; background: #304638; color: #fffdf4; padding: 14px 19px; border-radius: 8px; font-weight: bold !important; display: inline-flex; align-items: center; justify-content: center; gap: 15px; }
.m-primary:hover { background: #425d4b; }
.m-primary:disabled { opacity: .55; cursor: wait; }
.m-secondary { border: 1px solid #b5ad97; background: transparent; padding: 13px 18px; border-radius: 8px; color: #344335; font: 13px Arial, sans-serif; display: inline-block; }
.memorial-access .m-primary { width: 100%; margin-top: 18px; }
.m-error { color: #a4362b !important; font-size: 12px; line-height: 1.5; }
.m-error:empty { display: none; }
.m-header { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 25px 36px; border-bottom: 1px solid #c4b79655; }
.m-header img { height: 78px; width: 115px; object-fit: contain; }
.m-phone { font-size: 11px; color: #73786e !important; text-align: right; }
.m-phone b { display: block; color: #354438; font-size: 16px; font-weight: 500; }
.m-hero { text-align: center; padding: 55px 24px 38px; max-width: 960px; margin: auto; }
.m-hero h1 { font-size: clamp(30px, 4vw, 55px); overflow-wrap: anywhere; margin: 24px 0; }
.m-hero > p:not(.m-eyebrow) { font-size: 15px; color: #6a7067; }
.m-ornament { color: #ad9467; font-size: 23px; }
.m-ceremony { display: inline-flex; flex-direction: column; border-top: 1px solid #c9b58e; padding: 20px 40px 0; margin-top: 25px; }
.m-ceremony span { letter-spacing: .17em; font-size: 9px; color: #8f7952; }
.m-ceremony b { font: 20px Georgia, serif; margin: 8px 0; }
.m-ceremony small { font-size: 12px; color: #71776c; }
.m-section { max-width: 1200px; margin: 25px auto 55px; padding: 0 36px; }
.m-section-title h2 { font-size: 32px; margin: 6px 0 16px; }
.m-section-title > p { color: #777c71; font-size: 13px; }
.m-date-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #cfc6b6; border-radius: 15px; overflow: hidden; background: #fffdf9; margin-top: 24px; }
.m-date-grid article { padding: 24px 18px; border-right: 1px solid #e4ddd0; }
.m-date-grid article:last-child { border: 0; }
.m-date-grid span { font-size: 12px; color: #8b7755; }
.m-date-grid b { display: block; font: 21px/1.5 Georgia, serif; margin-top: 6px; white-space: nowrap; }
.m-date-grid small { font-size: 11px; color: #808375; }
.m-date-grid .m-date-first { background: #304638; color: white; }
.m-date-first span, .m-date-first small { color: #d2c9aa; }
.m-small { font-size: 11px; color: #7d8176; line-height: 1.6; }
.m-document-card { max-width: 1128px; margin: 0 auto 30px; padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 25px; border: 1px solid #c9cabb; border-radius: 15px; background: #e9eee5; }
.m-document-card h2 { font-size: 27px; margin: 8px 0; }
.m-document-card p { font-size: 12px; margin: 4px 0; }
.m-document-card .m-secondary { white-space: nowrap; }
.m-support-card { position: relative; isolation: isolate; max-width: 1128px; margin: 0 auto 36px; padding: 48px 52px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 30px; overflow: hidden; border: 1px solid #52675b; border-radius: 18px; background: linear-gradient(135deg, #24382f 0%, #314a3d 62%, #26392f 100%); box-shadow: 0 22px 55px #26372f1c; color: #f5f0e5; }
.m-support-card::before { content: ''; position: absolute; z-index: -1; inset: -55% auto auto 42%; width: 520px; height: 320px; border-radius: 50%; background: radial-gradient(circle, #c9ad6840, transparent 68%); transform: rotate(-12deg); }
.m-support-card h2 { margin: 7px 0 14px; color: #fffaf0; font-size: clamp(28px, 3.2vw, 42px); }
.m-support-card p:not(.m-eyebrow) { max-width: 700px; margin: 0; color: #d9ded7; font-size: 16px; line-height: 1.75; }
.m-support-card .m-eyebrow { color: #d1b571; }
.m-support-mark { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #cfb16b80; border-radius: 50%; color: #d9bc73; font-size: 21px; }
.m-contact-cta { min-width: 210px; padding: 16px 21px; border: 1px solid #d7be7d; border-radius: 10px; background: #f5ecd8; color: #263b31 !important; text-align: center; box-shadow: 0 9px 25px #09140f33; transition: transform .18s, background .18s !important; }
.m-contact-cta:hover { background: #fff8e8; transform: translateY(-2px); }
.m-contact-cta span { display: block; font-size: 14px; font-weight: 700; }
.m-contact-cta b { display: block; margin-top: 4px; font: 20px Georgia, serif; }
.m-footer { text-align: center; padding: 28px 25px 45px; color: #7b7e73; font-size: 11px; }
.m-footer > p:first-child { font: italic 17px/1.65 Georgia, serif; color: #485647; }
.m-footer b { font-style: normal; }
.m-remember { padding-top: 54px; padding-bottom: 52px; }
.m-remember h1 { font-size: clamp(29px, 3.8vw, 49px); max-width: 840px; margin: 22px auto 12px; letter-spacing: .015em; }
.m-memory-line { width: 44px; height: 1px; background: #927447; margin: 32px auto; }
.m-portrait { display: block; width: 164px; height: 198px; object-fit: cover; object-position: center 25%; margin: 26px auto; padding: 6px; border: 1px solid #c4b38f; border-radius: 90px 90px 6px 6px; background: #fffcf7; box-shadow: 0 14px 30px #27312f12; }
.m-remember .m-life-dates { color: #526055 !important; font: 15px Georgia, serif; letter-spacing: .08em; }
.m-remember blockquote { max-width: 610px; margin: 26px auto 0; font: italic 21px/1.65 Georgia, serif; color: #596457; white-space: normal; overflow-wrap: anywhere; }
.m-life-story { max-width: 810px; text-align: center; border-top: 1px solid #d8ceb9; padding-top: 28px; }
.m-prose { font: 16px/1.9 Arial, sans-serif; color: #4c5751; overflow-wrap: anywhere; }
.m-prose p:first-child { margin-top: 0; }
.m-personal-section { max-width: 920px; border-left: 2px solid #c4b38f; }
.m-personal-section h2 { font-size: 31px; }
.m-grave-layout { display: grid; grid-template-columns: 1.1fr 1fr; background: #fffcf7; border: 1px solid #d8ceb9; border-radius: 4px; overflow: hidden; }
.m-grave-layout figure { margin: 0; background: #e9e6dd; display: flex; flex-direction: column; }
.m-grave-layout figure a { flex: 1; display: flex; align-items: center; }
.m-grave-layout img { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.m-grave-layout figcaption { font: italic 13px Georgia, serif; text-align: center; padding: 15px; color: #566252; }
.m-grave-info { padding: clamp(24px, 4vw, 48px); }
.m-grave-info h2 { font-size: 35px; margin: 10px 0 28px; }
.m-grave-info dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 24px; gap: 21px; }
.m-grave-info dl div:first-child { grid-column: 1/-1; }
.m-grave-info dt { font-size: 11px; color: #74694f; margin-bottom: 4px; }
.m-grave-info dd { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.m-grave-no-photo { grid-template-columns: 1fr; }
.m-grave-no-photo dl { grid-template-columns: 2fr 1fr 1fr 1fr; }
.m-grave-no-photo dl div:first-child { grid-column: auto; }
.m-care-section { margin-top: 80px; }
.m-care-heading { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 60px; align-items: center; margin-bottom: 30px; }
.m-care-heading .m-eyebrow { grid-column: 1/-1; }
.m-care-heading h2 { font-size: clamp(30px, 3.5vw, 43px); margin: 8px 0; }
.m-care-heading h2 em { color: #7e6b49; font-weight: 400; }
.m-care-heading > p:last-child { font-size: 16px; color: #526055; line-height: 1.8; }
.m-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid #d8ceb9; background: #fffcf7; }
.m-service { padding: 29px 26px; display: grid; grid-template-rows: auto auto 1fr 82px 48px 24px; border-right: 1px solid #d8ceb9; min-width: 0; }
.m-service:last-child { border: 0; background: #ebece3; }
.m-service-number { font-size: 10px; letter-spacing: .13em; font-weight: 700; color: #927447; }
.m-service h3 { font-size: 26px; line-height: 1.35; margin: 22px 0 14px; }
.m-service > p { color: #536052; font-size: 14px; line-height: 1.85; margin: 0 0 26px; }
.m-service-price { align-self: end; margin-bottom: 18px; font: 35px/1.4 Georgia, serif; color: #304638; }
.m-service-price small { display: block; font: 12px/1.6 Arial, sans-serif; color: #626b5e; }
.m-service .m-primary,.m-service .m-secondary { width: 100%; text-align: center; min-height: 48px; padding: 13px 10px; font-size: 13px; }
.m-service .m-primary { color: #fffdf4; }
.m-price-inquiry { font-size: 24px; }
.m-service-note { margin-top: 12px; font-size: 10px; color: #626b5e; }
.m-care-note { font-size: 12px; color: #64715f; margin-top: 18px; }
.m-care-note a,.m-payment-status a { text-decoration: underline; text-underline-offset: 3px; }
.m-donation-panel { display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: center; padding: 36px 40px; border-top: 1px solid #c8bca1; border-bottom: 1px solid #c8bca1; background: #eeeadf; }
.m-donation-panel h2 { font-size: 30px; margin: 10px 0 18px; }
.m-donation-panel p { max-width: 720px; color: #556050; }
.m-donation-panel .m-small { font-size: 11px; line-height: 1.7; max-width: 690px; }
.m-donation-panel .m-primary { white-space: nowrap; }
.m-payment-total { display: flex; justify-content: space-between; align-items: center; padding: 20px; border: 1px solid #d8ceb9; background: #f1eee5; margin: 22px 0 10px; }
.m-payment-total strong { font: 32px Georgia,serif; }
.m-payment-hint { padding: 14px; background: #eeeee5; border-left: 3px solid #927447; font-size: 13px; }
.m-payment-form > .m-primary { width: 100%; min-height: 48px; }
.m-payment-form textarea { resize: none; color: #172b20; }
.m-payment-status { font-size: 13px; overflow-wrap: anywhere; }
.memorial-site :focus-visible,.m-dialog :focus-visible { outline: 3px solid #927447; outline-offset: 3px; }
@media(max-width: 860px) {
  .m-service-grid { grid-template-columns: 1fr; }
  .m-service { border-right: 0; border-bottom: 1px solid #d8ceb9; padding: 28px; }
  .m-service h3 br { display: none; }
  .m-care-heading { gap: 0 28px; }
  .m-donation-panel { grid-template-columns: 1fr; gap: 15px; }
  .m-donation-panel .m-primary { justify-self: start; }
}
@media(max-width: 600px) {
  .m-remember { padding-top: 30px; }
  .m-remember blockquote { font-size: 19px; }
  .m-grave-layout,.m-care-heading { grid-template-columns: 1fr; }
  .m-grave-no-photo dl { grid-template-columns: 1fr 1fr; }
  .m-grave-no-photo dl div:first-child { grid-column: 1/-1; }
  .m-care-heading { gap: 0; }
  .m-care-section { margin-top: 45px; }
  .m-donation-panel { padding: 25px 21px; }
  .m-donation-panel .m-primary { width: 100%; white-space: normal; }
  .m-grave-info h2 { font-size: 31px; }
}
.m-dialog { width: min(590px, 94vw); max-height: 92vh; border: 1px solid #bdad8b; border-radius: 18px; background: #fffcf7; color: #27342d; padding: 26px 30px; box-shadow: 0 30px 90px #0004; font: 14px/1.55 Arial, sans-serif; }
.m-dialog::backdrop { background: #1a292299; backdrop-filter: blur(5px); }
.m-dialog header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.m-dialog header h2 { font-size: 26px; margin: 6px 0 15px; }
.m-dialog header .m-eyebrow { font-size: 9px; max-width: 400px; }
.m-dialog [data-close] { border: 0; background: transparent; font-size: 27px; padding: 0 6px; color: #758070; }
.m-dialog textarea { resize: vertical; }
.m-dialog-actions { display: flex; gap: 15px; margin-top: 20px; justify-content: space-between; }
.m-dialog [hidden] { display: none !important; }
.memorial-site :focus-visible, .m-dialog :focus-visible { outline: 2px solid #957642; outline-offset: 3px; }
@media (max-width: 820px) {
  .m-support-card { margin: 0 20px 30px; padding: 36px 30px; grid-template-columns: auto 1fr; }
  .m-contact-cta { grid-column: 2; width: 100%; }
}
@media (max-width: 720px) {
  .m-header { padding: 20px; }
  .m-header img { height: 60px; width: 95px; }
  .m-hero { padding-top: 32px; }
  .m-hero h1 { font-size: 32px; }
  .m-section { padding: 0 20px; margin-bottom: 35px; }
  .m-section-title h2 { font-size: 28px; }
  .m-date-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-date-grid article { padding: 19px; border-bottom: 1px solid #e4ddd0; }
  .m-date-grid article:first-child { grid-column: span 2; }
  .m-date-grid article:first-child b { font-size: 27px; }
  .m-document-card { margin: 0 20px 25px; padding: 24px; display: block; }
  .m-document-card .m-secondary { margin-top: 18px; }
  .m-support-card { display: block; padding: 31px 25px; text-align: left; }
  .m-support-mark { margin-bottom: 21px; }
  .m-support-card h2 { font-size: 30px; }
  .m-contact-cta { width: 100%; margin-top: 25px; }
  .m-dialog { padding: 20px; }
  .memorial-access { padding: 24px 20px; }
  .memorial-access h1 { font-size: 37px; }
  .memorial-access form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .memorial-site *, .m-dialog * { transition: none !important; }
}
