/* The shared Cmentero sheets own the wordmark, type, colour palette, buttons and footer. */
[hidden] { display: none !important; }
.header .nav { column-gap: clamp(12px, 1.8vw, 32px); }
.nav [aria-current="page"] { color: var(--blue); font-weight: 700; opacity: 1; }

.notice-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.notice-fields label { display: grid; gap: 6px; font-size: 16px; font-weight: 600; min-width: 0; }
.notice-fields input, .notice-fields select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #a8afbb;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.3 var(--font);
}
.notice-fields input:focus-visible, .notice-fields select:focus-visible, a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.notice-link, .notice-back { color: var(--blue); font-weight: 600; }
.notice-link:hover, .notice-back:hover { text-decoration: underline; }
.notice-summary { color: #50535a; margin: 10px 0 0; }
.notice-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
}
.notice-cards li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; min-width: 0; }
.notice-cards li:focus-within, .notice-cards li:hover { border-color: var(--blue); }
.notice-cards a { display: block; color: var(--blue); font-size: 21px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.notice-cards a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.notice-cards small { display: block; font-size: 15px; line-height: 1.4; color: #555; }
.notice-cards small:first-child { margin-bottom: 6px; color: var(--ink); }
.notice-cards small:last-child { margin-top: 8px; }
.notice-subpage { padding-block: 40px 64px; }
.notice-subpage h1 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.07; margin: 16px 0; }
.notice-back { display: inline-block; margin-bottom: 14px; }
.notice-subpage .notice-summary { margin-block: 20px 8px; }
.notice-subpage .notice-fields { max-width: 680px; margin-top: 22px; }

@media (max-width: 1060px) {
  .header .nav { display: none; }
  .notice-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.published-page { padding-block: 26px 60px; }
.published-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.published-heading img { width: clamp(68px,8vw,105px); height: auto; }
.published-page h1 { margin: 0; font-size: clamp(36px,4.2vw,62px); line-height: 1.06; }
.published-heading h1 span, .published-card a { color: var(--blue); }
.published-filter { margin-bottom: 16px; }
.published-filter summary { width: fit-content; cursor: pointer; color: var(--blue); font-weight: 600; padding: 7px 0; }
.published-filter summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.published-page .notice-fields { max-width: 740px; margin-block: 8px 18px; }
.published-grid { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.published-card, .published-detail { padding: clamp(20px,2.4vw,32px); border: 1px solid var(--line); border-radius: 24px; }
.notice-place { margin: 0 0 6px; font-weight: 600; }
.published-card h2 { font-size: clamp(24px,2.4vw,32px); line-height: 1.1; margin: 0 0 14px; }
.published-card a:hover, .published-detail footer a:hover { text-decoration: underline; }
.notice-facts { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 14px 0 0; }
.notice-facts dt { font-size: 14px; color: #555; }
.notice-facts dd { margin: 2px 0 0; font-weight: 600; }
.notice-note { margin: 15px 0 0; line-height: 1.45; }
.published-detail { max-width: 760px; margin: 6px auto 0; }
.published-detail footer { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.published-detail footer a { color: var(--blue); font-weight: 600; }
@media (max-width: 760px) {
  .published-page { padding-block: 18px 40px; }
  .published-heading { margin-bottom: 12px; }
  .published-grid, .notice-cards { grid-template-columns: minmax(0,1fr); }
  .published-page .notice-fields { gap: 9px; margin-bottom: 16px; }
}
@media (max-width: 480px) {
  .notice-fields { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .notice-facts { gap: 8px 14px; }
}
.tributes { margin-top: 20px; }
.tributes h2, .tributes h3 { margin: 0 0 14px; }
.tribute-reactions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tributes button, #moderation button { min-height: 44px; padding: 8px 14px; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; }
.tributes button[aria-pressed="true"], .tributes button[type="submit"] { background: var(--blue); border-color: var(--blue); color: white; }
.tributes :focus-visible, #moderation :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.tributes form { display: grid; gap: 10px; }
.tributes form button { justify-self: start; }
.tributes label { display: grid; gap: 4px; font-weight: 600; }
.tributes label small { font-weight: 400; }
.tributes input, .tributes textarea, #moderation select { font: inherit; padding: 10px; border: 1px solid #9299a3; border-radius: 8px; width: 100%; box-sizing: border-box; }
.tributes textarea { resize: vertical; }
.tributes ul, #moderation ul { padding: 0; list-style: none; }
.tributes li, #moderation li { padding-block: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.tributes li p, #moderation li p { white-space: pre-wrap; margin: 4px 0; }
#moderation { max-width: 760px; margin-block: 24px; }
#moderation button { margin-right: 8px; }
#tribute-status:empty { display: none; }

.notice-pages { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px 24px; margin:24px 0; }
.notice-pages a, #more-hits { color:var(--blue); font-weight:600; }
#more-hits { display:block; margin:20px auto; padding:9px 18px; border:1px solid var(--line); border-radius:12px; background:white; font:inherit; cursor:pointer; }

.readership { margin-block: 1rem; font-size: .94rem; }
.readership button { color: var(--blue); background: white; border: 1px solid var(--blue); border-radius: .6rem; padding: .5rem .8rem; font: inherit; cursor: pointer; }
#readership-choice { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: white; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; box-shadow: 0 4px 18px #18253622; }
#readership-choice[hidden] { display: none; }
#readership-choice p { margin: 0; }

/* === TABLICA PAMIĘCI — 1:1 EDITORIAL MEMORIAL DESIGN === */
.tp-page {
  --tp-green: #173f2d;
  --tp-green-hover: #123324;
  --tp-green-soft: #e6efe9;
  --tp-green-accent: #1c5e41;
  --tp-ink: #17211c;
  --tp-muted: #5b6660;
  --tp-border: #e3e8e4;
  --tp-card-bg: #f5f6f3;
  max-width: 1120px;
  margin: 0 auto;
  padding-block: 18px 64px;
}
.tp-shell {
  background: #ffffff;
  border: 1px solid #e2e7e3;
  border-radius: 24px;
  box-shadow: 0 12px 42px rgba(17, 31, 24, 0.06);
  overflow: hidden;
  padding-bottom: 28px;
}

/* Top Memorial Bar */
.tp-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 28px;
  background: #ffffff;
  border-bottom: 1px solid #ecefe9;
}
.tp-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tp-ink);
  text-decoration: none;
}
.tp-brand svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--tp-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tp-all-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tp-muted);
  text-decoration: none;
  padding-left: 14px;
  border-left: 1px solid #e1e6e2;
}
.tp-all-link:hover {
  color: var(--tp-green);
  text-decoration: underline;
}
.tp-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.tp-topnav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: #2c3832;
  text-decoration: none;
}
.tp-topnav a:hover {
  color: var(--tp-green);
}
.tp-green-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--tp-green);
  background: var(--tp-green);
  color: #ffffff;
  font: 600 0.92rem/1.2 system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.tp-green-pill:hover {
  background: var(--tp-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23, 63, 45, 0.22);
}

