/* Pożegnamy.pl site styles. Derived from design/pozegnamy.html (RIP.ie's measured design, see design/RIPIE_REFERENCE.md). */
/* RIP.ie's current design (measured on rip.ie, 2026-10-02; see design/RIPIE_REFERENCE.md), trimmed on
   2026-10-03 to what the collector can feed: two-row header (cream leaf strip + white nav with gold active
   underline, logo box overlapping both), gold leaf band with the search card, 632/304 two-column body with
   the voivodeship map and the recent-notices sidebar, listing table, facts-only notice page, funeral-home
   directory, About page, olive-brown footer, plus the product features built out on 2026-10-03: user and
   funeral-home accounts, notice posting with photos, family notices, condolence book, alerts, saved notices,
   font-size and contrast controls. No shop, podcast or editorial. Light theme like the reference, plus a
   high-contrast mode. Container = 1008px with 24px padding (960px content). */
:root {
  color-scheme: light;
  --body: #f9f5ec; --bg2: #e0d4bd; --white: #fff;
  --ink: #1b2124; --g900: #1d1d1d; --g800: #2e2e2e; --g700: #6a6a6a; --g600: #9a9a9a; --g400: #cbcbcb; --g300: #e1e1e1; --g200: #efefef; --g100: #f8f8f8;
  --p100: #fdfcf7; --p200: #f8f2df; --p400: #e2cb80; --p500: #d2ae38; --p600: #b89422; --p700: #7e6822; --p800: #53470a; --p900: #3d320e;
  --heading-yellow: #ba8c00; --heading-yellow-dark: #7b5d0e; --heading-contrast: #423a2a; --footer-bottom: #342b0a;
  --input-border: #c3ac93; --input-icon: #80786a; --blue: #221cbb; --service-title: #80786a;
  --table-border: #e8e2dc; --row-hover: #fbf7ec; --pag-active: #efe2b8; --fn-name: #988b25;
  --grad-light: linear-gradient(180deg, #fbf8f4, #f5eae1);
  --grad-gold: linear-gradient(182deg, #e2cb80 1.3%, #d2ae38 97.93%);
  --grad-dark: linear-gradient(182deg, #ba8c00 1.3%, #7b5d0e 97.93%);
  --serif: Domine, Georgia, serif; --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --shadow-btn: 0 2px 0 rgba(61, 50, 14, .2); --shadow-bar: 0 4px 4px rgba(80, 60, 5, .2);
}
* { box-sizing: border-box; }
html { font-size: 14px; }
html, body { overflow-x: hidden; }
body { background: var(--body); color: var(--ink); font: 14px/21px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--p600); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--p900); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1008px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide-m { display: block; } .show-m { display: none; }
svg.ic { width: 1em; height: 1em; flex: none; }

/* buttons (MUI variants on rip.ie) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 6px 20px; border: 0; border-radius: 4px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 13px/22.75px var(--sans); letter-spacing: .37px; box-shadow: var(--shadow-btn); transition: box-shadow .15s; }
.btn:hover { box-shadow: 0 4px 0 rgba(61, 50, 14, .2); }
.btn .ic { width: 20px; height: 20px; margin-left: -4px; }
.btn-pri { background: var(--grad-dark); color: #fff; }
.btn-light { background: var(--grad-gold); color: var(--p900); }
.btn-sec { background: var(--grad-light); border: 1px solid var(--input-border); color: var(--p900); }
.btn-outline { background: transparent; border: 1px solid var(--input-border); color: var(--p900); box-shadow: none; }
.btn-dark { background: var(--heading-contrast); color: #fff; }
.btn.sm { height: 32px; padding: 6px 15.5px; }
.btn.xs { height: 24px; padding: 6px 8px; }
.btn.lg { height: 52px; padding: 6px 32px; font-size: 15px; line-height: 26.25px; letter-spacing: .43px; }
.btn.lg .ic { width: 18px; height: 18px; }
.btn.block { width: 100%; }

/* form controls */
.fld { position: relative; min-width: 0; }
.fld input, .fld select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--input-border); border-radius: 4px; background: #fff; font-size: 14px; color: var(--ink); }
.fld input::placeholder { color: var(--g600); font-size: 16px; }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 36px; color: var(--g600); font-size: 16px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%231b2124' stroke-width='1.6'/></svg>") no-repeat right 14px center; }
.fld select.has { color: var(--ink); font-size: 14px; }
.fld.date input { border-color: var(--p700); padding: 0 24px 0 6px; font-size: 13px; color: var(--ink);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%237e6822' stroke-width='1.4'><rect x='1.5' y='3' width='15' height='13.5' rx='1.5'/><path d='M1.5 7.5h15M5.5 1v3.5M12.5 1v3.5'/></svg>") no-repeat right 5px center; }
.fld.date input::-webkit-calendar-picker-indicator { opacity: 0; }
.fld .lbl { position: absolute; left: 10px; top: -7px; padding: 0 3px; background: #fff; font: 700 11px/13px var(--sans); color: var(--p700); }

/* prototype badge */
.proto { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; gap: 8px; align-items: center; background: rgba(29, 29, 29, .85); color: #e4e6e9; font-size: 11px; padding: 5px 9px; border-radius: 4px; max-width: 320px; }
.proto button { background: none; border: 1px solid #8a8f96; color: #fff; border-radius: 3px; padding: 0 6px; font-size: 11px; cursor: pointer; }

/* ===== header: top strip + nav (absolute, 134px) ===== */
.shell { position: relative; padding-top: 124px; }
header.site { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.topbar { height: 54px; background: var(--bg2); position: relative; }
.toprow { position: relative; height: 54px; display: flex; justify-content: flex-end; align-items: center; padding: 6px 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='44' viewBox='0 0 220 44'><defs><path id='lf' d='M0-22c3 6 5 9 9 9-2 2-2 5 0 8 3-1 6 0 9 3-4 1-6 4-5 8-3-2-6-2-8 0 0 5-1 9-5 14-4-5-5-9-5-14-2-2-5-2-8 0 1-4-1-7-5-8 3-3 6-4 9-3 2-3 2-6 0-8 4 0 6-3 9-9z'/></defs><g fill='%23cfc2a0' fill-opacity='.6'><use href='%23lf' transform='translate(30 24) rotate(-25) scale(.9)'/><use href='%23lf' transform='translate(95 22) rotate(30) scale(1.1)'/><use href='%23lf' transform='translate(160 26) rotate(-60) scale(.8)'/><use href='%23lf' transform='translate(205 20) rotate(80) scale(.7)'/></g></svg>") repeat-x left center; }
.logo { position: absolute; left: -140px; top: 0; z-index: 9; width: 156px; height: 117px; display: block; text-decoration: none; border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, #fbf8f4, #f5eae1); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--input-border); }
.logo .mark { display: block; text-align: center; padding-top: 26px; font: 700 24px/1 var(--serif); color: #c3a202; letter-spacing: -.02em; white-space: nowrap; }
.logo .mark small { font-size: 14px; }
.logo .tag { display: block; text-align: center; margin-top: 12px; font: 400 13px/1 var(--serif); color: #444b4d; white-space: nowrap; }
.actions { display: flex; align-items: center; }
.actions .toplink { display: flex; align-items: center; height: 32px; padding: 0 4px; font: 500 14px/18px var(--sans); color: var(--g700); text-decoration: none; }
.actions .toplink:hover { color: var(--p900); text-decoration: underline; }
nav.mainnav { background: #fff; height: 80px; box-shadow: var(--shadow-bar); position: relative; z-index: 2; }
.navrow { position: relative; height: 80px; display: flex; align-items: center; }
.logo-s { position: absolute; left: -140px; top: 1px; width: 116px; height: 78px; display: none; text-decoration: none; background: linear-gradient(180deg, #fbf8f4, #f5eae1); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--input-border); border-radius: 0 0 2px 2px; }
.logo-s .mark { display: block; text-align: center; padding-top: 18px; font: 700 19px/1 var(--serif); color: #c3a202; letter-spacing: -.02em; white-space: nowrap; }
.logo-s .mark small { font-size: 10px; }
.logo-s .tag { display: block; text-align: center; margin-top: 8px; font: 400 9px/1 var(--serif); color: #444b4d; white-space: nowrap; }
ul.links { display: flex; padding-left: 20px; margin-left: 10px; }
ul.links li { padding-right: 28px; }
ul.links a { position: relative; display: inline-block; min-height: 80px; padding: 18px 0; font: 500 14px/18px var(--sans); color: var(--g700); text-decoration: none; }
ul.links a > span { display: flex; align-items: center; min-height: 36px; white-space: nowrap; }
ul.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--p500); opacity: 0; transition: opacity .15s; }
ul.links a:hover { color: var(--p900); }
ul.links a.on { color: var(--p900); }
ul.links a.on::after { opacity: 1; }
nav.mainnav.stuck { position: fixed; top: 0; left: 0; right: 0; }
nav.mainnav.stuck .logo-s { display: block; }
nav.mainnav.stuck ul.links { max-width: 768px; padding-left: 10px; }
nav.mainnav.stuck ul.links li { padding-right: 20px; }
.mobar { display: none; }
.totop { position: fixed; right: 28px; bottom: 28px; z-index: 40; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(29, 29, 29, .15); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s, transform .1s; display: grid; place-items: center; }
.totop.show { opacity: 1; visibility: visible; }
.totop:hover { transform: scale(1.1); }
.totop svg { width: 24px; height: 24px; }

/* drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto; }
.drawer .dhead { position: relative; height: 64px; background: var(--bg2); display: flex; justify-content: space-between; align-items: flex-start; }
.drawer .close { margin-left: auto; width: 90px; height: 64px; background: none; border: 0; cursor: pointer; display: grid; justify-items: center; align-content: center; gap: 2px; font: 600 13px/19.5px var(--sans); color: var(--heading-contrast); }
.drawer ul.dl { padding: 0 16px 24px; }
.drawer ul.dl li { border-bottom: 2px solid var(--g200); }
.drawer ul.dl a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font: 600 14px/18px var(--sans); color: var(--ink); text-decoration: none; }
.drawer ul.dl a.on { color: var(--heading-yellow); }
.drawer ul.dl a.rep { color: var(--p700); font-weight: 500; }


/* ===== cards, sections ===== */
.card { background: #fff; border: 1px solid var(--input-border); border-radius: 8px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { font: 600 24px/22px var(--serif); color: var(--p900); }

/* gold band + search */
.band { position: relative; margin-top: -15px; padding-top: 24px; background: linear-gradient(180deg, #d4af34 0, #d9b946 40%, rgba(252, 250, 245, .9) 72%, rgba(249, 245, 236, 0) 100%);
  background-size: 100% 480px; background-repeat: no-repeat; }
.band::before, .band::after { content: ""; position: absolute; top: 0; width: 520px; height: 330px; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 330' fill='none' stroke='%23fff7d6' stroke-width='1.2'><path d='M60 310C40 250 20 190 30 120 50 60 110 20 200 10c-30 40-50 90-40 150s50 100 80 140'/><path d='M30 120l170-110M45 180l150-80M70 240l120-60M100 290l80-40M100 60l40 120M150 35l40 130M200 10l20 160'/><path d='M60 310c60 10 130 0 190-40 40-30 70-70 90-120-50 30-110 40-170 40-40 0-80-10-110-30'/><path d='M60 310c30-30 70-50 110-60l90-30M80 290c50 0 100-20 150-50'/><path d='M330 20c40 20 80 60 100 110s30 100 20 150c-50-40-80-100-100-160-10-30-15-70-20-100z'/><path d='M330 20l80 120 40 140M340 60l70 80M360 120l60 60M330 20c20 60 60 110 110 150'/></svg>") no-repeat; background-size: 520px 330px; }
.band::before { left: 0; } .band::after { right: 0; transform: scaleX(-1); }
.search-box { position: relative; z-index: 1; padding: 12px 16px; }
.search-box .sh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; min-height: 30px; }
.search-box h1 { font: 700 24px/30px var(--serif); color: var(--ink); }
.search-box .clear { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font: 400 14px/17px var(--sans); color: var(--g800); }
.search-box .clear:hover { text-decoration: underline; }
.search-box .clear svg { width: 24px; height: 24px; }
.sform { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.sform > div { padding: 0 8px; margin-bottom: 16px; width: 220px; }
.sform > .w3 { width: 336px; }
.sform > .w4 { width: 160px; }
.sform .dates { display: flex; align-items: center; }
.sform .dates .fld { flex: 1; }
.sform .dates b { padding: 0 4px; }
.sform .btn { width: 144px; padding: 6px 8px; }
.home-search { padding-top: 20px; padding-bottom: 24px; }

/* body two columns */
.wrapper { display: flex; justify-content: space-between; gap: 24px; }
.wrapper .main { width: 632px; min-width: 0; }
.wrapper .side { width: 304px; flex: none; }
.home-body { padding-top: 44px; padding-bottom: 24px; }
.map-card { background: var(--p100); border: 1px solid var(--pag-active); border-radius: 8px; padding: 24px 24px 16px; margin-bottom: 20px; }
.map-card h2 { font: 700 24px/30px var(--serif); margin-bottom: 12px; }
.map-area { padding: 0 60px; text-align: center; }
.map-area svg { width: 100%; height: auto; display: block; }
.map-area path { stroke: #fff; stroke-width: 1.15; stroke-linejoin: round; cursor: pointer; transition: fill .15s; }
.map-area path:hover { fill: var(--p400); }
.map-area text { font: 700 11px var(--sans); fill: #3a3a3a; pointer-events: none; text-anchor: middle; }
.map-area text.n { font: 700 12px var(--sans); fill: var(--p900); }
.map-foot { display: flex; justify-content: flex-end; height: 67px; align-items: center; font: 400 12px/16px var(--sans); color: var(--g700); }

/* recent notices sidebar card (RIP.ie's featured list, without photos) */
.cta-list { position: relative; background: #fff; border-radius: 8px; padding: 0 0 60px; }
.cta-head { position: relative; min-height: 32px; border-radius: 8px 8px 0 0; background: var(--grad-gold); padding: 0 16px; font: 700 13px/30px var(--sans); color: var(--p900); }
.cta-center { padding: 9px 12px; border-left: 1px solid var(--p500); border-right: 1px solid var(--p500); }
.cta-scroll { height: 690px; overflow-y: auto; }
.cta-scroll.short { height: 350px; }
.cta-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-top: 4px; padding: 10px 12px; min-height: 60px; border: 1px solid var(--g300); border-radius: 6px; background: #fff; text-decoration: none; }
.cta-item:first-child { margin-top: 0; }
.cta-item:hover { background: var(--row-hover); }
.cta-item .nm { display: block; font: 600 13px/17.6px var(--sans); color: var(--p600); }
.cta-item .loc { display: block; margin-top: 2px; font: 400 12px/15px var(--sans); color: var(--g700); }
.cta-item .when { text-align: right; font: 400 10px/12px var(--sans); color: var(--g700); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.cta-item .when b { display: block; font: 600 12px/16px var(--sans); color: var(--p900); text-transform: none; letter-spacing: 0; }
.cta-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; padding: 10px; border: 1px solid var(--p500); border-top: 0; border-radius: 0 0 8px 8px; }
.cta-foot .btn { width: 100%; justify-content: space-around; }
.cta-foot .btn .ic { width: 14px; height: 14px; }

/* home: funeral-home directory teaser (RIP.ie's services band, reduced to the one category we have) */
.teaser { padding: 24px; display: grid; gap: 12px; justify-items: start; }
.teaser h2 { font: 700 24px/30px var(--serif); }
.teaser h3 { font: 700 16px/24px var(--serif); }
.teaser p { font: 400 14px/24px var(--sans); color: var(--ink); }
.teaser.small { padding: 16px; gap: 8px; margin-top: 16px; }

/* footer */
footer.site { background: var(--p900); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
footer.site > .wrap { width: 100%; min-width: 0; }
.totop-bar { display: grid; justify-items: center; align-content: center; gap: 4px; height: 55px; padding: 6px 0; background: rgba(255, 255, 255, .1); border: 0; cursor: pointer; width: 100%; font: 600 12px/15px var(--sans); color: #fff; text-transform: capitalize; }
.totop-bar svg { width: 16px; height: 16px; }
.fcols { display: grid; grid-template-columns: 148px 148px 296px 296px; gap: 24px; color: #fff; min-width: 0; }
.fcol { min-width: 0; overflow-wrap: anywhere; }
.fcol h3 { font: 700 15px/19px var(--sans); color: #fff; }
.fcol h3::after { content: ""; display: block; width: 16px; margin: 12px 0; border-bottom: 2px solid var(--p500); }
.fcol ul { display: grid; gap: 12px; }
.fcol ul.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fcol a { font: 400 14px/17px var(--sans); color: var(--g400); text-decoration: none; }
.fcol a.btn { font: 600 13px/22.75px var(--sans); color: var(--p900); }
.fcol a:hover { text-decoration: underline; }
.fcol li > span { font: 400 14px/17px var(--sans); color: var(--g400); }
.fcol .btn { width: 100%; }
.fcol .btn .ic { width: 16px; height: 16px; }
.fbottom { background: var(--footer-bottom); padding: 16px; display: grid; gap: 12px; justify-items: center; color: var(--g300); font: 400 12px/16px var(--sans); }
.fbottom ul { display: flex; flex-wrap: wrap; justify-content: center; }
.fbottom li { display: flex; align-items: center; padding: 0 7px; border-left: 1px solid var(--g300); }
.fbottom li:first-child { border-left: 0; }
.fbottom a { text-decoration: none; }

/* ===== list page ===== */
.crumbs-wrap { background: var(--body); padding: 4px 0; box-shadow: inset 0 -1px 0 var(--p600); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; min-height: 32px; }
.crumbs li { display: flex; align-items: center; font: 400 12px/16px var(--sans); letter-spacing: .2px; color: var(--p900); }
.crumbs li a, .crumbs li span { padding: 8px; text-decoration: none; }
.crumbs li:first-child a { padding-left: 22px; position: relative; }
.crumbs li:first-child a::before { content: ""; position: absolute; left: 4px; top: 9px; width: 14px; height: 14px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 11l9-7 9 7v9h-6v-6H9v6H3z' fill='%23b89422'/></svg>") no-repeat center / contain; }
.crumbs li + li::before { content: ""; width: 5px; height: 8px; margin-right: 2px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'><path d='M1 1l5 5-5 5' fill='none' stroke='%23b89422' stroke-width='1.6'/></svg>") no-repeat center / contain; }
.crumbs li.active { color: #8f6f31; text-decoration: underline; max-width: 100%; }
.crumbs li.active span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip { box-shadow: inset 0 -1px 0 var(--p600); }
.strip .search-box { margin: 20px 0 24px; }
.list-body { padding: 40px 0; }
.list-h { display: flex; justify-content: space-between; margin-bottom: 8px; }
.list-h h1 { font: 700 24px/30px var(--serif); color: var(--p900); }
.list-body .lead { font: 400 14px/22px var(--sans); color: var(--g700); margin-bottom: 8px; }
.list-tools { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.list-tools .count { font: 400 12px/18px var(--sans); color: var(--g700); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 16px 0; }
.filters .fld { width: 220px; }
.filters .chk { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/18px var(--sans); color: var(--p900); cursor: pointer; }
.filters .chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--p600); }
.switcher { text-align: right; font: 400 12px/18px var(--sans); color: var(--p900); }
.switcher ul { display: inline-flex; margin-top: 0; padding: 2px 1px; border: 1px solid var(--input-border); border-radius: 4px; background: var(--grad-light); }
.switcher li { width: 26px; height: 26px; margin: 0 2px; border-radius: 4px; display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.switcher li svg { width: 16px; height: 16px; fill: var(--input-icon); }
.switcher li:hover:not(.on) { background: #fff; opacity: .8; }
.switcher li.on { background: #fff; box-shadow: var(--shadow-bar); }
.dt { background: #fff; border-radius: 0 0 4px 4px; }
.dt-head { display: flex; min-height: 32px; border-radius: 4px 4px 0 0; background: var(--grad-gold); border-bottom: 1px solid rgba(0, 0, 0, .12); }
.dt-head > div, .dt-row > div { display: flex; align-items: center; padding: 2px 8px; min-width: 0; }
.dt .c1 { width: 206px; flex: 1 1 auto; } .dt .c2 { width: 108px; flex: none; } .dt .c3 { width: 140px; flex: none; overflow-wrap: anywhere; } .dt .c4 { width: 84px; flex: none; } .dt .c5 { width: 94px; flex: none; }
.dt.dir .c1 { width: 247px; } .dt.dir .c2 { width: 150px; } .dt.dir .c3 { width: 120px; } .dt.dir .c4 { width: 115px; }
.dt-head > div { font: 700 12px/15px var(--sans); color: var(--p900); justify-content: space-between; cursor: pointer; }
.dt-head > div.nosort { cursor: default; }
.dt-head svg { width: 18px; height: 18px; opacity: .5; }
.dt-head .sorted svg { opacity: 1; }
.dt-row { display: flex; min-height: 40px; border-bottom: 1px solid var(--table-border); cursor: pointer; }
.dt-row:hover { background: var(--row-hover); }
.dt-row > div { font: 500 13px/16px var(--sans); color: var(--p900); border-right: 1px solid var(--table-border); }
.dt-row > div.c1 { border-left: 1px solid var(--table-border); }
.dt-row a.nm { font: 400 13px/16px var(--sans); color: var(--p600); text-decoration: none; }
.dt-row a.nm b { font-weight: 700; }
.dt-row a.nm:hover { text-decoration: underline; }
.dt-row .flag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 3px; background: var(--p200); border: 1px solid var(--p400); font: 600 10px/12px var(--sans); color: var(--p800); white-space: nowrap; }
.dt-row .flag.chg { background: #ffeaea; border-color: #f3c3c3; color: #a33; }
.dt-row .sub { display: block; margin-top: 2px; font: 400 11px/14px var(--sans); color: var(--g700); }
.dt-row .sub a { color: inherit; }
.dt-empty { padding: 32px; text-align: center; color: var(--g700); }
.pager { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 3px 6px; background: var(--p500); border-radius: 0 0 4px 4px; box-shadow: 0 3px 6px rgba(80, 60, 5, .2); }
.pager .arr { width: 26px; height: 26px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pager .arr svg { width: 26px; height: 26px; fill: none; stroke: var(--p900); stroke-width: 2.2; }
.pager .arr:disabled { opacity: .35; cursor: default; }
.pager ul { display: flex; }
.pager li { width: 26px; height: 26px; margin: 0 1px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font: 400 12px/16px var(--sans); color: var(--p900); cursor: pointer; }
.pager li.on { font-weight: 700; background: var(--pag-active); }
.pager li.dots { cursor: default; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--table-border); border-top: 0; }
.tiles .cta-item { margin: 0; }
.side-title { font: 700 20px/30px var(--serif); color: var(--p800); margin-bottom: 8px; }
.sd-item { display: grid; grid-template-columns: 25px 1fr 62px; align-items: center; min-height: 48px; padding-top: 6px; padding-bottom: 6px; margin-bottom: 8px; padding: 0 12px 0 14px; border: 1px solid var(--input-border); border-radius: 6px; background: #fff; text-decoration: none; }
.sd-item svg { width: 16px; height: 20px; }
.sd-item b { font: 700 13px/16px var(--sans); color: var(--p900); margin-right: 8px; }
.sd-item b small { display: block; font: 400 11px/14px var(--sans); color: var(--g700); }
.sd-item.on { border-color: var(--p500); background: var(--p100); }
.sd-item .cnt { justify-self: end; min-width: 32px; padding: 4px 8px; border: 1px solid var(--pag-active); border-radius: 4px; background: var(--grad-light); font: 700 12px/16px var(--sans); color: var(--p800); text-align: center; }
.side-block { margin-bottom: 16px; }
.side-block .btn .ic { width: 14px; height: 14px; margin: 0 0 0 4px; }

/* ===== notice page ===== */
.top-area { box-shadow: inset 0 -1px 0 var(--p600); }
.top-cols { display: grid; grid-template-columns: 600px 300px; gap: 60px; align-items: center; padding: 24px 0; }
.tsf { display: grid; grid-template-columns: 1fr 20px; gap: 8px; align-items: center; padding: 8px 12px; }
.tsf p { font: 700 13px/19px var(--sans); color: var(--p900); }
.tsf .tog { display: none; width: 20px; height: 20px; }
.tsf .box { grid-column: 1 / -1; display: grid; gap: 8px; }
.tsf form { display: flex; }
.tsf form .fld { flex: 1; }
.tsf form .fld input { padding-left: 34px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2380786a' stroke-width='1.8'><circle cx='11' cy='11' r='7'/><path d='M20 20l-4-4'/></svg>") no-repeat 10px center / 16px; }
.tsf form .btn { margin-left: 8px; }
.tsf .adv { display: flex; align-items: center; gap: 10px; margin: 0 0 6px 8px; font: 600 13px/15px var(--sans); color: var(--blue); text-decoration: none; }
.center { display: grid; grid-template-columns: 697.5px 232.5px; gap: 25px 30px; padding: 40px 0; }
.dn { padding: 16px 20px; display: grid; gap: 20px; }
.dn-main { position: relative; display: grid; gap: 16px; }
.socials { position: absolute; right: 0; top: 0; z-index: 1; display: grid; grid-template-columns: repeat(3, auto); gap: 18px; }
.socials button { display: grid; justify-items: center; gap: 4px; height: 36px; background: none; border: 0; cursor: pointer; padding: 0; font: 400 11px/16px var(--sans); letter-spacing: .2px; color: var(--p900); }
.socials svg { width: 14px; height: 14px; }
.dn-title { padding: 8px 220px 0 0; }
.dn-title .occ { font: 700 16px/24px var(--serif); color: var(--p900); }
.dn-title h1 { font: 700 24px/30px var(--serif); color: var(--p500); }
.dn-title h1 .nee { font-weight: 400; font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; margin-top: 4px; }
.tag { padding: 4px; margin: 4px 4px 4px 0; font: 500 14px/16px var(--sans); letter-spacing: .2px; color: var(--p700); }
.tag.flag { border: 1px solid var(--p400); border-radius: 4px; background: var(--p200); color: var(--p800); font-weight: 600; }
.desc { font: 400 16px/28px var(--serif); color: var(--p900); }
.desc p { margin: 0 0 28px; }
.desc p:last-child { margin-bottom: 0; }
.desc a { color: var(--p500); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.dates .lb { font: 700 13px/19px var(--sans); color: var(--p600); margin-bottom: 4px; }
.dates .vl { font: 400 14px/17px var(--sans); color: var(--p900); }
.fd { position: relative; display: grid; grid-template-columns: 204px 1fr; gap: 0 26px; min-height: 202px; margin-top: 50px; padding: 17px 16px 16px; overflow: hidden; }
.fd::after { content: "i"; position: absolute; right: 8px; bottom: -22px; width: 121px; height: 122px; border-radius: 50%; border: 1px solid var(--p200); background: #fff; font: 700 86px/122px var(--serif); color: var(--p200); text-align: center; pointer-events: none; }
.fd h2 { grid-column: 1 / -1; font: 700 20px/30px var(--serif); color: var(--p900); }
.fd .addr { display: grid; gap: 4px; align-content: start; }
.fd .addr div { font: 400 14px/24px var(--sans); color: var(--p700); }
.fd .contact { display: grid; gap: 10px; align-content: start; padding-top: 10px; }
.fd .contact span { position: relative; padding-left: 27px; font: 400 14px/17px var(--sans); color: var(--p900); }
.fd .contact > span > svg { position: absolute; left: 0; top: 0; width: 16px; height: 16px; color: var(--p600); }
.fd .contact a { color: inherit; }
.fd .contact .srcbtn { justify-self: start; margin-top: 6px; }
.fd .note { grid-column: 1 / -1; position: relative; z-index: 1; margin-top: 16px; padding-right: 130px; font: 400 13px/20px var(--sans); color: var(--g700); }
.rail .cta-scroll.short { height: 430px; }

/* about page */
.about-body { padding: 40px 0; }
.about { padding: 8px 32px 24px; max-width: 760px; }
.about h1 { font: 700 24px/30px var(--serif); padding: 16px 0; }
.about section { padding: 20px 0; border-top: 1px solid var(--table-border); scroll-margin-top: 90px; }
.about h2 { font: 700 20px/28px var(--serif); margin-bottom: 8px; }
.about p, .about li { font: 400 15px/26px var(--sans); color: var(--ink); }
.about p + p, .about ul + p { margin-top: 8px; }
.about ul { list-style: disc; padding-left: 20px; margin: 4px 0 8px; }
.toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 70; padding: 9px 14px; border-radius: 4px; background: var(--g900); color: #fff; font-size: 13px; }

/* ===== responsive: rip.ie switches to the mobile layout below 1240px ===== */
@media (max-width: 1240px) {
  .hide-m { display: none !important; } .show-m { display: block; }
  .shell { padding-top: 64px; }
  header.site { position: fixed; }
  .topbar, nav.mainnav { display: none; }
  .mobar { display: flex; justify-content: flex-end; align-items: flex-start; height: 64px; background: var(--bg2); box-shadow: var(--shadow-bar); position: relative; }
  .mobar::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='44' viewBox='0 0 220 44'><defs><path id='lf' d='M0-22c3 6 5 9 9 9-2 2-2 5 0 8 3-1 6 0 9 3-4 1-6 4-5 8-3-2-6-2-8 0 0 5-1 9-5 14-4-5-5-9-5-14-2-2-5-2-8 0 1-4-1-7-5-8 3-3 6-4 9-3 2-3 2-6 0-8 4 0 6-3 9-9z'/></defs><g fill='%23cfc2a0' fill-opacity='.6'><use href='%23lf' transform='translate(30 24) rotate(-25) scale(.9)'/><use href='%23lf' transform='translate(95 22) rotate(30) scale(1.1)'/><use href='%23lf' transform='translate(160 26) rotate(-60) scale(.8)'/><use href='%23lf' transform='translate(205 20) rotate(80) scale(.7)'/></g></svg>") repeat-x left center / 220px 44px; opacity: .9; }
  .mobar .logo { position: absolute; left: 50%; transform: translateX(-50%); top: 0; width: 112px; height: 81px; }
  .mobar .logo .mark { padding-top: 18px; font-size: 18px; } .mobar .logo .mark small { font-size: 10px; } .mobar .logo .tag { margin-top: 8px; font-size: 9px; }
  .mobar .menu-btn { position: relative; width: 90px; height: 64px; background: none; border: 0; cursor: pointer; display: grid; justify-items: center; align-content: center; gap: 4px; font: 600 13px/19.5px var(--sans); color: var(--heading-contrast); }
  .mobar .menu-btn i { display: block; width: 18px; height: 14px; background: linear-gradient(var(--heading-contrast) 0 2px, transparent 2px 6px, var(--heading-contrast) 6px 8px, transparent 8px 12px, var(--heading-contrast) 12px 14px); }
  .totop { width: 36px; height: 36px; right: 16px; bottom: 35px; }
  .wrap { padding: 0 16px; }
  .band { margin-top: 0; padding-top: 24px; background-size: 100% 300px; }
  .band::before, .band::after { width: 260px; height: 165px; background-size: 260px 165px; }
  .home-search { margin-top: 28px; padding-top: 0; }
  .search-box h1 { font-size: 20px; line-height: 24px; }
  .sform { margin: 0 -4px; }
  .sform > div { width: 50%; padding: 0 4px; }
  .sform > .w3, .sform > .w4 { width: 100%; }
  .sform .btn { width: 100%; }
  .wrapper { flex-direction: column; }
  .wrapper .main, .wrapper .side { width: 100%; }
  .home-body { padding-top: 0; }
  .home-body .main { display: contents; }
  .home-body .map-card { order: 0; } .home-body .side { order: 1; } .home-body .teaser { order: 2; }
  .map-card { padding: 16px 20px 12px; }
  .map-card h2 { font-size: 20px; text-align: center; margin-bottom: 16px; }
  .map-area { padding: 0; }
  .cta-scroll { height: 560px; }
  .side .cta-list { margin-bottom: 40px; }
  .fcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .fcol.full-m { grid-column: 1 / -1; }
  .fcol h3::after { margin: 8px 0; }
  .list-body { padding: 24px 0; }
  .list-h { flex-direction: column; gap: 8px; }
  .list-h h1 { text-align: center; }
  .filters .fld { width: auto; flex: 1 1 150px; }
  .dt .c1 { width: 34%; } .dt .c2 { width: 20%; } .dt .c3 { width: 16%; } .dt .c4 { width: 15%; } .dt .c5 { width: 15%; }
  .dt.dir .c1 { width: 44%; } .dt.dir .c2 { width: 22%; } .dt.dir .c3 { width: 18%; } .dt.dir .c4 { width: 16%; }
  .dt.dir .flag { white-space: normal; }
  .dt-row > div { font-size: 12px; }
  .dt-head > div { font-size: 11px; }
  .top-cols { grid-template-columns: 1fr; gap: 0; padding: 16px 0; }
  .tsf .tog { display: block; cursor: pointer; }
  .tsf .box { display: none; }
  .tsf.open .box { display: grid; }
  .center { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .dn { padding: 16px; }
  .dn-main { grid-template-columns: 1fr; gap: 16px; }
  .dn-title { order: -1; padding: 0 !important; text-align: center; }
  .dn-title h1 { font-size: 24px; }
  .tags { justify-content: center; }
  .socials { position: static; justify-content: center; gap: 24px; }
  .dates { grid-template-columns: 1fr; gap: 12px; }
  .fd { grid-template-columns: 1fr; margin-top: 24px; }
  .fd h2 { grid-column: 1; }
  .fd .contact { padding-top: 12px; }
  .fd .note { padding-right: 0; }
  .about-body { padding: 24px 0; }
  .about { padding: 0 16px 16px; }
  .about section { scroll-margin-top: 80px; }
}
@media (max-width: 600px) {
  .dt-head svg { display: none; }
  .dt:not(.dir) .c3 { display: none; }
  .dt:not(.dir) .c1 { width: 40%; } .dt:not(.dir) .c2 { width: 22%; } .dt:not(.dir) .c4 { width: 18%; } .dt:not(.dir) .c5 { width: 20%; }
  .dt.dir .c3 { display: none; }
  .dt.dir .c1 { width: 50%; } .dt.dir .c2 { width: 28%; } .dt.dir .c4 { width: 22%; }
}

/* ===== restored from the measured rip.ie design: header actions, a11y controls, drawer buttons ===== */
.actions .btn-sec { margin-right: 12px; }
.actions .btn-pri { margin-right: 12px; }
.actions .toplink { border-left: 1px solid rgba(0, 0, 0, .12); padding: 0 12px; }
.a11y { position: absolute; top: 3px; right: 9px; width: 120px; font: 600 10px/15px var(--sans); color: var(--g700); text-align: right; }
.a11y .row { display: flex; justify-content: flex-end; align-items: flex-end; gap: 14px; height: 22px; }
.a11y ul { display: flex; align-items: flex-end; gap: 6px; }
.a11y li { font-family: var(--serif); color: var(--g800); line-height: 1; cursor: pointer; }
.a11y .fs li:nth-child(1) { font-size: 11px; } .a11y .fs li:nth-child(2) { font-size: 14px; } .a11y .fs li:nth-child(3) { font-size: 18px; }
.a11y .fs li.on { text-decoration: underline; color: var(--p700); }
.a11y .sch li { width: 18px; height: 18px; border: 1px solid var(--g800); border-radius: 2px; display: grid; place-items: center; font-size: 11px; background: #fff; }
.a11y .sch li.on { background: #ffd400; }
.toprow { padding-right: 130px; }
.drawer .a11y-m { display: flex; justify-content: space-between; padding: 6px 16px 8px 10px; background: var(--g200); font: 600 10px/15px var(--sans); color: var(--g700); }
.drawer .a11y-m ul { display: flex; gap: 8px; align-items: flex-end; margin-top: 4px; }
.drawer .a11y-m li { width: 22px; height: 22px; border: 1px solid var(--g800); border-radius: 2px; background: #fff; display: grid; place-items: center; font-family: var(--serif); cursor: pointer; }
.drawer .a11y-m li.on { background: #ffd400; }
.drawer .dbtns { display: grid; gap: 16px; padding: 16px 0 24px; }
.drawer .dbtns .btn-pri { border-radius: 0; }
.drawer .dbtns .btn-sec { margin: 0 16px; }
/* high-contrast mode (rip.ie's "Contrast" toggle): black on white, gold replaced by dark brown */
html.hc { --body: #fff; --bg2: #fff; --ink: #000; --g700: #222; --g600: #444; --p100: #fff; --p200: #f2f2f2; --p400: #5a4a00; --p500: #3d320e; --p600: #2a2300; --p700: #2a2300; --p800: #000; --p900: #000;
  --input-border: #000; --table-border: #999; --row-hover: #f2f2f2; --pag-active: #ffd400; --grad-light: #fff; --grad-gold: #ffd400; --grad-dark: #000; --heading-contrast: #000; --footer-bottom: #000; --blue: #0000c8; }
html.hc .btn-pri { color: #fff; } html.hc .btn-light { color: #000; }
html.hc footer.site { background: #000; } html.hc .fcol a { color: #fff; }
html.hc .band { background: #ffd400; } html.hc .band::before, html.hc .band::after { display: none; }
html.hc .map-area path { fill: #ddd; } html.hc .map-area path:hover { fill: #ffd400; }

/* ===== sidebar lists with thumbnails (rip.ie featured list) and the family-notices variant ===== */
.cta-item { grid-template-columns: 58px 1fr auto; padding: 8px 12px 8px 8px; min-height: 72px; }
.cta-item.nopic { grid-template-columns: 1fr auto; padding: 10px 12px; min-height: 60px; }
.cta-item .ph { width: 56px; height: 56px; padding: 2px; border: 1px solid var(--g300); background: linear-gradient(160deg, #ece7d8, #d9d2bd); display: grid; place-items: center; overflow: hidden; }
.cta-item .ph svg { width: 36px; height: 44px; }
.cta-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.cta-item .ph.auto { background: var(--g100); } .cta-item .ph.auto svg { width: 28px; height: 28px; }
.cta-item .nm.fn { font-weight: 400; color: var(--fn-name); line-height: 19px; }
.cta-item .nm .star { color: var(--p500); margin-right: 4px; }
.cta-head.dark { background: radial-gradient(50% 2949%, #636971 0, #494e54 100%); color: #fff; font: 700 16px/32px var(--serif); text-align: center; min-height: 51px; padding-top: 8px; }
.cta-head.dark::before { content: ""; display: block; height: 10px; margin: 2px auto -4px; width: 80px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='12' viewBox='0 0 80 12' fill='none' stroke='%23fff' stroke-width='1'><path d='M2 6c10-6 20 6 30 0s20-6 28 0 10 6 18 0M30 6c3-3 6-3 10 0-4 3-7 3-10 0z'/></svg>") no-repeat center; }
.cta-list.fn .cta-center, .cta-list.fn .cta-foot { border-color: var(--heading-contrast); }
.cta-list + .cta-list, .side-block + .cta-list { margin-top: 16px; }

/* ===== home: family-notices section, grey banner, funeral-home band ===== */
.fam-sec { margin-bottom: 40px; }
.fam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fam-card { display: block; padding: 16px; border: 1px solid var(--input-border); border-radius: 8px; background: #fff; text-decoration: none; }
.fam-card .kind { font: 500 11px/16px var(--sans); text-transform: uppercase; letter-spacing: .4px; color: var(--p600); }
.fam-card h3 { font: 700 18px/26px var(--serif); color: var(--p900); margin: 4px 0; }
.fam-card p { font: 400 13px/20px var(--sans); color: var(--g700); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fam-card .meta { margin-top: 8px; font: 500 11px/16px var(--sans); text-transform: uppercase; color: var(--ink); }
.grey { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 125px; padding: 20px 54px; border-radius: 4px; margin: 0 0 40px;
  background: radial-gradient(60% 120% at 50% 0, #5c626a 0, #474c52 60%, #40454b 100%); }
.grey::after { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60' fill='none' stroke='%23fff' stroke-width='.6'><path d='M0 30c20-20 40 20 60 0s40-20 60 0M0 10c20-20 40 20 60 0s40-20 60 0M0 50c20-20 40 20 60 0s40-20 60 0'/></svg>"); }
.grey .ln { position: absolute; background: var(--p400); }
.grey .ln.tl { top: 7px; right: 19px; width: 30px; height: 1px; } .grey .ln.rl { top: 19px; right: 7px; width: 1px; height: 30px; }
.grey .ln.bl { bottom: 7px; left: 19px; width: 30px; height: 1px; } .grey .ln.ll { bottom: 19px; left: 7px; width: 1px; height: 30px; }
.grey .orn { position: absolute; width: 30px; height: 30px; fill: var(--p400); }
.grey .orn.tr { top: 9px; right: 7px; } .grey .orn.bl2 { bottom: 9px; left: 7px; transform: rotate(180deg); }
.grey .txt { padding-right: 10px; z-index: 1; }
.grey .txt h2 { font: 700 24px/30px var(--serif); color: var(--p400); }
.grey .txt p { font: 400 14px/24px var(--sans); color: var(--p100); }
.grey .btn { z-index: 1; }
.fdband { background: #fff; padding: 48px 0; }
.fdband h3 { font: 700 32px/40px var(--serif); color: var(--p900); }
.fdband .sub { margin-top: 12px; font: 400 16px/28px var(--serif); color: var(--service-title); max-width: 720px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 24px; }
.benefit { padding: 20px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--p100); }
.benefit svg { width: 36px; height: 36px; margin-bottom: 12px; }
.benefit b { display: block; font: 700 15px/22px var(--sans); color: var(--p900); margin-bottom: 6px; }
.benefit p { font: 400 13px/20px var(--sans); color: var(--g700); }
.fdband .ctas { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.fdband .ctas .note { font: 400 13px/20px var(--sans); color: var(--g700); margin-left: auto; }

/* ===== notice page: photo frame, seal, sympathy row, condolence book, rail promo ===== */
.dn-main.pic { grid-template-columns: 220px 1fr; gap: 28px; }
.frame { margin-top: -32px; width: 220px; padding: 15px; border: 1px solid #d2bd7c; border-radius: 6px; background: var(--grad-light); box-shadow: 0 3px 6px rgba(0, 0, 0, .25); }
.frame .photo { width: 188px; height: 282px; background: linear-gradient(170deg, #f4f6ea 0, #e7ead6 55%, #d8dcc2 100%); display: grid; place-items: center; overflow: hidden; }
.frame .photo svg { width: 120px; height: 150px; }
.frame .photo img { width: 100%; height: 100%; object-fit: cover; }
.frame.small { margin: 0; width: 150px; padding: 8px; } .frame.small .photo { width: 132px; height: 176px; } .frame.small .photo svg { width: 80px; height: 100px; }
.dn-title.pic { align-self: center; padding-top: 48px; }
.dn-title .kind { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--p400); background: var(--p200); font: 600 11px/16px var(--sans); color: var(--p800); }
.dn-title .kind.auto { border-color: var(--g300); background: var(--g100); color: var(--g700); }
.dn-title .kind svg { width: 12px; height: 12px; }
.fd.verified { grid-template-columns: 204px 1fr 102px; }
.fd .seal { grid-column: 3; align-self: start; justify-self: end; z-index: 1; width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--p500); background: #fff; display: grid; place-items: center; text-align: center; font: 700 9px/11px var(--sans); color: var(--p700); padding: 6px; }
.fd .claim { grid-column: 1 / -1; position: relative; z-index: 1; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--p400); border-radius: 6px; background: var(--p100); font: 400 13px/20px var(--sans); color: var(--p900); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.sympathy { margin-top: 50px; display: flex; flex-direction: column; gap: 24px; }
.sympathy .ttl { display: flex; align-items: center; margin-bottom: 16px; }
.sympathy .ttl span { width: 50%; text-align: center; font: 700 24px/30px var(--serif); color: var(--p900); }
.sympathy .ttl i { flex: 1; border-top: 1px solid var(--input-border); }
.sympathy .row { display: flex; justify-content: space-between; gap: 24px; }
.sympathy .row > * { flex: 1; }
.btn.lit { background: linear-gradient(180deg, #fff6d6, #f5e4a8); border-color: var(--p500); }
.cond { padding: 16px 20px; display: grid; gap: 12px; margin-top: 24px; }
.cond h2 { font: 700 20px/30px var(--serif); }
.cond .note { padding: 8px 12px; border-radius: 4px; background: var(--p200); border: 1px solid var(--p400); font-size: 13px; }
.cond ul li { padding: 12px 0; border-top: 1px solid var(--table-border); }
.cond ul .who { font: 700 13px/18px var(--sans); color: var(--p900); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cond ul .who span { font-weight: 400; color: var(--g700); }
.cond ul p { font: 400 15px/24px var(--serif); color: var(--p900); }
.cond ul time { font: 400 11px/16px var(--sans); color: var(--g700); }
.cond ul .rep { margin-left: auto; font: 400 11px/16px var(--sans); color: var(--g700); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.cond .empty { font: 400 13px/20px var(--sans); color: var(--g700); }
.cond .off { font: 400 13px/20px var(--sans); color: var(--g700); }
.st { display: inline-block; padding: 2px 6px; border-radius: 3px; font: 600 10px/12px var(--sans); white-space: nowrap; }
.st.pend { background: #fff6d6; border: 1px solid var(--p400); color: var(--p800); }
.st.ok { background: #e8f3e8; border: 1px solid #b8d8b8; color: #2a6a2a; }
.st.auto { background: var(--g100); border: 1px solid var(--g300); color: var(--g700); }
.st.chg { background: #ffeaea; border: 1px solid #f3c3c3; color: #a33; }
.rail .banner { padding: 6px; border-radius: 8px; background: radial-gradient(50% 50%, #fbf8f4 0, #fff 100%); margin-bottom: 16px; }
.rail .tree { height: 150px; margin: -6px -6px 8px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #dcba50, #d0ab32); position: relative; overflow: hidden; clip-path: ellipse(90% 100% at 50% 0); }
.rail .tree svg { position: absolute; left: 50%; top: 14px; width: 150px; height: 140px; transform: translateX(-50%); fill: #c5a132; }
.rail .inner { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--p200); border-radius: 7px; }
.rail .inner h3 { font: 700 16px/24px var(--serif); color: var(--p900); text-align: center; }
.rail .inner p { font: 400 14px/24px var(--sans); color: var(--ink); text-align: center; }

/* ===== forms, pages with a single card (login, alert, add family notice, account, panel) ===== */
.page { padding: 40px 0; }
.page .card { padding: 24px 32px 28px; }
.page .card > h1 { font: 700 24px/30px var(--serif); margin-bottom: 8px; }
.page .lead { font: 400 14px/22px var(--sans); color: var(--g700); margin-bottom: 20px; }
.narrow { max-width: 560px; margin: 0 auto; }
.frm { display: grid; gap: 14px; }
.frm .f { display: grid; gap: 4px; font: 700 12px/16px var(--sans); color: var(--p900); min-width: 0; }
.frm .f input, .frm .f select, .frm .f textarea { width: 100%; border: 1px solid var(--input-border); border-radius: 4px; padding: 8px 12px; font: 400 14px/20px var(--sans); background: #fff; min-height: 40px; }
.frm .f select { padding-right: 32px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%231b2124' stroke-width='1.6'/></svg>") no-repeat right 12px center; }
.frm .f input[type=file] { padding: 7px 12px; }
.frm .f.chk { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-weight: 500; font-size: 13px; cursor: pointer; }
.frm .f.chk input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--p600); }
.frm .f .hint { font: 400 12px/16px var(--sans); color: var(--g700); }
.frm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frm .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.frm h3 { font: 700 16px/24px var(--serif); color: var(--p900); margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--table-border); }
.frm .acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.frm .acts a { font: 500 13px/18px var(--sans); color: var(--g700); }
.frm .err { color: #a33; font: 500 13px/18px var(--sans); }
.frm .photo-up { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.msg { padding: 12px 16px; border-radius: 6px; border: 1px solid var(--p400); background: var(--p200); font: 400 14px/22px var(--sans); color: var(--p900); }
.msg.ok { border-color: #b8d8b8; background: #eef7ee; }
.tabs { display: flex; border-bottom: 1px solid var(--input-border); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; font: 600 14px/18px var(--sans); color: var(--g700); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--p900); border-color: var(--p500); }
.sections > section { padding: 24px 0; border-top: 1px solid var(--table-border); }
.sections > section:first-child { border-top: 0; padding-top: 0; }
.sections h2 { font: 700 20px/28px var(--serif); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sections h2 .btn { font-weight: 600; }
.tiles.flat { border: 0; padding: 0; background: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 28px; }
.stat { padding: 14px 16px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--p100); }
.stat b { display: block; font: 700 26px/32px var(--serif); color: var(--p900); }
.stat span { font: 500 12px/16px var(--sans); color: var(--g700); }
.phead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; }
.phead h1 { font: 700 24px/30px var(--serif); }
.phead .who { font: 400 13px/18px var(--sans); color: var(--g700); }
.phead .acts { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.rail .cta-item { grid-template-columns: 44px 1fr auto; gap: 8px; padding: 8px; min-height: 60px; }
.rail .cta-item .ph { width: 42px; height: 42px; } .rail .cta-item .ph svg { width: 26px; height: 32px; } .rail .cta-item .ph.auto svg { width: 22px; height: 22px; }
.dt .acts { flex-wrap: wrap; gap: 2px 10px; }
.dt .acts a { font: 600 12px/16px var(--sans); color: var(--p700); white-space: nowrap; }
.dt.mine .c1 { width: 240px; } .dt.mine .c2 { width: 90px; } .dt.mine .c3 { width: 90px; } .dt.mine .c4 { width: 130px; } .dt.mine .c5 { width: 150px; }
.hero { display: grid; grid-template-columns: 1fr 304px; gap: 24px; align-items: center; margin-bottom: 40px; }
.hero h1 { font: 700 32px/40px var(--serif); color: var(--p900); margin-bottom: 12px; }
.hero p { font: 400 16px/26px var(--sans); color: var(--ink); margin-bottom: 20px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.step { position: relative; padding: 20px 20px 20px 64px; border: 1px solid var(--input-border); border-radius: 8px; background: #fff; }
.step i { position: absolute; left: 16px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--grad-gold); font: 700 16px/36px var(--serif); color: var(--p900); text-align: center; font-style: normal; }
.step b { display: block; font: 700 15px/22px var(--sans); color: var(--p900); margin-bottom: 4px; }
.step p { font: 400 13px/20px var(--sans); color: var(--g700); }
.faq dt { font: 700 14px/22px var(--sans); color: var(--p900); margin-top: 14px; }
.faq dd { margin: 2px 0 0; font: 400 14px/22px var(--sans); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips a { padding: 6px 12px; border: 1px solid var(--input-border); border-radius: 16px; background: #fff; font: 500 12px/16px var(--sans); color: var(--p900); text-decoration: none; }
.chips a.on { background: var(--grad-gold); border-color: var(--p500); }
.fam-head .kind { font: 500 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .4px; color: var(--p600); }
.fam-head h1 { font: 700 24px/30px var(--serif); color: var(--p500); margin: 4px 0; }
.fam-head .sub { font: 500 14px/20px var(--sans); color: var(--p700); }
.event { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 12px 16px; border: 1px solid var(--p400); border-radius: 6px; background: var(--p200); }
.event .lb { font: 700 12px/16px var(--sans); color: var(--p600); } .event .vl { font: 400 14px/20px var(--sans); color: var(--p900); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.inline-link { font: 500 13px/18px var(--sans); color: var(--p700); }

@media (max-width: 1240px) {
  .toprow { padding-right: 0; }
  .cta-scroll { height: 560px; }
  .grey { flex-direction: column; justify-content: flex-start; align-items: center; min-height: 132px; padding: 20px 20px 12px; text-align: center; margin-bottom: 16px; }
  .grey .ln.tl, .grey .ln.bl { width: calc(100% - 29px); } .grey .ln.rl, .grey .ln.ll { height: calc(100% - 29px); }
  .grey .txt { padding: 0 0 12px; }
  .grey .txt h2 { font-size: 20px; }
  .grey .btn { height: 32px; padding: 6px 15.5px; }
  .home-body .fam-sec { order: 2; } .home-body .grey { order: 3; }
  .fam-grid { grid-template-columns: 1fr; }
  .fdband { padding: 32px 0; }
  .fdband h3 { font-size: 22px; line-height: 30px; }
  .benefits { grid-template-columns: 1fr; gap: 12px; }
  .fdband .ctas .note { margin-left: 0; width: 100%; }
  .dn-main.pic { grid-template-columns: 1fr; gap: 16px; }
  .frame { margin: 0 auto; }
  .dn-title.pic { padding-top: 0; }
  .fd.verified { grid-template-columns: 1fr; }
  .fd .seal { grid-column: 1; justify-self: start; margin-top: 8px; }
  .sympathy { margin-top: 24px; }
  .sympathy .ttl span { width: 100%; font-size: 28px; line-height: 34px; }
  .sympathy .ttl i { display: none; }
  .sympathy .row { flex-direction: column; gap: 16px; }
  .rail .banner { display: grid; grid-template-columns: 100px 1fr; gap: 8px; }
  .rail .tree { height: 100%; margin: 0; border-radius: 6px; clip-path: none; }
  .rail .tree svg { width: 90px; height: 90px; top: 6px; }
  .rail .inner { border: 0; }
  .page { padding: 24px 0; }
  .page .card { padding: 16px; }
  .frm .row, .frm .row3 { grid-template-columns: 1fr; }
  .frm .photo-up { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; }
  .dt.mine .c1 { width: 36%; } .dt.mine .c2 { width: 18%; } .dt.mine .c3 { display: none; } .dt.mine .c4 { width: 22%; } .dt.mine .c5 { width: 24%; }
}

/* site-only additions (not in the prototype) */
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .dt .acts a, .dt .acts button { white-space: normal; }
  .dt.mine .c5 { width: 28%; } .dt.mine .c1 { width: 34%; } .dt.mine .c4 { width: 20%; } .dt.mine .c2 { width: 18%; }
}
.toast.error { background: #7a1f1f; }
.toast.success { background: var(--g900); }

/* consent / terms line under forms that collect personal data */
.legal-note { font-size: 12px; color: #6b6455; margin: 4px 0 10px; }
.legal-note a { color: inherit; text-decoration: underline; }
