/* Interior pages use the editorial palette of /atrakcje/. Home layout unchanged. */
body:not(.home) {
  --sw-inner-paper: #f8f4ee;
  --sw-inner-hero: #e9dfd0;
  --sw-inner-ink: #30261e;
  --sw-inner-muted: #655b51;
  --sw-inner-accent: #6d3338;
  --sw-inner-border: #dfd3c2;
  background: var(--sw-inner-paper);
  color: var(--sw-inner-ink);
}
body:not(.home) #site-header {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  background: #2b201d;
  padding: .85rem 0;
  box-shadow: 0 4px 18px rgba(24, 16, 13, .16);
  isolation: isolate;
}
body:not(.home) #site-header.scrolled {
  background: #2b201d;
  padding: .85rem 0;
  box-shadow: 0 4px 18px rgba(24, 16, 13, .18);
}
body:not(.home) :is(.sw-subpage-main,.sw-archive-main,.sw-error-main) {
  padding-top: 0;
  background: var(--sw-inner-paper);
  color: var(--sw-inner-ink);
}
body:not(.home) .sw-archive-main { padding-bottom: clamp(3rem,6vw,6rem); }
body:not(.home) .sw-archive-header {
  background: var(--sw-inner-hero);
  padding: clamp(2.5rem,5vw,4.5rem);
  margin-bottom: clamp(2rem,4vw,3rem);
  border: 1px solid var(--sw-inner-border);
}
body:not(.home) .sw-archive-header h1,
body:not(.home) .sw-archive-header .display-md {
  font-family: Georgia,serif;
  font-size: clamp(2.7rem,5.2vw,4.8rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--sw-inner-ink);
}
body:not(.home) .sw-archive-header p { color: var(--sw-inner-muted);line-height:1.75;max-width:65ch; }
body:not(.home) .sw-post-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.2rem;
}
body:not(.home) .sw-archive-card {
  background:#fffdf9;
  border:1px solid var(--sw-inner-border);
  box-shadow:none;
  border-radius:0;
  min-width:0;
}
body:not(.home) .sw-archive-card .wine-card-image { aspect-ratio:16/10; }
body:not(.home) .sw-archive-card .wine-name {
  font-family:Georgia,serif;
  font-size:clamp(1.45rem,2vw,1.9rem);
  color:var(--sw-inner-ink);
}
body:not(.home) .sw-archive-card .wine-card-body {padding:clamp(1.25rem,2vw,2rem);}
body:not(.home) .sw-archive-card .wine-region {color:var(--sw-inner-accent);}
body:not(.home) .sw-archive-excerpt {color:var(--sw-inner-muted);}
body:not(.home) .sw-page-title {
  color:var(--sw-inner-ink);
  max-width:23ch;
  font-family:Georgia,serif;
  font-size:clamp(2.8rem,5vw,4.8rem);
  line-height:1.03;
  letter-spacing:-.035em;
}
body:not(.home) .sw-content-section {
  padding:clamp(2.5rem,5vw,5.5rem) 0;
  background:var(--sw-inner-paper);
}
body:not(.home) .sw-content-section .container--narrow,
body:not(.home) .sw-post-view .container--narrow {max-width:950px;}
body:not(.home) .sw-entry-content {
  color:var(--sw-inner-ink);
  line-height:1.85;
  overflow-wrap:break-word;
}
body:not(.home) .sw-entry-content :is(h2,h3) {
  font-family:Georgia,serif;
  color:var(--sw-inner-ink);
  letter-spacing:-.025em;
}
body:not(.home) .sw-entry-content :is(.wp-block-columns,.wp-block-gallery) {gap:clamp(.75rem,2.5vw,2rem);}
body:not(.home) .sw-entry-content img {height:auto;max-width:100%;border-radius:0;}
body:not(.home) .sw-entry-content :is(.wp-block-group,.wp-block-cover) {border-radius:0;}
body:not(.home) .sw-entry-content a {text-underline-offset:.2em;}
body:not(.home) .sw-entry-content a:focus-visible {outline:3px solid var(--sw-inner-accent);outline-offset:3px;}
body:not(.home) .sw-post-view {
  padding:clamp(2.5rem,5vw,5rem) 0;
  background:var(--sw-inner-paper);
}
body:not(.home) .sw-post-view h1 {color:var(--sw-inner-ink);}
body:not(.home) .sw-room-single {
  background:var(--sw-inner-paper);
  padding:clamp(2rem,4vw,4.5rem) 0;
}
body:not(.home) .sw-room-single-info h1 {
  font-family:Georgia,serif;
  font-weight:400;
  font-size:clamp(2.5rem,4.5vw,4.4rem);
  line-height:1.07;
  color:var(--sw-inner-ink);
}
body:not(.home) .sw-room-single-extras {
  background:#fffdf9;
  border:1px solid var(--sw-inner-border);
  border-radius:0;
}
body:not(.home) .sw-offer-page {
  --sw-offer-paper:var(--sw-inner-paper);
  --sw-offer-edge:var(--sw-inner-border);
  --sw-offer-ink:var(--sw-inner-ink);
  background:var(--sw-inner-paper);
}
body:not(.home) .sw-offer-cards .sw-offer-card {background:#fffdf9;border-radius:0;}
body:not(.home) .sw-offer-faq {background:#efe8db;}
body:not(.home) .sw-offer-intro h1 {font-family:Georgia,serif;letter-spacing:-.035em;}
body:not(.home) .sw-offer-card,body:not(.home) .sw-archive-card {transition:none;}
body:not(.home) main :is(.sw-attractions-card,.sw-offer-card,.sw-archive-card) :is(a,button):focus-visible {
  outline:3px solid var(--sw-inner-accent);outline-offset:3px;
}
@media(max-width:1000px){
  body:not(.home) .sw-post-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:650px){
  body:not(.home) .sw-post-grid {grid-template-columns:minmax(0,1fr);}
  body:not(.home) .sw-archive-header {padding:2rem 1.25rem;}
    body:not(.home) .sw-page-title {font-size:clamp(2.4rem,10vw,3.5rem);}
}


/* Shared structural components: the same hero, section and cards everywhere. */
body:not(.home) .sw-interior-page,
body:not(.home) main.sw-attractions-page { padding-top:0; }
body:not(.home) .sw-interior-hero { margin:0; }
body:not(.home) .sw-attractions-hero-inner {min-width:0;}
body:not(.home) .sw-attractions-hero-copy {min-width:0;}
body:not(.home) .sw-attractions-hero-image {
  position:relative;
  min-width:0;
  width:100%;
  min-height:clamp(340px,40vw,530px);
  overflow:hidden;
  background:#d4c7b5;
}
body:not(.home) .sw-attractions-cover {
  display:block;
  width:100%;
  height:100%;
  min-height:clamp(340px,40vw,530px);
  max-height:530px;
  object-fit:cover;
  object-position:center;
}
body:not(.home) .sw-attractions-hero h1 {max-width:15ch;}
body:not(.home) .sw-interior-editor-content {
  width:min(100%,960px);
  margin:0 auto;
  color:var(--sw-inner-ink);
  font-size:1rem;
  line-height:1.83;
  overflow-wrap:anywhere;
}
body:not(.home) .sw-interior-editor-content > * {max-width:100%;}
body:not(.home) .sw-interior-editor-content > :first-child {margin-top:0;}
body:not(.home) .sw-interior-editor-content :is(.wp-block-columns,.wp-block-group,.wp-block-cover) {
  min-width:0;
}
body:not(.home) .sw-interior-editor-content :is(.wp-block-columns,.wp-block-gallery) {
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:clamp(1rem,2vw,1.75rem);
}
body:not(.home) .sw-interior-editor-content .wp-block-columns > .wp-block-column {
  flex:1 1 260px;min-width:0;
}
body:not(.home) .sw-interior-editor-content .wp-block-gallery img,
body:not(.home) .sw-interior-editor-content .wp-block-image img {object-fit:cover;max-width:100%;height:auto;}
body:not(.home) .sw-interior-editor-content .wp-block-cover {min-height:320px;}
body:not(.home) .sw-interior-editor-content .wp-block-cover :is(h2,h3,p) {
  color:#fff9ed;
  max-width:100%;
}
body:not(.home) .sw-interior-editor-content :is(figure,table,iframe) {max-width:100%;}
body:not(.home) .sw-interior-editor-content table {display:block;overflow-x:auto;}
body:not(.home) .sw-interior-content-section {min-height:40vh;}
body:not(.home) .sw-interior-article {max-width:100%;}
body:not(.home) .sw-interior-offer-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}
body:not(.home) .sw-interior-offer-grid .sw-attractions-card {min-width:0;}
body:not(.home) .sw-offer-main {background:var(--sw-inner-paper);}
body:not(.home) .sw-offer-faq {background:#e8e9df;}
body:not(.home) .sw-offer-text-heading {margin:0 0 2.2rem;}
body:not(.home) .sw-offer-card {min-height:240px;display:flex;flex-direction:column;}
body:not(.home) .sw-offer-card-number {color:var(--sw-inner-accent);}
body:not(.home) .sw-offer-card h3 {font-size:clamp(1.5rem,2.2vw,2.1rem);}
body:not(.home) .sw-offer-card p {color:var(--sw-inner-muted);}
body:not(.home) .sw-offer-editor-content {margin-top:2.5rem;}
body:not(.home) .sw-offer-facts {background:#392c2a;}
body:not(.home) .sw-offer-final {background:#392c2a;}
body:not(.home) .sw-offer-final h2 {color:#fcf3e8;}
body:not(.home) .sw-room-editorial {padding:0!important;}
body:not(.home) .sw-room-editorial .sw-attractions-section {padding:clamp(3rem,6vw,6.2rem) 0;}
body:not(.home) .sw-room-editorial .sw-attractions-card h3 {color:var(--sw-inner-ink);}
body:not(.home) .sw-room-editorial .sw-attractions-cta a.sw-room-booking-alternative {
  display:inline-block;color:#f4d3a5;text-decoration:underline;text-underline-offset:.3em;
  margin-top:1rem;
}
body:not(.home) .sw-hotel-room-grid .sw-hotel-room-image-link {
  display:block;overflow:hidden;text-decoration:none;
}
body:not(.home) .sw-hotel-room-grid .sw-attractions-card-content {min-height:235px;}
body:not(.home) .sw-hotel-room-grid .sw-attractions-card-bottom {align-items:baseline;}
body:not(.home) .sw-archive-main.sw-attractions-page .sw-post-grid {margin:0;}
body:not(.home) .sw-archive-card.sw-attractions-card {
  padding:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;
}
body:not(.home) .sw-archive-card .wine-card-image {width:100%;max-height:290px;overflow:hidden;}
body:not(.home) .sw-archive-card .wine-card-image img {display:block;width:100%;height:100%;object-fit:cover;}
body:not(.home) .sw-archive-card .wine-card-body {flex:1;min-width:0;}
body:not(.home) .sw-archive-card .sw-archive-title {overflow-wrap:anywhere;}
body:not(.home) .sw-archive-card .sw-archive-excerpt {margin-bottom:1.5rem;}
body:not(.home) .sw-archive-card .sw-archive-link {margin-top:auto;}
body:not(.home) .sw-interior-search {max-width:850px;text-align:center;}
body:not(.home) .sw-interior-search h2 {font:400 clamp(2rem,4vw,3.4rem)/1.1 Georgia,serif;}
body:not(.home) .sw-interior-search p {margin:1rem 0 2rem;}
body:not(.home) .sw-interior-search form {display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:center;}
body:not(.home) .sw-interior-search input[type="search"] {min-height:46px;padding:.7rem 1rem;border:1px solid #aaa198;min-width:250px;}
body:not(.home) .sw-interior-search input[type="submit"] {min-height:46px;padding:.7rem 1rem;background:#392c2a;color:#fff;}
@media(max-width:1000px) {
  body:not(.home) .sw-interior-offer-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px) {
  body:not(.home) .sw-attractions-hero-image,
  body:not(.home) .sw-attractions-cover {min-height:260px;max-height:340px;}
}
@media(max-width:650px) {
  body:not(.home) .sw-interior-offer-grid {grid-template-columns:minmax(0,1fr);}
  body:not(.home) .sw-attractions-hero h1 {font-size:clamp(2.55rem,10.5vw,3.65rem);}
  body:not(.home) .sw-interior-editor-content .wp-block-columns {flex-direction:column;}
  body:not(.home) .sw-archive-card .wine-card-image {max-height:290px;}
  body:not(.home) .sw-hotel-room-grid .sw-attractions-card-content {min-height:0;}
}


/* Final interior layout cleanup: WordPress admin toolbar and historical blocks. */
body:not(.home).admin-bar #site-header {top:32px;}
body:not(.home) #site-header {
  min-height:70px;
  display:flex;
  align-items:center;
}
body:not(.home) #site-header .container {width:100%;}
body:not(.home) #site-header .header-inner {min-height:52px;}
body:not(.home) #site-header .site-logo {flex-shrink:0;align-self:center;}
body:not(.home) #site-header .site-logo .logo-text {line-height:1.2;}
body:not(.home) #site-header .main-nav {min-width:0;}
body:not(.home) .sw-attractions-hero,
body:not(.home) .sw-interior-hero {
  scroll-margin-top:105px;
}
body:not(.home) .sw-attractions-hero-image {align-self:stretch;}
body:not(.home) .sw-interior-story {
  width:min(100%,840px);
  background:#fffdf9;
  border:1px solid var(--sw-inner-border);
  padding:clamp(1.5rem,3vw,3rem);
  margin:0 auto;
  line-height:1.88;
  color:var(--sw-inner-muted);
  font-size:clamp(1rem,1.2vw,1.12rem);
}
body:not(.home) .sw-interior-story p {margin:0;}
body:not(.home) .sw-interior-story p + p {margin-top:1.3rem;}
body:not(.home) .sw-gallery-photos .sw-gallery-photo {
  padding:0;
  margin:0;
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border-radius:0;
  background:#fffdf9;
}
body:not(.home) .sw-gallery-photo-link {
  display:block;
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#ded4c6;
}
body:not(.home) .sw-gallery-photo-image {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .24s ease;
}
body:not(.home) .sw-gallery-photo-link:hover .sw-gallery-photo-image {transform:scale(1.025);}
body:not(.home) .sw-gallery-photo-caption {
  display:flex;
  align-items:baseline;
  gap:1rem;
  padding:1.1rem 1.3rem;
  font-weight:600;
  color:var(--sw-inner-ink);
}
body:not(.home) .sw-contact-page .sw-attractions-card a {
  color:var(--sw-inner-accent);
  text-underline-offset:.25em;
  overflow-wrap:anywhere;
}
body:not(.home) .sw-contact-action {margin-top:auto!important;padding-top:1rem;}
/* Existing editor content can contain huge legacy block font-size settings.
   Cap their visual size without stripping legal or user-authored content. */
body:not(.home) .sw-interior-editor-content :is(h1,h2) {
  font-size:clamp(1.9rem,3.5vw,3rem)!important;
  line-height:1.17!important;
  letter-spacing:-.025em;
  max-width:100%;
}
body:not(.home) .sw-interior-editor-content h3 {
  font-size:clamp(1.3rem,2.2vw,1.8rem)!important;
  line-height:1.3!important;
}
body:not(.home) .sw-interior-editor-content :is(p,li,.has-huge-font-size,.has-x-large-font-size) {
  font-size:clamp(.96rem,1.1vw,1.08rem)!important;
  line-height:1.75;
}
body:not(.home) .sw-interior-editor-content .wp-block-cover {
  max-width:100%;
  min-height:230px;
}
body:not(.home) .sw-interior-editor-content :is(img,video,iframe) {
  max-width:100%;
}
@media(max-width:782px){
  body:not(.home).admin-bar #site-header {top:46px;}
}
@media(max-width:600px){
  body:not(.home).admin-bar #site-header {top:0;}
  body:not(.home) .sw-attractions-hero {padding-top:2.25rem;}
  body:not(.home) .sw-interior-editor-content :is(p,li) {font-size:1rem!important;}
}
@media(prefers-reduced-motion:reduce){
  body:not(.home) .sw-gallery-photo-image {transition:none;}
}


/* Featured-image hero: one square crop across interior pages.
   If a page has no featured image, use text-only layout, never a fake SW tile. */
body:not(.home) .sw-interior-hero .sw-interior-hero-image--square {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
  justify-self: end;
  align-self: center;
  overflow: hidden;
  background: #ded4c6;
}
body:not(.home) .sw-interior-hero .sw-interior-hero-image--square .sw-attractions-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}
body:not(.home) .sw-interior-hero .sw-interior-hero-image--landscape {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
body:not(.home) .sw-interior-hero .sw-interior-hero-image--landscape .sw-attractions-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
}
body:not(.home) .sw-interior-hero--text-only .sw-attractions-hero-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 940px;
}
body:not(.home) .sw-interior-hero--text-only .sw-attractions-hero-copy {
  max-width: 850px;
}
body:not(.home) .sw-interior-hero--text-only h1 {
  max-width: 18ch;
}
@media(max-width:760px) {
  body:not(.home) .sw-interior-hero .sw-interior-hero-image--square {
    justify-self: stretch;
    max-width: 460px;
    margin-inline: auto;
  }
  body:not(.home) .sw-interior-hero .sw-interior-hero-image--landscape {
    max-width: 100%;
  }
}