/* Sunrise Meadow Hero Banner */
.tp-hero {
  position: relative;
  background: url("/nekrologi/hero-sunrise.jpg") right center / cover no-repeat, #eef2ee;
  padding: 34px 36px 54px;
  border-bottom: 1px solid #e5eae6;
}
.tp-hero-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 780px;
}
.tp-avatar-wrap {
  position: relative;
  flex: 0 0 136px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 28px rgba(17, 32, 24, 0.16);
  overflow: hidden;
  background: #dfe5e0;
}
.tp-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tp-avatar-upload {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(23, 63, 45, 0.86);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.tp-avatar-wrap:hover .tp-avatar-upload {
  opacity: 1;
}
.tp-hero-text {
  min-width: 0;
}
.tp-hero-text h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.8vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #161f1a;
}
.tp-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #233029;
}
.tp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tp-meta-item svg, .tp-report-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #3c4d44;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tp-hero-note {
  margin: 0 0 12px;
  font-size: 0.96rem;
  line-height: 1.48;
  color: #2d3a33;
  max-width: 58ch;
}
.tp-source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 0.9rem;
  color: #46534c;
}
.tp-source-row a {
  color: var(--tp-green-accent);
  font-weight: 700;
  text-decoration: none;
}
.tp-source-row a:hover {
  text-decoration: underline;
}
.tp-report-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2f3b35 !important;
  font-weight: 600 !important;
}

/* 3 Overlapping Large Pill Reaction Buttons */
.tp-reactions-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: -31px 28px 18px;
  padding: 0;
}
.tp-reaction-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 10px 18px 10px 24px;
  border-radius: 999px;
  border: 1px solid #e3e8e4;
  background: #ffffff;
  color: #1a241f;
  box-shadow: 0 8px 24px rgba(18, 35, 26, 0.07);
  font: 700 1.05rem/1.2 Georgia, "Times New Roman", serif;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.tp-reaction-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 35, 26, 0.12);
}
.tp-reaction-left {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.tp-reaction-left .reaction-emoji {
  font-size: 1.35rem;
}
.tp-reaction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaeeeb;
  color: #27332c;
  font: 700 0.92rem/1 system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}
.tp-reaction-pill[aria-pressed="true"] {
  background: var(--tp-green);
  border-color: var(--tp-green);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(23, 63, 45, 0.26);
}
.tp-reaction-pill[aria-pressed="true"] .tp-reaction-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.tp-reaction-pill.is-animating {
  animation: reactionPulse 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.tp-reaction-count.is-bumping {
  animation: counterPop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes reactionPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(23, 63, 45, 0.18); }
  100% { transform: scale(1); }
}
@keyframes counterPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.36); }
  100% { transform: scale(1); }
}
.reaction-fly-particle {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  font-size: 1.9rem;
  line-height: 1;
  transform: translate(-50%, -50%) scale(var(--fly-scale, 1));
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
  animation: reactionFlyUp var(--fly-dur, 1100ms) cubic-bezier(0.16, 1, 0.3, 1) var(--fly-delay, 0ms) forwards;
}
@keyframes reactionFlyUp {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  18% { opacity: 1; transform: translate(calc(-50% + var(--drift-x, 0px) * 0.35), -26px) scale(var(--fly-scale, 1.15)); }
  75% { opacity: 0.92; transform: translate(calc(-50% + var(--drift-x, 0px) * 0.85), -98px) scale(var(--fly-scale, 1)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift-x, 0px)), -142px) scale(0.75); }
}
.reaction-toast {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--tp-green-soft);
  border: 1px solid #c3d7cb;
  color: var(--tp-green);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.reaction-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Main Workspace: Left Sidebar + Right Tablica */
.tp-workspace {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 24px;
  padding: 10px 28px 0;
  align-items: start;
}
.tp-sidebar {
  background: #ffffff;
  border: 1px solid #e4e9e5;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(17, 31, 24, 0.03);
  display: grid;
  gap: 4px;
}
.tp-side-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #2b3731;
  font: 500 0.93rem/1.25 system-ui, -apple-system, sans-serif;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tp-side-btn:hover {
  background: #f3f6f4;
}
.tp-side-btn.is-active {
  background: var(--tp-green-soft);
  color: var(--tp-green);
  font-weight: 700;
}
.tp-side-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tp-side-left svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tp-side-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #526058;
  font-variant-numeric: tabular-nums;
}
.tp-side-btn.is-active .tp-side-count {
  color: var(--tp-green);
  font-weight: 700;
}
.tp-side-divider {
  border: 0;
  border-top: 1px solid #eaeoe9;
  border-top-color: #e8ece9;
  margin: 6px 4px;
}

/* Right Content Area Header */
.tp-main {
  min-width: 0;
}
.tp-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.tp-main-head h2 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--tp-ink);
}
.tp-main-sub {
  margin: 0;
  font-size: 0.94rem;
  color: var(--tp-muted);
}
.tp-head-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tp-sort-select {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #dce2de;
  background: #ffffff;
  color: #25302a;
  font: 600 0.88rem/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
}
.tp-view-group {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid #dce2de;
  background: #f6f8f6;
  gap: 2px;
}
.tp-view-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4a5750;
  cursor: pointer;
}
.tp-view-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tp-view-btn.is-active {
  background: var(--tp-green-soft);
  color: var(--tp-green);
}

