/* Schroniska – adopcja psów. Kolory z motywu Pies dla Ciebie. */
.dps {
	--s-accent: var(--wp--preset--color--zielen, #23395B);
	--s-soft: var(--wp--preset--color--szalwia, #FBEFE6);
	--s-bg2: var(--wp--preset--color--tlo, #F6F7FA);
	--s-line: var(--wp--preset--color--linia, #E3E6EE);
	--s-ph: var(--wp--preset--color--placeholder, #F3D9C6);
	--s-amber: var(--wp--preset--color--bursztyn, #E8A33D);
	--s-ink2: var(--wp--preset--color--tekst-2, #444C5E);
	--s-muted: var(--wp--preset--color--szary, #5B6375);
	--s-display: var(--wp--preset--font-family--bricolage, inherit);
	--s-urgent: #B3261E;
	--s-home: #1F7A4D;
	width: 100%;
}
.dps *, .dps *::before, .dps *::after { box-sizing: border-box; }
.dps-btn { display: inline-block; background: var(--s-accent); color: #fff !important; border: 2px solid var(--s-accent); border-radius: 999px; padding: .75rem 1.35rem; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none !important; cursor: pointer; text-align: center; }
.dps-btn:hover { filter: brightness(1.1); }
.dps-btn--ghost { background: transparent; color: var(--s-accent) !important; }
.dps-btn--block { display: block; width: 100%; overflow-wrap: anywhere; }
.dps-link { background: none; border: 0; padding: 0; color: var(--s-accent); font: inherit; cursor: pointer; text-decoration: underline; }
.dps-link--danger { color: #b32d2e; }
.dps-small { font-size: .9rem; color: var(--s-muted); }
.dps-ok { background: var(--s-soft); color: var(--s-accent); font-weight: 600; border-radius: 12px; padding: .8rem 1rem; }
.dps-err { background: #fdecec; color: #b32d2e; border-radius: 12px; padding: .8rem 1rem; }
.dps-note { background: #FFF4E2; border-radius: 12px; padding: .8rem 1rem; }
.dps-note p { margin: 0 0 .6rem; }
.dps-rule { border-left: 4px solid var(--s-amber); background: #FFF8EC; border-radius: 0 12px 12px 0; padding: .8rem 1rem; font-size: .95rem; margin: 1rem 0; }
.dps-intro { background: var(--s-soft); border-radius: 20px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.dps-intro p { margin: .3rem 0; }
.dps-hp { position: absolute !important; left: -9999px !important; }
.dps-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; }
.dps-badge { display: inline-block; background: var(--s-accent); color: #fff; font-weight: 700; font-size: .8rem; padding: .2rem .65rem; border-radius: 99px; }
.dps-badge.is-soft { background: var(--s-soft); color: var(--s-accent); }
.dps-badge.is-urgent { background: var(--s-urgent); }
.dps-badge.is-home { background: var(--s-home); }

/* Formularze */
.dps-form { display: flex; flex-direction: column; gap: 1.1rem; }
.dps fieldset { border: 1px solid var(--s-line); border-radius: 16px; padding: 1rem 1.1rem 1.2rem; margin: 0; }
.dps legend { font-weight: 700; padding: 0 .4rem; }
.dps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem 1.1rem; }
.dps label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
.dps input[type=text], .dps input[type=email], .dps input[type=password], .dps input[type=tel], .dps input[type=url], .dps input[type=number], .dps input[type=date], .dps select, .dps textarea { font: inherit; font-weight: 400; padding: .7rem .85rem; border: 1px solid var(--s-ph); border-radius: 12px; background: #fff; width: 100%; min-height: 46px; }
.dps .dps-check { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; }
.dps .dps-check input { margin-top: .3rem; flex: none; }
.dps-full { width: 100%; margin-top: .6rem; }
.dps-gal-edit { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.dps-gal-edit label { font-weight: 400; font-size: .85rem; }
.dps-gal-edit img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }

/* Panel */
.dps-panel { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.dps-panel__nav { flex: 1 1 220px; display: flex; flex-direction: column; gap: .25rem; background: var(--s-bg2); border-radius: 18px; padding: .75rem; }
.dps-panel__nav a { padding: .65rem .9rem; border-radius: 10px; text-decoration: none; color: #1A2233; font-weight: 600; }
.dps-panel__nav a[aria-current] { background: var(--s-accent); color: #fff; }
.dps-panel__main { flex: 999 1 560px; min-width: 0; }
.dps-panel__main h2 { font-family: var(--s-display); margin-top: 0; }
.dps-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.dps-stats > div { border: 1px solid var(--s-line); border-radius: 16px; padding: .9rem 1rem; }
.dps-stats span { display: block; font-size: .85rem; color: var(--s-muted); }
.dps-stats b { display: block; font-size: 1.15rem; margin-top: .2rem; }
.dps .is-ok { color: var(--s-accent); font-weight: 600; }
.dps .is-warn { color: #8A4B0B; font-weight: 600; }
.dps-todo { list-style: none; padding: 0; }
.dps-todo li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.dps-todo li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--s-ph); border-radius: 50%; }
.dps-todo li.is-done::before { background: var(--s-accent); border-color: var(--s-accent); }
.dps-todo li.is-done { color: var(--s-muted); text-decoration: line-through; }
.dps-table-wrap { overflow-x: auto; border: 1px solid var(--s-line); border-radius: 16px; }
.dps-table { width: 100%; border-collapse: collapse; min-width: 640px; margin: 0; }
.dps-table th, .dps-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--s-line); vertical-align: middle; }
.dps-table th { font-size: .85rem; color: var(--s-muted); font-weight: 600; }
.dps-table select { min-height: 38px; padding: .3rem .5rem; width: auto; }
.dps-thumb { width: 64px; }
.dps-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; display: block; }
.dps-actions { white-space: nowrap; }
.dps-actions > * { margin-right: .8rem; }
.dps-inline { display: inline; }
.dps-confirm { margin-top: 1rem; }

/* Kafle psów */
.dps-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.dps-tiles--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.dps-tile a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--s-line); border-radius: 20px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.dps-tile a:hover { box-shadow: 0 6px 22px rgba(23,33,51,.12); transform: translateY(-2px); }
.dps-tile__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--s-ph); }
.dps-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dps-tile__ph { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--s-display); font-size: 3rem; font-weight: 700; color: var(--s-accent); }
.dps-tile__badges { position: absolute; left: .6rem; top: .6rem; display: flex; gap: .3rem; }
.dps-tile__body { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 1rem 1rem; }
.dps-tile__name { font-family: var(--s-display); font-size: 1.25rem; }
.dps-tile__facts { color: var(--s-ink2); font-size: .95rem; }
.dps-tile__where { color: var(--s-muted); font-size: .9rem; }
.dps-tile__wait { color: var(--s-accent); font-weight: 600; font-size: .9rem; }
.dps-tile.is-adopted .dps-tile__img img { filter: saturate(.85); }

/* Katalog */
.dps-filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; background: var(--s-soft); padding: 1rem; border-radius: 20px; margin-bottom: 1rem; }
.dps-filters > label { flex: 1 1 160px; }
.dps-filters__loc { flex: 1.6 1 240px !important; }
.dps-filters__checks { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.dps-filters__checks .dps-check { font-weight: 600; }
.dps-loc { display: flex; gap: .4rem; }
.dps-loc input { flex: 1 1 auto; min-width: 0; }
.dps-loc__btn { flex: 0 0 48px; height: 48px; border: 1px solid var(--s-line); border-radius: 12px; background: #fff; color: var(--s-accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dps-loc__btn.is-busy { opacity: .5; }
.dps-count { color: var(--s-muted); }
.dps-empty { border: 1px dashed var(--s-ph); border-radius: 20px; padding: 1.5rem; }
.dps-pages { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.dps-pages a { border: 1px solid var(--s-line); border-radius: 10px; padding: .4rem .8rem; text-decoration: none; }
.dps-pages a[aria-current] { background: var(--s-accent); color: #fff; border-color: var(--s-accent); }
.dps-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; }
.dps-org { display: flex; gap: 1rem; border: 1px solid var(--s-line); border-radius: 20px; padding: 1rem; }
.dps-org__logo { flex: 0 0 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--s-ph); display: grid; place-items: center; text-decoration: none; }
.dps-org__logo img { width: 100%; height: 100%; object-fit: cover; }
.dps-org__logo span { font-family: var(--s-display); font-size: 2rem; font-weight: 700; color: var(--s-accent); }
.dps-org h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.dps-org h3 a { color: inherit; text-decoration: none; }
.dps-org p { margin: 0; }
.dps-org__count { font-weight: 600; color: var(--s-accent); margin-top: .3rem !important; }

/* Karta psa */
.dps-crumbs { font-size: .9rem; color: var(--s-muted); margin-bottom: 1rem; }
.dps-crumbs a { color: inherit; }
.dps-home-banner { background: #E6F4EC; color: var(--s-home); border-radius: 16px; padding: 1rem 1.25rem; }
.dps-dog__top { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; }
.dps-dog__gallery { flex: 1.3 1 380px; min-width: 0; }
.dps-dog__main { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--s-ph); }
.dps-dog__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dps-dog__thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.dps-dog__thumbs button { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.dps-dog__thumbs button[aria-current] { border-color: var(--s-accent); }
.dps-dog__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dps-dog__info { flex: 1 1 320px; min-width: 0; }
.dps-dog__info h1 { font-family: var(--s-display); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin: .2rem 0 1rem; }
.dps-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1.25rem; }
.dps-facts div { background: var(--s-bg2); border-radius: 12px; padding: .55rem .8rem; }
.dps-facts dt { font-size: .8rem; color: var(--s-muted); }
.dps-facts dd { margin: 0; font-weight: 600; }
.dps-contact { border: 1.5px solid var(--s-accent); border-radius: 20px; padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem; background: #fff; }
.dps-contact h3 { margin: 0; font-family: var(--s-display); }
.dps-contact p { margin: 0; }
.dps-contact__org { display: flex; gap: .75rem; align-items: center; border-top: 1px solid var(--s-line); padding-top: .8rem; margin-top: .2rem; }
.dps-contact__org img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.dps-contact__org a { color: inherit; }
.dps-dog__body { max-width: 760px; margin-top: 2.5rem; }
.dps-dog__body section, .dps-more { margin-bottom: 2.25rem; }
.dps-dog__body h2, .dps-more h2 { font-family: var(--s-display); margin: 0 0 .8rem; }
.dps-ideal { background: var(--s-soft); border-radius: 20px; padding: 1.1rem 1.25rem; }
.dps-chips { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.dps-chips li { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--s-line); border-radius: 12px; padding: .5rem .75rem; }
.dps-chip__ico { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--s-bg2); color: var(--s-muted); }
.dps-chips li.is-tak .dps-chip__ico { background: #E6F4EC; color: var(--s-home); }
.dps-chips li.is-nie .dps-chip__ico { background: #FDECEC; color: #b32d2e; }
.dps-chips li.is-nw { color: var(--s-muted); }
.dps-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 16px; }

/* Profil schroniska */
.dps-cover { height: clamp(140px, 22vw, 280px); border-radius: 24px; background: var(--s-ph); overflow: hidden; }
.dps-cover img { width: 100%; height: 100%; object-fit: cover; }
.dps-head { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-end; margin-top: -3rem; padding: 0 1.25rem; }
.dps-logo { width: 128px; height: 128px; border-radius: 24px; background: #fff; border: 4px solid #fff; box-shadow: 0 2px 12px rgba(23,33,28,.15); overflow: hidden; display: grid; place-items: center; flex: none; }
.dps-logo img { width: 100%; height: 100%; object-fit: cover; }
.dps-logo span { font-family: var(--s-display); font-size: 3rem; font-weight: 700; color: var(--s-accent); }
.dps-head__text { flex: 1 1 300px; padding-bottom: .3rem; }
.dps-head h1 { font-family: var(--s-display); font-size: clamp(2rem, 4vw, 2.75rem); margin: 0; line-height: 1.05; }
.dps-head__meta { margin: .2rem 0 0; color: var(--s-ink2); }
.dps-head__cta { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: .3rem; }
.dps-tabs { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--s-line, #E3E6EE); margin-top: 1.5rem; }
.admin-bar .dps-tabs { top: 32px; }
@media (max-width: 782px) { .admin-bar .dps-tabs { top: 0; } }
.dps-tabs__in { max-width: var(--wp--style--global--wide-size, 1280px); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); display: flex; gap: .25rem; overflow-x: auto; white-space: nowrap; }
.dps-tabs a { padding: 1rem .9rem; font-weight: 600; color: #444C5E; text-decoration: none; border-bottom: 3px solid transparent; }
.dps-tabs a[aria-current] { color: #23395B; border-bottom-color: #23395B; }
.dps-body { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; padding: 2rem 0 3rem; }
.dps-body__main { flex: 999 1 560px; min-width: 0; }
.dps-body__side { flex: 1 1 300px; position: sticky; top: 80px; }
.dps-body section { scroll-margin-top: 90px; margin-bottom: 2.5rem; }
.dps-body h2 { font-family: var(--s-display); margin: 0 0 1rem; }
.dps-links { display: flex; gap: 1rem; }
@media (max-width: 600px) {
	.dps-facts { grid-template-columns: 1fr 1fr; }
	.dps-head { padding: 0 .5rem; }
	.dps-body__side { position: static; }
}
.dps-contact .dps-btn { padding: .7rem 1rem; font-size: .95rem; }
