:root {
    --kpa-ink: #202027;
    --kpa-muted: #61656b;
    --kpa-pink: #bd1967;
    --kpa-green: #378741;
    --kpa-border: #e9e8eb;
    --kpa-width: 1060px;
    font-family: Tahoma, Arial, sans-serif;
}
.kpa-body { margin: 0; color: var(--kpa-ink); background: #fff; }
.kpa-body *, .kpa-body *::before, .kpa-body *::after { box-sizing: border-box; }
.kpa-body [hidden] { display: none !important; }
.kpa-body :is(button, input, select, textarea) { font: inherit; color: inherit; }
.kpa-body button { cursor: pointer; }
.kpa-body button:disabled { opacity: .38; cursor: default; }
.kpa-body a { color: inherit; text-decoration: none; }
.kpa-body :focus-visible { outline: 2px solid var(--kpa-pink); outline-offset: 3px; }
.kpa-body .container { width: min(var(--kpa-width), calc(100% - 32px)); margin-inline: auto; }
.kpa-icon { flex: 0 0 auto; width: 21px; height: 21px; vertical-align: middle; }
.kpa-btn, .kpa-body .kpa-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 9px 14px;
    border: 0;
    border-radius: 5px;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.5;
}
.kpa-body .kpa-green { background: var(--kpa-green); color: #fff; }
.kpa-body .kpa-slate { background: #526f7e; color: #fff; }
.kpa-body .kpa-light { background: #f3f2f4; color: var(--kpa-ink); }
.kpa-icon-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
}
.kpa-icon-button:hover { background: #f7f5f6; }
.kpa-error { background: #fce9ed; color: #8e193c; padding: 12px 16px; margin: 10px 14px; border-radius: 6px; line-height: 1.75; }
.kpa-notice { max-width: 560px; margin: 12vh auto 0; padding: 20px; text-align: center; }
.kpa-notice > svg { color: var(--kpa-pink); width: 46px; height: 46px; }
.kpa-notice h1 { font-size: 1.25rem; }
.kpa-notice p { color: var(--kpa-muted); line-height: 1.8; }

.kpa-body { scrollbar-width: thin; }
.kpa-gallery { width: min(100%, var(--kpa-width)); margin: auto; padding: 0 10px 86px; }
.kpa-searchbar { position: sticky; top: 0; z-index: 4; padding: 10px 0 9px; background: #fff; }
.kpa-searchbar form { display: flex; align-items: center; background: #f1f1f2; min-height: 44px; border-radius: 4px; }
.kpa-searchbar input { flex: 1; width: 0; border: 0; background: transparent; padding: 0 1px 0 12px; min-height: 44px; font-size: .84rem; }
.kpa-searchbar button { width: 43px; min-height: 43px; border: 0; background: transparent; color: #6c7073; }
.kpa-searchbar input::placeholder { color: #77797b; }
.kpa-birthday-banner {
    position: relative;
    display: grid;
    align-content: end;
    justify-items: center;
    min-height: 217px;
    padding: 8px 10px 22px;
    background: radial-gradient(ellipse at 80% 0, #f4d7cd 0, transparent 54%), #fff0e1;
    text-align: center;
    overflow: hidden;
}
.kpa-birthday-banner h2 { z-index: 1; margin: 0; font-size: clamp(1.13rem,4.7vw,1.65rem); color: #69466d; }
.kpa-birthday-banner p { z-index: 1; color: #796459; margin: 7px 0 0; font-size: .86rem; }
.kpa-banner-art { position: relative; width: min(64%,270px); height: 140px; margin-bottom: 6px; }
.kpa-banner-art .kpa-composition { position: absolute; width: 67%; top: -29%; right: 20%; transform: rotate(-14deg); }
.kpa-banner-art .kpa-composition + .kpa-composition { right: auto; left: 0; top: -18%; transform: rotate(12deg); }
.kpa-banner-art .kpa-preview-card { font-size: .8rem; }
.kpa-upcoming { padding: 22px 0 6px; }
.kpa-upcoming h2 { font-size: .96rem; margin: 0 7px 12px; }
.kpa-timeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(136px, 47%, 174px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-block: 4px 8px;
}
.kpa-timeline a {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: center;
    text-align: center;
    grid-template-rows: 62px 35px 42px;
    min-height: 139px;
    scroll-snap-align: start;
}
.kpa-occasion-symbol { font-size: 2.55rem; color: #a8125b; display: grid; place-items: center; line-height: 1; }
.kpa-timeline strong { padding: 0 8px; font-size: .74rem; line-height: 1.6; }
.kpa-occasion-date { position: relative; width: 100%; border-top: 1px solid #d6d5d8; padding-top: 12px; font-size: .76rem; color: var(--kpa-muted); }
.kpa-occasion-date::before { content: ''; position: absolute; left: 50%; top: 0; width: 13px; height: 13px; transform: translate(-50%, -50%); border: 1px solid #adacaf; border-radius: 50%; background: #fafafa; }
.kpa-rail { margin: 15px 0 23px; }
.kpa-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 6px 13px; }
.kpa-section-head :is(h1,h2) { font-size: .99rem; margin: 0; }
.kpa-section-head a { display: inline-flex; align-items: center; gap: 2px; color: var(--kpa-pink); font-size: .78rem; white-space: nowrap; }
.kpa-section-head a .kpa-icon { width: 15px; height: 15px; }
.kpa-rail-items {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(142px, 46%, 210px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    gap: 9px;
    padding: 2px 3px 7px;
}
.kpa-timeline::-webkit-scrollbar, .kpa-rail-items::-webkit-scrollbar { display: none; }
.kpa-results, .kpa-category-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(145px,46%),1fr)); gap: 13px; padding: 3px; }
.kpa-tile { display: grid; align-content: start; scroll-snap-align: start; text-align: center; border-radius: 4px; }
.kpa-tile:hover { background: #faf7f9; }
.kpa-tile > span { font-size: .75rem; line-height: 1.6; margin: 2px 0 8px; }
.kpa-category-grid > a {
    display: grid;
    place-items: center;
    text-align: center;
    align-content: center;
    gap: 12px;
    min-height: 112px;
    border: 1px solid var(--kpa-border);
    border-radius: 8px;
    background: #fff8fb;
    font-size: .83rem;
}
.kpa-category-grid .kpa-icon { color: var(--kpa-pink); width: 30px; height: 30px; }
.kpa-empty, .kpa-gallery-footer { text-align: center; color: var(--kpa-muted); font-size: .84rem; padding: 24px 8px; }
.kpa-gallery-footer a { text-decoration: underline; text-underline-offset: 4px; }

.kpa-composition {
    --tile-envelope: #ded6c7;
    position: relative;
    aspect-ratio: 1 / 1.04;
    isolation: isolate;
    container-type: inline-size;
}
.kpa-composition[data-envelope="lilac"] { --tile-envelope: #aaa1c9; }
.kpa-composition[data-envelope="scarlet"] { --tile-envelope: #ca0042; }
.kpa-composition[data-envelope="rose"] { --tile-envelope: #ce818d; }
.kpa-composition[data-envelope="olive"] { --tile-envelope: #819353; }
.kpa-composition[data-envelope="navy"] { --tile-envelope: #253654; }
.kpa-preview-envelope {
    position: absolute;
    top: 4%;
    left: 6%;
    width: 68%;
    height: 84%;
    filter: drop-shadow(0 3px 2px #28112324);
}
.kpa-preview-envelope::before, .kpa-preview-lining, .kpa-preview-envelope::after {
    content: '';
    position: absolute;
    inset: 0;
}
.kpa-preview-envelope::before { background: var(--tile-envelope) url('../img/postcards/paper-grain.svg'); clip-path: polygon(46% 2%,51% 0,55% 2%,100% 44%,100% 100%,0 100%,0 44%); }
.kpa-preview-lining {
    inset: 8% 8% 18%;
    clip-path: polygon(48% 2%,52% 0,100% 49%,100% 53%,52% 99%,48% 100%,0 53%,0 49%);
    background: #f1eae7;
}
.kpa-composition[data-lining="floral"] .kpa-preview-lining { background: #efebea url('../img/postcards/floral-lining.svg') center / cover; }
.kpa-composition[data-lining="dots"] .kpa-preview-lining { background: radial-gradient(#fff 18%,transparent 22%) 0 0 / 9px 9px, #e3c8cf; }
.kpa-composition[data-lining="gingham"] .kpa-preview-lining {
    background: repeating-linear-gradient(0deg,#ca23634c 0 4px,transparent 4px 8px),
                repeating-linear-gradient(90deg,#ca23634c 0 4px,transparent 4px 8px), #fff4f8;
}
.kpa-preview-envelope::after {
    top: 43.8%;
    clip-path: polygon(0 0,49% 66%,100% 0,100% 100%,0 100%);
    background: linear-gradient(144deg,#fff2 0,transparent 55%,#36142638 100%), url('../img/postcards/paper-grain.svg'), var(--tile-envelope);
}
.kpa-preview-card {
    position: absolute;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7%;
    right: 5%;
    top: 15%;
    width: 57%;
    aspect-ratio: 7 / 10;
    background: var(--tile-paper) url('../img/postcards/paper-grain.svg');
    color: var(--tile-accent);
    padding: 5%;
    text-align: center;
    box-shadow: 0 1px 4px #37272c2e;
    overflow: hidden;
    font-size: clamp(.56rem, 5cqw, 1rem);
}
.kpa-preview-card[data-art="midnight"] { border: 4px double #d7bd84; }
.kpa-preview-card[data-art="arch"]::before { content: ''; position: absolute; inset: 8%; border: 1px solid currentColor; opacity: .44; border-radius: 45% 45% 0 0; }
.kpa-preview-card[data-art="floral"], .kpa-preview-card[data-art="botanical"] { background-image: url('../img/postcards/floral-lining.svg'); background-size: cover; }
.kpa-preview-card[data-art="confetti"] { background-image: url('../img/postcards/gold-confetti.svg'); background-size: cover; }
.kpa-preview-card strong { font-size: 1em; line-height: 1.65; }
.kpa-preview-ornament { font-size: clamp(17px, 21cqw, 77px); line-height: 1; opacity: .85; }
.kpa-preview-wordmark { font-size: .65em; }
.kpa-preview-card img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.kpa-art-caption { position: absolute; top: 9%; right: 7%; left: 14%; text-align: right; color: #332423; font-size: 2.3cqw; line-height: 1.8; }
.kpa-art-caption span { display: block; }
.kpa-art-caption span + span { color: #9e3d4b; }
.kpa-art-bouquet-title { position: absolute; top: 8%; inset-inline: 5%; font-size: .91em; color: #345e43; }

.kpa-nav {
    position: fixed;
    z-index: 5;
    bottom: 0;
    inset-inline: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    width: min(100%, var(--kpa-width));
    margin-inline: auto;
    background: #fff;
    border-top: 1px solid var(--kpa-border);
    padding: 2px 0 max(3px,env(safe-area-inset-bottom));
}
.kpa-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-height: 56px; color: #646468; font-size: .69rem; }
.kpa-nav a[aria-current] { color: var(--kpa-pink); font-weight: 700; }
.kpa-nav a[aria-current] svg { stroke-width: 2.45; }

.kpa-detail { max-width: 552px; margin: 0 auto; padding-bottom: 36px; }
.kpa-titlebar { display: flex; justify-content: space-between; gap: 4px; align-items: center; min-height: 55px; padding: 2px 5px; }
.kpa-titlebar h1 { font-size: .92rem; line-height: 1.55; margin: 0; flex: 1; }
.kpa-favorite { color: #9da0a3 !important; }
.kpa-favorite svg { fill: currentColor; }
.kpa-favorite[aria-pressed="true"] { color: var(--kpa-pink) !important; }
.kpa-detail-art { width: min(94%, 464px); margin: 12px auto 27px; }
.kpa-detail-art .kpa-preview-envelope { left: 3%; top: 2%; height: 85%; }
.kpa-detail-art .kpa-preview-card { width: 60%; right: 4%; }
.kpa-detail-actions { display: flex; gap: 10px; justify-content: center; padding-inline: 10px; }
.kpa-detail-actions .kpa-btn { width: min(45%,190px); }
.kpa-social { text-align: center; margin: 48px auto 0; }
.kpa-social h2 { font-size: .85rem; margin: 0 0 13px; }
.kpa-social > div { display: flex; justify-content: center; gap: 6px; padding-inline: 8px; }
.kpa-social > div > * {
    display: inline-grid;
    place-items: center;
    width: clamp(33px,10vw,42px);
    height: clamp(33px,10vw,42px);
    border: 0;
    border-radius: 50%;
    color: #fff;
    font: 700 1.18rem Arial, sans-serif;
}
.kpa-social-share { background: #bb1a67; }
.kpa-social-wa { background: #248d47; }
.kpa-social-tg { background: #228ac2; }
.kpa-social-fb { background: #405d8b; }
.kpa-social-x { background: #33343b; }
.kpa-social-copy { background: #bf7116; }
.kpa-social p { min-height: 18px; font-size: .75rem; color: var(--kpa-muted); }
.kpa-social input { max-width: calc(100% - 25px); border: 1px solid #aaa; }
@media (min-width: 650px) {
    .kpa-gallery { padding-inline: 18px; }
    .kpa-birthday-banner { min-height: 256px; justify-items: start; text-align: right; align-content: center; padding-inline: 8%; }
    .kpa-banner-art { width: 37%; height: 100%; position: absolute; left: 5%; bottom: 0; }
    .kpa-banner-art .kpa-composition { top: 4%; }
    .kpa-banner-art .kpa-composition + .kpa-composition { top: 14%; }
    .kpa-nav { border: 1px solid var(--kpa-border); border-bottom: 0; border-radius: 12px 12px 0 0; }
}

.kpa-upcoming .kpa-section-head { margin-top: 0; }
.kpa-upcoming .kpa-section-head h2 { margin: 0; }
.kpa-calendar { max-width: 680px; margin: 0 auto; }
.kpa-calendar-intro { margin: 10px 6px 18px; color: var(--kpa-muted); font-size: .8rem; line-height: 1.75; }
.kpa-calendar-intro a { color: var(--kpa-pink); text-decoration: underline; text-underline-offset: 3px; }
.kpa-calendar-month { margin: 0 5px 20px; }
.kpa-calendar-month h2 { margin: 0 2px 7px; font-size: .88rem; color: #642848; }
.kpa-calendar-month ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--kpa-border); border-radius: 8px; }
.kpa-calendar-month li + li { border-top: 1px solid var(--kpa-border); }
.kpa-calendar-month li a { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 46px; padding: 6px 9px; font-size: .79rem; }
.kpa-calendar-month li a:hover { background: #fff5fa; }
.kpa-calendar-month li span { font-size: 1.06rem; text-align: center; }
.kpa-calendar-month li time { color: var(--kpa-muted); font-size: .74rem; white-space: nowrap; }

.kpa-seo-home { padding: 8px 5px 14px; }
.kpa-seo-home h1 { margin: 0 0 6px; color: #742950; font-size: clamp(1.25rem, 4vw, 1.8rem); }
.kpa-seo-home p, .kpa-seo-intro { color: var(--kpa-muted); margin: 0; font-size: .86rem; line-height: 1.85; }
.kpa-seo-intro { margin: 10px 8px; }
.kpa-detail .kpa-seo-intro { text-align: center; margin: 14px 18px 0; }
.kpa-body .kk-seo-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 6px; font-size: .75rem; color: var(--kpa-muted); }
.kpa-body .kk-seo-breadcrumb a { color: var(--kpa-pink); }