/* 3-Column Bento Grid & Cards */
.board-surface {
  border: 0;
  background: transparent;
}
.tp-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.tp-bento-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.tp-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  border: 1px solid #e5e8e3;
  background: var(--card-fill, #f5f6f3);
  color: var(--ink-look, #1e2622);
  box-shadow: 0 2px 10px rgba(20, 32, 25, 0.03);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.tp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 32, 25, 0.07);
}
.tp-card-body {
  padding: 18px 18px 12px;
  display: grid;
  gap: 12px;
}
.tp-card-body p {
  margin: 0;
  font-family: var(--look-font, Georgia, "Times New Roman", serif);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-look, #1d2521);
  white-space: pre-wrap;
}
.tp-card-date {
  display: inline-block;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--tp-green);
}

/* Photo Card */
.tp-photo-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe4e0;
}
.tp-card--bleed .tp-photo-box,
.tp-card--bleed .tp-video-box {
  height: 100%;
  min-height: 215px;
  aspect-ratio: auto;
}
.tp-photo-box img, .tp-video-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tp-photo-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(15, 22, 18, 0.68);
  color: #ffffff;
  font: 600 0.78rem/1 system-ui, -apple-system, sans-serif;
  backdrop-filter: blur(4px);
}
.tp-photo-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* Video Card */
.tp-video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1c2420;
}
.tp-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(16, 25, 20, 0.62);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.tp-video-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(23, 63, 45, 0.88);
}
.tp-video-play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}
.tp-video-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(15, 20, 17, 0.75);
  color: #ffffff;
  font: 600 0.76rem/1 system-ui, -apple-system, sans-serif;
}
.tp-video-iframe {
  width: 100%;
  min-height: 215px;
  aspect-ratio: 16 / 10;
  border: 0;
  display: block;
}

/* Spotify Music Pill inside Card */
.tp-spotify-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e7e3;
  box-shadow: 0 2px 6px rgba(15, 25, 20, 0.04);
}
.tp-spotify-logo svg {
  width: 28px;
  height: 28px;
  display: block;
}
.tp-spotify-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.tp-spotify-meta strong {
  font: 700 0.83rem/1.25 system-ui, -apple-system, sans-serif;
  color: #18211c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-spotify-meta span {
  font: 500 0.74rem/1.2 system-ui, -apple-system, sans-serif;
  color: #616d66;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-spotify-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #eff3f0;
  color: #1c2620;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.tp-spotify-play:hover {
  background: var(--tp-green);
  color: #ffffff;
}
.tp-spotify-play svg {
  width: 14px;
  height: 14px;
  margin-left: 1px;
}
.tp-spotify-iframe {
  width: 100%;
  height: 80px;
  border: 0;
  border-radius: 12px;
}

/* Card Footer (Author + Relative Time + Heart Counter) */
.tp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px 15px;
}
.tp-card-author {
  display: grid;
  gap: 1px;
}
.tp-card-author strong {
  font: 700 0.84rem/1.25 system-ui, -apple-system, sans-serif;
  color: var(--ink-look, #1c2520);
}
.tp-card-author span {
  font: 500 0.76rem/1.2 system-ui, -apple-system, sans-serif;
  color: var(--muted-look, #68736c);
}
.tp-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-look, #2c3731);
  font: 600 0.84rem/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
}
.tp-like-btn:hover {
  background: rgba(23, 63, 45, 0.07);
}
.tp-like-btn.is-liked .tp-heart-icon {
  color: #c93b4b;
}
.tp-heart-icon {
  font-size: 1.05rem;
}

/* Bottom Dashed CTA Banner */
.tp-dashed-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 28px 0;
  padding: 20px 26px;
  border: 1.5px dashed #c7d2ca;
  border-radius: 18px;
  background: #fafbf9;
}
.tp-dashed-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tp-plus-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e1ece5;
  color: var(--tp-green);
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
}
.tp-dashed-left h3 {
  margin: 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  color: var(--tp-ink);
}
.tp-dashed-left p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--tp-muted);
}

/* About & Stats Panels */
.tp-about-panel {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e4e9e5;
  background: #f9faf8;
}
.tp-about-panel h3 {
  margin: 0 0 16px;
  font-family: Georgia, serif;
  font-size: 1.4rem;
}
.tp-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.tp-about-grid dt {
  font-size: 0.8rem;
  color: var(--tp-muted);
}
.tp-about-grid dd {
  margin: 3px 0 0;
  font-weight: 700;
  color: var(--tp-ink);
}
.tp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tp-stat-box {
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e3e8e4;
  display: grid;
  gap: 4px;
}
.tp-stat-box strong {
  font-size: 1.65rem;
  color: var(--tp-green);
}
.tp-stat-box span {
  font-size: 0.84rem;
  color: var(--tp-muted);
}

/* Modal Composer */
.tp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 25, 20, 0.52);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 16px;
}
.tp-modal-card {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #dce3de;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(12, 24, 18, 0.28);
}
.tp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tp-modal-head h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}
.tp-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #dfe5e1;
  background: #f6f8f6;
  font-size: 1.25rem;
  cursor: pointer;
}
.tp-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tp-type-tab {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #dce2de;
  background: #f7f9f7;
  color: #2b3731;
  font: 600 0.84rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.tp-type-tab.is-active {
  background: var(--tp-green-soft);
  border-color: var(--tp-green);
  color: var(--tp-green);
}
.tp-modal-card form {
  display: grid;
  gap: 12px;
}
.tp-modal-card label {
  display: grid;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #232f29;
}
.tp-modal-card label small {
  font-weight: 400;
  color: #637068;
}
.tp-modal-card input, .tp-modal-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c9d2cc;
  font: inherit;
}
.tp-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tp-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.tp-btn-secondary, .tp-pill-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #cfd7d2;
  background: #ffffff;
  color: #26322c;
  font: 600 0.88rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}

/* 12-Style Drawer & Miro Freeform Canvas */
.board-style-drawer {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #f7f9f7;
  border: 1px solid #dbe2dd;
}
.style-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.style-drawer-head h4 { margin: 0; }
.style-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.style-grid > label {
  position: relative;
  display: grid;
  padding: 4px;
  border: 1px solid #d7ded9;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.style-grid > label:has(:checked) {
  box-shadow: inset 0 0 0 2px var(--tp-green);
  border-color: var(--tp-green);
}
.style-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style-swatch {
  display: grid;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background-color: var(--paper);
  background-image: var(--pattern);
  background-size: 10px 10px;
}
.style-swatch > span {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--card-fill);
  color: var(--ink-look);
  font: 600 16px/1 var(--look-font);
}
.style-name {
  padding: 5px 2px 2px;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
}
.style-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.style-controls select {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #c5d0c9;
}
.style-drawer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.style-save-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tp-green);
}

[data-paper] { --paper:#f7f8f6; --sheet:#f5f6f3; --ink-look:#1e2622; --muted-look:#66726b; --edge:#e4e8e3; --rule:#c5cec8; --accent-look:#173f2d; --stroke:#c8d1cb; --mat:#eef1ed; }
[data-paper=letter] { --paper:#fbf3df; --sheet:#fff9e8; --edge:#d1bf9d; --stroke:#ddcda8; --ink-look:#3d3023; --muted-look:#66553e; --accent-look:#755233; }
[data-paper=archive] { --paper:#e6dcc6; --sheet:#fbf3df; --ink-look:#322d24; --muted-look:#655943; --edge:#c5b798; --stroke:#cfc2a7; --accent-look:#704d33; }
[data-paper=gallery] { --paper:#ffffff; --sheet:#ffffff; --edge:#dbdcdf; --stroke:#dddfe2; --ink-look:#191a1e; --muted-look:#5f6065; --accent-look:#242632; }
[data-paper=linen] { --paper:#e9e4dd; --sheet:#fffdf8; --edge:#cdc5b9; --stroke:#c9c1b7; --ink-look:#37342e; --muted-look:#625b50; --accent-look:#66584b; }
[data-paper=graph] { --paper:#e9f2fa; --sheet:#fcfdff; --stroke:#c4d5e4; --edge:#bfcede; --ink-look:#213345; --muted-look:#496078; --accent-look:#315e83; }
[data-paper=sage] { --paper:#f4f7f4; --sheet:#f5f6f3; --stroke:#c2cfc6; --edge:#e3e8e3; --ink-look:#1b2620; --muted-look:#5c6961; --accent-look:#173f2d; }
[data-paper=rose] { --paper:#f7e9e9; --sheet:#fff9f7; --stroke:#dbc6cb; --edge:#decbd0; --ink-look:#462f38; --muted-look:#745463; --accent-look:#7b425b; }
[data-paper=clay] { --paper:#eac9b7; --sheet:#fff2e8; --stroke:#d6af98; --edge:#c39d89; --ink-look:#422a23; --muted-look:#6d493b; --accent-look:#8a4532; }
[data-paper=ink] { --paper:#f3f0e5; --sheet:#fdfbf1; --stroke:#d3d0c1; --edge:#b9b5a6; --ink-look:#1b201d; --muted-look:#52564c; --accent-look:#272d29; }
[data-paper=night] { --paper:#1d2a40; --sheet:#2b3a51; --stroke:#43516a; --edge:#4a5b73; --ink-look:#f6f1e7; --muted-look:#c8d2dd; --accent-look:#d9c396; }
[data-paper=darkroom] { --paper:#242426; --sheet:#303033; --stroke:#414146; --edge:#555559; --ink-look:#faf9f6; --muted-look:#cbcacf; --accent-look:#e6e4df; }
[data-grid=dots] { --pattern:radial-gradient(circle,var(--stroke) 1px,transparent 1.25px); }
[data-grid=squares] { --pattern:linear-gradient(to right,var(--stroke) 1px,transparent 1px),linear-gradient(to bottom,var(--stroke) 1px,transparent 1px); }
[data-grid=lines] { --pattern:linear-gradient(to bottom,var(--stroke) 1px,transparent 1px); }
[data-grid=plain] { --pattern:none; }
[data-type=serif] { --look-font:Georgia,"Times New Roman",serif; }
[data-type=sans] { --look-font:system-ui,-apple-system,sans-serif; }
[data-type=mono] { --look-font:ui-monospace,Menlo,Consolas,monospace; }
[data-frame] { --card-fill:var(--sheet); --card-edge:var(--edge); --card-top:1px; --card-top-color:var(--edge); --card-radius:16px; }
[data-frame=index] { --card-radius:6px; --card-top:4px; --card-top-color:var(--accent-look); }
[data-frame=card] { --card-radius:8px; }

.canvas-stage {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: 18px;
  border: 1px solid #dce3de;
  overflow: hidden;
  touch-action: none;
  background-color: var(--paper);
  background-image: var(--pattern);
  background-size: var(--grid-scale, 20px) var(--grid-scale, 20px);
  cursor: grab;
}
.canvas-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}
.canvas-world .tp-card {
  position: absolute;
  width: 286px;
  user-select: none;
  cursor: grab;
}
.canvas-tools, .canvas-zoom {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d5ded8;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 25, 20, 0.08);
}
.canvas-tools { left: 14px; top: 50%; transform: translateY(-50%); flex-direction: column; }
.canvas-zoom { right: 14px; bottom: 14px; }
.canvas-icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #25302a;
  cursor: pointer;
}
.canvas-icon-btn[aria-pressed="true"] {
  background: var(--tp-green-soft);
  color: var(--tp-green);
}
.canvas-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.canvas-zoom span {
  min-width: 44px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.canvas-hint-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  color: #49564e;
  pointer-events: none;
}

@media (max-width: 920px) {
  .tp-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .tp-sidebar {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }
  .tp-side-btn {
    width: auto;
    white-space: nowrap;
  }
  .tp-side-divider {
    display: none;
  }
  .tp-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .tp-reactions-row, .tp-bento-grid, .tp-form-row, .style-controls, .tp-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tp-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .tp-meta-row, .tp-source-row {
    justify-content: center;
  }
  .tp-reactions-row {
    margin-inline: 16px;
  }
  .tp-workspace, .tp-topbar {
    padding-inline: 16px;
  }
  .tp-dashed-cta {
    margin-inline: 16px;
  }
}

/* === NEKROLOGI W POLSCE — 1:1 EDITORIAL CATALOG DESIGN === */
body:has(.nek-catalog-page),
body:has(.tp-page) {
  background: #fafbf9;
  color: #18231d;
}
body:has(.nek-catalog-page) .header,
body:has(.tp-page) .header {
  background: #ffffff;
  border-bottom: 1px solid #e7ece8;
}
body:has(.nek-catalog-page) .header .brand,
body:has(.tp-page) .header .brand {
  font-family: Georgia, "Times New Roman", serif;
  color: #18241d;
}
body:has(.nek-catalog-page) .nav [aria-current="page"],
body:has(.tp-page) .nav [aria-current="page"] {
  background: #dbe5dd;
  color: #183d2b !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}
body:has(.nek-catalog-page) .header__cta,
body:has(.tp-page) .header__cta {
  background: #234233 !important;
  border-color: #234233 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
}

.nek-catalog-page {
  max-width: 1120px;
  margin: 0 auto;
  padding-block: 0 64px;
}

/* White Lily Hero Banner */
.nek-hero {
  position: relative;
  margin: 0 -20px 22px;
  padding: 40px 36px 42px;
  border-radius: 0 0 24px 24px;
  background: url("/nekrologi/hero-lilies.jpg") right center / cover no-repeat, #f2f4ef;
  border-bottom: 1px solid #e5eae4;
}
.nek-hero-content {
  max-width: 630px;
}
.nek-hero h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.2vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1c3528 !important;
}
.nek-hero-sub {
  margin: 0 0 24px;
  font-size: 1.04rem;
  line-height: 1.48;
  color: #3e4a43;
  max-width: 48ch;
}

/* Unified Pill Search Bar */
.nek-search-capsule {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe5e0;
  border-radius: 999px;
  padding: 5px 6px 5px 18px;
  box-shadow: 0 8px 26px rgba(18, 35, 26, 0.06);
  gap: 8px;
}
.nek-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nek-search-input-wrap svg,
.nek-search-city-wrap svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: #56635b;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nek-search-input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  font: 500 0.96rem/1.3 system-ui, -apple-system, sans-serif;
  color: #1a241f;
  outline: none;
}
.nek-search-input-wrap input::placeholder {
  color: #6b766f;
}
.nek-search-city-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid #e3e8e4;
}
.nek-search-city-wrap select {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  font: 600 0.92rem/1.2 system-ui, -apple-system, sans-serif;
  color: #212e27;
  cursor: pointer;
  max-width: 155px;
  outline: none;
}
.nek-search-btn {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid #234233;
  background: #234233;
  color: #ffffff;
  font: 600 0.95rem/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.14s ease;
}
.nek-search-btn:hover {
  background: #1a3326;
  transform: translateY(-1px);
}

/* Filter & Sort Pill Row */
.nek-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.nek-filter-left,
.nek-filter-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.nek-filter-pill,
.nek-select-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e1e6e2;
  background: #ffffff;
  color: #26322b;
  font: 600 0.9rem/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(18, 32, 24, 0.02);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.nek-filter-pill:hover,
.nek-select-pill:hover {
  background: #f4f7f4;
}
.nek-filter-pill.is-active {
  background: #d7e3d9;
  border-color: #c6d6c9;
  color: #183a29;
  font-weight: 700;
}
.nek-filter-pill svg,
.nek-select-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nek-select-pill select {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 8px 0;
  outline: none;
}

/* 2-Column Portrait Obituary Cards */
.nek-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.published-card.nek-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid #e6eae5;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(18, 32, 24, 0.03);
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.published-card.nek-card:hover {
  transform: translateY(-2px);
  border-color: #cdd8d0;
  box-shadow: 0 10px 26px rgba(18, 35, 26, 0.07);
}
.nek-card-thumb {
  position: relative;
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  background: #e3e7e4;
  display: block;
}
.nek-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.04);
}
/* Diagonal Black Mourning Ribbon (Kir) in Top-Left Corner */
.nek-kir {
  position: absolute;
  top: -4px;
  left: -24px;
  width: 68px;
  height: 13px;
  background: #111312;
  transform: rotate(-45deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.nek-card-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.published-card.nek-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.8vw, 1.48rem);
  font-weight: 700;
  line-height: 1.2;
}
.published-card.nek-card h2 a {
  color: #16201b;
  text-decoration: none;
}
.published-card.nek-card h2 a:hover {
  color: #1d4d37;
  text-decoration: underline;
}
.nek-card-meta,
.nek-card-funeral {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #3f4b44;
}
.nek-meta-date,
.nek-card-funeral {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nek-meta-date svg,
.nek-card-funeral svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #56635b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nek-meta-sep {
  color: #c4ccc7;
  margin-inline: 2px;
}
.nek-card-meta strong,
.nek-card-funeral strong {
  color: #18231d;
  font-weight: 700;
}
.nek-card .notice-place {
  margin: 0;
  font-weight: 600;
  color: #264a37;
}
.nek-card-arrow {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #f1f4f1;
  color: #24332b;
  display: grid;
  place-items: center;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.nek-card-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.published-card.nek-card:hover .nek-card-arrow {
  background: #234233;
  color: #ffffff;
  transform: translateX(2px);
}

@media (max-width: 820px) {
  .nek-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nek-hero {
    margin-inline: 0;
    border-radius: 18px;
    padding: 28px 20px;
  }
  .nek-search-capsule {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 12px;
  }
  .nek-search-city-wrap {
    border-left: 0;
    padding-left: 0;
    width: 100%;
    border-top: 1px solid #e6ebe7;
    padding-top: 8px;
  }
  .nek-search-btn {
    width: 100%;
  }
}

/* === DIGNIFIED MEMORIAL EMBLEM & INITIALS (NO FAKE FACES) === */
.nek-memorial-emblem {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eaefe9 0%, #dce4dd 100%);
  color: #264233;
}
.nek-emblem-twig {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  opacity: 0.16;
  color: #1c3829;
  pointer-events: none;
}
.nek-emblem-ini {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #213d2e;
}
.tp-avatar-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}
.tp-avatar-placeholder .nek-emblem-ini {
  font-size: 2.2rem;
}

/* === RESPECTFUL EMPTY STATE FOR REAL OBITUARIES === */
.tp-empty-state {
  padding: 38px 28px;
  border-radius: 18px;
  border: 1px solid #e4e9e4;
  background: var(--card-fill, #f7f8f6);
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.tp-empty-state h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  color: var(--ink-look, #1b2520);
}
.tp-empty-state p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted-look, #59655e);
}
.tp-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* === LIVE 12-STYLE APPLICATION ON BOARD SURFACE, CARDS, EMPTY STATE & SHELL === */
[data-paper] {
  --paper: #f3f5f3;
  --sheet: #ffffff;
  --ink-look: #1e2622;
  --muted-look: #5e6a63;
  --edge: #d8e0da;
  --rule: #c2ccc5;
  --accent-look: #173f2d;
  --stroke: #b8c4bc;
  --mat: #e8ede9;
}
[data-paper="sage"] {
  --paper: #e8efe9;
  --sheet: #fbfdfb;
  --stroke: #adc0b1;
  --edge: #c5d4c8;
  --ink-look: #182b1f;
  --muted-look: #485e4f;
  --accent-look: #173f2d;
  --rule: #9bb0a0;
  --mat: #dce7de;
}
[data-paper="rose"] {
  --paper: #f6e7e9;
  --sheet: #fffafa;
  --stroke: #d4b6bc;
  --edge: #dfc6cb;
  --ink-look: #422630;
  --muted-look: #734d5b;
  --accent-look: #7b3b54;
  --rule: #b894a1;
  --mat: #f0dce0;
}
[data-paper="slate"] {
  --paper: #eef0f3;
  --sheet: #ffffff;
  --stroke: #bec4ce;
  --edge: #d2d7df;
  --ink-look: #1f252e;
  --muted-look: #58616e;
  --accent-look: #334357;
  --rule: #aeb6c2;
  --mat: #e3e7ec;
}
[data-paper="letter"] {
  --paper: #fbf2dc;
  --sheet: #fffdf5;
  --edge: #d4c098;
  --stroke: #d6c196;
  --ink-look: #3b2d1f;
  --muted-look: #6b563d;
  --accent-look: #75502e;
  --rule: #b59d76;
  --mat: #f1e3c2;
}
[data-paper="archive"] {
  --paper: #e6dbc3;
  --sheet: #fbf4e4;
  --ink-look: #2f291f;
  --muted-look: #61553f;
  --rule: #ab9977;
  --edge: #c4b594;
  --stroke: #bfb090;
  --accent-look: #6b492e;
  --mat: #dfd1b2;
}
[data-paper="gallery"] {
  --paper: #ffffff;
  --sheet: #f8f9fa;
  --edge: #d6d9de;
  --stroke: #cfd3d9;
  --ink-look: #15171a;
  --muted-look: #5a5d64;
  --accent-look: #1e222d;
  --rule: #a8abb2;
  --mat: #efefef;
}
[data-paper="linen"] {
  --paper: #e8e2d9;
  --sheet: #fffdf9;
  --edge: #ccc3b6;
  --stroke: #bfb5a7;
  --ink-look: #35312b;
  --muted-look: #635b50;
  --accent-look: #5e5042;
  --rule: #b0a698;
  --mat: #e2dbd0;
}
[data-paper="graph"] {
  --paper: #e5eff9;
  --sheet: #fcfdff;
  --stroke: #b3cae0;
  --edge: #bdd0e2;
  --ink-look: #1d3044;
  --muted-look: #48617a;
  --accent-look: #295780;
  --rule: #91aec7;
  --mat: #d7e6f5;
}
[data-paper="clay"] {
  --paper: #ebd0c0;
  --sheet: #fff5ee;
  --stroke: #cfa58e;
  --edge: #c79e88;
  --ink-look: #402720;
  --muted-look: #6e483b;
  --accent-look: #8c432f;
  --rule: #b58069;
  --mat: #e5c3b0;
}
[data-paper="ink"] {
  --paper: #f1eee2;
  --sheet: #fdfcf5;
  --stroke: #c7c3b2;
  --edge: #b8b4a4;
  --ink-look: #181d1a;
  --muted-look: #4f544a;
  --accent-look: #232a25;
  --rule: #787d72;
  --mat: #e4e1d1;
}
[data-paper="night"] {
  --paper: #1b283d;
  --sheet: #273750;
  --stroke: #40526e;
  --edge: #465a78;
  --ink-look: #f5f0e6;
  --muted-look: #c2cede;
  --accent-look: #dfc692;
  --rule: #6e8099;
  --mat: #1f2e46;
}
[data-paper="darkroom"] {
  --paper: #202023;
  --sheet: #2d2d31;
  --stroke: #424248;
  --edge: #525258;
  --ink-look: #f7f6f2;
  --muted-look: #c5c4ca;
  --accent-look: #e6dfd3;
  --rule: #7d7d84;
  --mat: #17171a;
}

[data-grid="dots"] { --pattern: radial-gradient(circle, var(--stroke) 1.15px, transparent 1.35px); --pattern-size: 20px 20px; }
[data-grid="squares"] { --pattern: linear-gradient(to right, var(--stroke) 1px, transparent 1px), linear-gradient(to bottom, var(--stroke) 1px, transparent 1px); --pattern-size: 22px 22px; }
[data-grid="lines"] { --pattern: linear-gradient(to bottom, transparent 25px, var(--stroke) 25px, var(--stroke) 26px); --pattern-size: 100% 26px; }
[data-grid="plain"] { --pattern: none; --pattern-size: 20px 20px; }

[data-type="serif"] { --look-font: Georgia, "Times New Roman", serif; }
[data-type="sans"] { --look-font: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
[data-type="mono"] { --look-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

[data-frame="soft"] { --card-fill: var(--sheet); --card-edge: var(--edge); --card-top: 1px; --card-top-color: var(--edge); --card-radius: 18px; --card-shadow: 0 6px 18px rgba(15, 23, 32, 0.08); --look-inset: 20px; }
[data-frame="card"] { --card-fill: var(--sheet); --card-edge: var(--edge); --card-top: 1px; --card-top-color: var(--edge); --card-radius: 6px; --card-shadow: 0 2px 8px rgba(15, 23, 32, 0.06); --look-inset: 18px; }
[data-frame="free"] { --card-fill: transparent; --card-edge: dashed var(--stroke); --card-top: 1px; --card-top-color: var(--stroke); --card-radius: 0px; --card-shadow: none; --look-inset: 14px; }
[data-frame="index"] { --card-fill: var(--sheet); --card-edge: var(--edge); --card-top: 5px; --card-top-color: var(--accent-look); --card-radius: 4px; --card-shadow: 0 3px 10px rgba(15, 23, 32, 0.07); --look-inset: 18px; }
[data-frame="mat"] { --card-fill: var(--sheet); --card-edge: var(--edge); --card-top: 1px; --card-top-color: var(--edge); --card-radius: 2px; --card-shadow: 0 8px 24px rgba(15, 23, 32, 0.14); --look-inset: 26px; }

#board-surface.board-surface {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background-color: var(--paper) !important;
  background-image: var(--pattern) !important;
  background-size: var(--pattern-size, 20px 20px) !important;
  font-family: var(--look-font);
  color: var(--ink-look);
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

#board-surface .tp-card,
#board-surface .tp-empty-state,
#board-surface .tp-about-panel {
  background: var(--card-fill) !important;
  color: var(--ink-look) !important;
  border: 1px solid var(--card-edge) !important;
  border-top: var(--card-top) solid var(--card-top-color) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
  font-family: var(--look-font) !important;
  transition: all 0.2s ease;
}
#board-surface .tp-card-body {
  padding: var(--look-inset) var(--look-inset) 12px;
}
#board-surface[data-frame="mat"] .tp-photo-box,
#board-surface[data-frame="mat"] .tp-video-box {
  margin: 12px 12px 0;
  width: calc(100% - 24px);
  border: 6px solid var(--mat);
}
#board-surface .tp-card-body p,
#board-surface .tp-empty-state h3,
#board-surface .tp-about-panel h3,
#board-surface .tp-about-grid dd {
  font-family: var(--look-font) !important;
  color: var(--ink-look) !important;
}
#board-surface .tp-empty-state p,
#board-surface .tp-card-author span,
#board-surface .tp-about-grid dt {
  color: var(--muted-look) !important;
}
#board-surface .tp-card-author strong,
#board-surface .tp-like-btn {
  color: var(--ink-look) !important;
}
#board-surface .tp-empty-state .tp-green-pill {
  background: var(--accent-look) !important;
  border-color: var(--accent-look) !important;
  color: var(--sheet) !important;
}
#board-surface .tp-empty-state .tp-pill-btn {
  background: var(--sheet) !important;
  border-color: var(--edge) !important;
  color: var(--ink-look) !important;
}
.tp-shell[data-type] #board-heading {
  font-family: var(--look-font);
}

/* === HEADER ALIGNMENT & HERO TRANSITION FIX === */
body:has(.nek-catalog-page) .header,
body:has(.tp-page) .header {
  width: min(1120px, calc(100% - 40px)) !important;
  height: 76px !important;
  margin: 0 auto !important;
  padding: 0 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  background: transparent !important;
  border-bottom: 1px solid #e4e9e5 !important;
}
body:has(.nek-catalog-page) .header .nav,
body:has(.tp-page) .header .nav {
  display: flex !important;
  align-items: center !important;
  gap: clamp(12px, 1.5vw, 22px) !important;
  font-size: 15px !important;
}
body:has(.nek-catalog-page) .header .nav a,
body:has(.tp-page) .header .nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 36px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
body:has(.nek-catalog-page) .header .nav [aria-current="page"],
body:has(.tp-page) .header .nav [aria-current="page"] {
  background: #dbe5dd !important;
  color: #173f2d !important;
  padding: 0 16px !important;
  height: 36px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
body:has(.nek-catalog-page) .header__cta,
body:has(.tp-page) .header__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 22px !important;
  background: #173f2d !important;
  border: 1px solid #173f2d !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
body:has(.nek-catalog-page) .header__cta:hover,
body:has(.tp-page) .header__cta:hover {
  background: #113022 !important;
}

/* Smooth fade at bottom of .tp-hero so reaction pills sit seamlessly */
.tp-hero {
  border-bottom: 0 !important;
  padding-bottom: 58px !important;
}
.tp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none;
}
.tp-hero-inner {
  position: relative;
  z-index: 1;
}

.nek-modal-sub {
  margin: -6px 0 14px;
  font-size: 0.92rem;
  color: #546159;
}
.nek-create-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #173f2d;
}

/* === CLEAN HERO TOP & ADD OBITUARY BUTTON === */
.nek-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.nek-hero-top h1 {
  margin: 0 !important;
}
.nek-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid #234233;
  background: rgba(255, 255, 255, 0.88);
  color: #1c3528;
  font: 700 0.9rem/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.nek-add-btn:hover {
  background: #234233;
  color: #ffffff;
}
.nek-search-city-wrap select {
  max-width: 195px !important;
}

/* === CRISP 2X RETINA HERO BANNERS, FLUSH ALIGNMENT & ZERO DANGLING SEPARATORS === */
body {
  background: #fafbf9 !important;
  color: #18231d !important;
}
.header {
  width: min(1120px, calc(100% - 40px)) !important;
  height: 76px !important;
  margin: 0 auto !important;
  padding: 0 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  background: transparent !important;
  border-bottom: 1px solid #e4e9e5 !important;
}
.header .brand {
  font-family: Georgia, "Times New Roman", serif !important;
  color: #18241d !important;
}
.header .nav {
  display: flex !important;
  align-items: center !important;
  gap: clamp(12px, 1.5vw, 22px) !important;
  font-size: 15px !important;
}
.header .nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 36px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
.header .nav [aria-current="page"] {
  background: #dbe5dd !important;
  color: #173f2d !important;
  padding: 0 16px !important;
  height: 36px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
.header__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 22px !important;
  background: #173f2d !important;
  border: 1px solid #173f2d !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.header__cta:hover {
  background: #113022 !important;
}
.nek-hero {
  margin: 18px 0 22px !important;
  border-radius: 22px !important;
  border: 1px solid #e2e9e3 !important;
  overflow: hidden;
  background: url("/nekrologi/hero-lilies.jpg?v=2") right center / cover no-repeat, #f2f5ee !important;
}
.nek-hero-content {
  max-width: 668px !important;
}
.nek-hero-top {
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  margin-bottom: 10px !important;
}
.nek-hero h1 {
  font-size: clamp(2.15rem, 3.7vw, 3.05rem) !important;
  white-space: nowrap;
}
.nek-add-btn {
  flex-shrink: 0;
  min-height: 38px !important;
  padding: 0 16px !important;
  font-size: 0.86rem !important;
}
.nek-search-input-wrap input {
  font-size: 0.92rem !important;
}
.nek-search-city-wrap {
  padding-left: 11px !important;
}
.nek-search-city-wrap select {
  max-width: 210px !important;
  padding: 8px 24px 8px 4px !important;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2335443c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
}
.nek-search-btn {
  padding: 0 22px !important;
  background-color: #234233 !important;
  border-color: #234233 !important;
  color: #ffffff !important;
}
.tp-sort-select {
  padding: 0 34px 0 16px !important;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2325302a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}
@media (max-width: 820px) {
  .nek-hero-top {
    flex-wrap: wrap !important;
  }
  .nek-hero h1 {
    white-space: normal !important;
  }
}
.tp-hero {
  background: url("/nekrologi/hero-sunrise.jpg?v=2") right center / cover no-repeat, #eef2ee !important;
}
.published-card.nek-card {
  padding: 16px 18px !important;
  gap: 14px !important;
  border: 1px solid #e6eae5 !important;
  background: #ffffff !important;
}
.nek-card-thumb {
  flex: 0 0 76px !important;
  width: 76px !important;
  height: 76px !important;
}
.nek-card-arrow {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
}
.nek-card-meta {
  font-size: 0.835rem !important;
  gap: 4px 0 !important;
}
.nek-card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nek-card-meta > span + span::before {
  content: "|";
  color: #c4ccc7;
  margin: 0 6px;
  font-weight: 400;
}
.tp-avatar-wrap {
  overflow: visible !important;
}
.tp-avatar-placeholder,
.tp-avatar-wrap img {
  border-radius: 50%;
  overflow: hidden;
}
.tp-avatar-upload {
  right: 2px !important;
  bottom: 2px !important;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
#board-surface .tp-stat-box {
  background: var(--paper) !important;
  border-color: var(--edge) !important;
}
#board-surface .tp-stat-box strong {
  color: var(--ink-look) !important;
}
#board-surface .tp-stat-box span {
  color: var(--muted-look) !important;
}
.notice-pages a,
#more-hits {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #d8e1da;
  background: #ffffff;
  color: #173f2d !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.notice-pages a:hover,
#more-hits:hover {
  background: #eaf0ec;
  border-color: #173f2d;
}
.readership button {
  color: #173f2d !important;
  border-color: #173f2d !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-weight: 600 !important;
}

.tp-burial-bar {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f6f8f6;
  border: 1px dashed #c2d1c6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.tp-burial-bar.is-filled {
  background: #eef5f0;
  border: 1px solid #8eb89a;
}
.tp-burial-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 280px;
}
.tp-burial-pin {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e1ece4;
  color: #1f4f32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tp-burial-pin svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}
.tp-burial-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-burial-text strong {
  font-size: 0.93rem;
  color: #182b20;
  font-weight: 600;
}
.tp-burial-text span {
  font-size: 0.83rem;
  color: #4f6256;
  line-height: 1.4;
}
.tp-burial-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tp-burial-add-btn {
  font-size: 0.82rem !important;
  padding: 7px 13px !important;
  background: #fff !important;
  border: 1px solid #bdd0c2 !important;
  color: #1f4f32 !important;
  font-weight: 600 !important;
}
.tp-burial-add-btn:hover {
  background: #edf4ef !important;
}
.tp-care-cta {
  font-size: 0.82rem !important;
  padding: 7px 14px !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tp-condolence-presets {
  margin-bottom: 12px;
}
.tp-presets-label {
  display: block;
  font-size: 0.8rem;
  color: #4f6256;
  margin-bottom: 6px;
  font-weight: 500;
}
.tp-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tp-preset-chip {
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid #cdd9d0;
  background: #f5f8f5;
  color: #1e3526;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tp-preset-chip:hover {
  background: #e6f0e9;
  border-color: #8eb89a;
}
.tp-quick-condolence {
  margin: 16px auto 18px;
  max-width: 680px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d4dfd7;
  text-align: left;
}
.tp-quick-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1c3123;
  margin-bottom: 10px;
}
.tp-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.tp-quick-chip {
  text-align: left;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid #d0dcd3;
  background: #f8faf8;
  color: #24382b;
  font-size: 0.82rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tp-quick-chip:hover {
  background: #eef4f0;
  border-color: #8eb89a;
}
.tp-quick-chip.is-selected {
  background: #e6f2ea;
  border-color: #1f5c37;
  color: #133922;
  font-weight: 600;
  box-shadow: 0 0 0 1px #1f5c37;
}
.tp-quick-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tp-quick-input {
  flex: 1 1 220px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #c8d6cc;
  font-size: 0.85rem;
  background: #fff;
}
.tp-quick-submit {
  font-size: 0.84rem !important;
  padding: 9px 16px !important;
}
.tp-cemetery-suggestions {
  margin: -4px 0 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f3f7f4;
  border: 1px solid #d5e2d8;
}
.tp-cem-sug-label {
  display: block;
  font-size: 0.77rem;
  color: #465a4d;
  margin-bottom: 7px;
  font-weight: 600;
}
.tp-cem-sug-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tp-cem-sug-pill {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #bdd0c2;
  background: #fff;
  color: #1b432a;
  cursor: pointer;
  font-weight: 500;
}
.tp-cem-sug-pill:hover {
  background: #e3efe7;
  border-color: #79a888;
}
