/*
Theme Name: PRANIS Kadence Child
Theme URI: https://pranis.quest/
Description: Release 1.7.1 stable theme for the PRANIS sailing project. Requires Kadence and recommends PRANIS Core.
Author: PRANIS
Version: 2.0.1
Template: kadence
Text Domain: pranis
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
*/

/* Consolidated PRANIS overrides, migrated from Additional CSS on 12.11.2026. */
/* PRANIS Quest Log media — responsive original photos and compact video */
body.single-post .pranis-quest-entry,
body.single-post .pranis-quest-entry figure,
body.single-post .pranis-quest-entry img,
body.single-post .pranis-quest-entry video {
  box-sizing: border-box;
}

body.single-post .pranis-quest-video {
  width: min(100%, 622px);
  margin: 1.5rem auto;
}

body.single-post .pranis-quest-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  background: #061a33;
  border-radius: 10px;
}

body.single-post .pranis-quest-video figcaption,
body.single-post .pranis-quest-media figcaption {
  margin-top: .55rem;
  text-align: center;
}

body.single-post .pranis-quest-media {
  width: 100%;
  margin: 2rem 0;
}

body.single-post .pranis-quest-media__wide {
  margin: 0 0 1rem;
}

body.single-post .pranis-quest-media__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

body.single-post .pranis-quest-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 10px;
}

body.single-post .pranis-quest-media__grid figure {
  margin: 0;
  min-width: 0;
}

@media (max-width: 760px) {
  body.single-post .pranis-quest-video {
    width: 100%;
    margin: 1.25rem auto;
  }

  body.single-post .pranis-quest-video video {
    width: 100%;
    max-height: 320px;
  }

  body.single-post .pranis-quest-media__grid {
    grid-template-columns: 1fr;
  }

  body.single-post .pranis-quest-media img {
    max-height: 460px;
  }
}

/* --- WPWriter addition --- */


/* PRANIS Quest Log archive and homepage latest-entry module */
body.page-id-20 .pranis-quest-log-pagehead {
  padding: 24px 0 8px;
  background: var(--pranis-sky, #eefaff);
}

body.page-id-20 .pranis-quest-log-pagehead .pranis-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body.page-id-20 .pranis-quest-log-pagehead p {
  margin: 0;
  color: var(--pranis-muted, #4d6478);
  font-size: .96rem;
}

body.page-id-20 .pranis-section--quest-entries {
  padding-top: 24px;
}

body.page-id-20 .pranis-section--quest-entries .pranis-section__head {
  display: none;
}

body.page-id-20 .pranis-log-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
}

body.page-id-20 .pranis-log-card,
body.page-id-10 .pranis-log-card {
  position: relative;
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.page-id-20 .pranis-log-card:hover,
body.page-id-10 .pranis-log-card:hover,
body.page-id-20 .pranis-log-card:focus-within,
body.page-id-10 .pranis-log-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(42,174,196,.55);
  box-shadow: 0 22px 54px rgba(7,38,88,.14);
}

body.page-id-20 .pranis-log-card h3 a::after,
body.page-id-10 .pranis-log-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

body.page-id-20 .pranis-log-card:focus-within,
body.page-id-10 .pranis-log-card:focus-within {
  outline: 3px solid rgba(42,174,196,.7);
  outline-offset: 4px;
}

body.page-id-20 .pranis-log-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  min-height: 360px;
}

body.page-id-20 .pranis-log-card:first-child > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  aspect-ratio: auto;
  object-fit: cover;
}

body.page-id-20 .pranis-log-card:first-child > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

body.page-id-20 .pranis-log-card:first-child h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.4vw, 3.5rem) !important;
  line-height: 1.05;
}

body.page-id-20 .pranis-log-card:first-child > div::after,
body.page-id-10 .pranis-log-card:first-child > div::after {
  content: "READ THE LATEST ENTRY  →";
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--pranis-navy, #08275b);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

body.page-id-20 .pranis-log-card:not(:first-child) > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body.page-id-20 .pranis-log-card:not(:first-child) > div {
  padding: 22px;
}

body.page-id-20 .pranis-log-card:not(:first-child) p {
  display: none;
}

body.page-id-20 .pranis-log-card:not(:first-child) h3 {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem) !important;
  line-height: 1.2;
}

body.page-id-10 .pranis-home-quest-log {
  padding: 76px 0 26px;
  background: var(--pranis-sky, #eefaff);
}

body.page-id-10 .pranis-home-quest-log__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: end;
  gap: 48px;
}

body.page-id-10 .pranis-home-quest-log__head h2 {
  margin-bottom: 0;
}

body.page-id-10 .pranis-home-quest-log__head > p {
  margin: 0;
  color: var(--pranis-muted, #4d6478);
  font-size: 1.05rem;
  line-height: 1.7;
}

body.page-id-10 .pranis-section--quest-entries {
  padding: 0 0 88px;
  background: var(--pranis-sky, #eefaff);
}

body.page-id-10 .pranis-section--quest-entries .pranis-section__head {
  display: none;
}

body.page-id-10 .pranis-log-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
}

body.page-id-10 .pranis-log-card:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
}

body.page-id-10 .pranis-log-card:first-child > img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  aspect-ratio: auto;
  object-fit: cover;
}

body.page-id-10 .pranis-log-card:first-child > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
}

body.page-id-10 .pranis-log-card:first-child h3 {
  font-size: clamp(1.8rem, 3vw, 3rem) !important;
  line-height: 1.08;
}

@media (max-width: 1100px) {
  body.page-id-20 .pranis-log-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-id-20 .pranis-log-card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  }
}

@media (max-width: 760px) {
  body.page-id-20 .pranis-quest-log-pagehead {
    padding: 14px 0 4px;
  }

  body.page-id-20 .pranis-quest-log-pagehead .pranis-shell {
    display: block;
  }

  body.page-id-20 .pranis-quest-log-pagehead p {
    margin-top: 5px;
    font-size: .86rem;
  }

  body.page-id-20 .pranis-section--quest-entries {
    padding-top: 16px;
  }

  body.page-id-20 .pranis-log-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.page-id-20 .pranis-log-card:first-child,
  body.page-id-10 .pranis-log-card:first-child {
    display: block;
    min-height: 0;
  }

  body.page-id-20 .pranis-log-card:first-child > img,
  body.page-id-10 .pranis-log-card:first-child > img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 280px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  body.page-id-20 .pranis-log-card:first-child > div,
  body.page-id-10 .pranis-log-card:first-child > div {
    padding: 24px;
  }

  body.page-id-20 .pranis-log-card:first-child h3,
  body.page-id-10 .pranis-log-card:first-child h3 {
    font-size: clamp(1.55rem, 8vw, 2.25rem) !important;
  }

  body.page-id-10 .pranis-home-quest-log {
    padding: 58px 0 20px;
  }

  body.page-id-10 .pranis-home-quest-log__head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.page-id-10 .pranis-section--quest-entries {
    padding-bottom: 66px;
  }
}


/* --- WPWriter addition --- */


/* Use the actual log date for the first published Quest Log entry. */
/* --- WPWriter addition --- */


/* German Quest Log archive mirrors the English archive layout. */
body.page-id-843 .pranis-quest-log-pagehead {
  padding: 24px 0 8px;
  background: var(--pranis-sky, #eefaff);
}

body.page-id-843 .pranis-quest-log-pagehead .pranis-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body.page-id-843 .pranis-quest-log-pagehead p {
  margin: 0;
  color: var(--pranis-muted, #4d6478);
  font-size: .96rem;
}

body.page-id-843 .pranis-section--quest-entries {
  padding-top: 24px;
}

body.page-id-843 .pranis-section--quest-entries .pranis-section__head {
  display: none;
}

body.page-id-843 .pranis-log-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
}

body.page-id-843 .pranis-log-card {
  position: relative;
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.page-id-843 .pranis-log-card:hover,
body.page-id-843 .pranis-log-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(42,174,196,.55);
  box-shadow: 0 22px 54px rgba(7,38,88,.14);
}

body.page-id-843 .pranis-log-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

body.page-id-843 .pranis-log-card:focus-within {
  outline: 3px solid rgba(42,174,196,.7);
  outline-offset: 4px;
}

body.page-id-843 .pranis-log-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  min-height: 360px;
}

body.page-id-843 .pranis-log-card:first-child > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  aspect-ratio: auto;
  object-fit: cover;
}

body.page-id-843 .pranis-log-card:first-child > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

body.page-id-843 .pranis-log-card:first-child h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.4vw, 3.5rem) !important;
  line-height: 1.05;
}

body.page-id-843 .pranis-log-card:first-child > div::after {
  content: "NEUESTEN EINTRAG LESEN  →";
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--pranis-navy, #08275b);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

body.page-id-843 .pranis-log-card:not(:first-child) > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body.page-id-843 .pranis-log-card:not(:first-child) > div {
  padding: 22px;
}

body.page-id-843 .pranis-log-card:not(:first-child) p {
  display: none;
}

body.page-id-843 .pranis-log-card:not(:first-child) h3 {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem) !important;
  line-height: 1.2;
}

/* Prominent German homepage Quest Log CTA without publishing a German entry. */
body.page-id-781 .pranis-home-quest-log {
  padding: 76px 0;
  background: var(--pranis-sky, #eefaff);
}

body.page-id-781 .pranis-home-quest-log__cta {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--pranis-line, rgba(8,39,91,.12));
  border-radius: 28px;
  color: inherit;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7,38,88,.10);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.page-id-781 .pranis-home-quest-log__cta:hover,
body.page-id-781 .pranis-home-quest-log__cta:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(42,174,196,.55);
  box-shadow: 0 24px 60px rgba(7,38,88,.16);
  outline: 3px solid rgba(42,174,196,.7);
  outline-offset: 4px;
}

body.page-id-781 .pranis-home-quest-log__cta > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

body.page-id-781 .pranis-home-quest-log__cta h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.06;
}

body.page-id-781 .pranis-home-quest-log__cta p {
  color: var(--pranis-muted, #4d6478);
  font-size: 1.05rem;
  line-height: 1.7;
}

body.page-id-781 .pranis-home-quest-log__cta .pranis-button {
  align-self: flex-start;
  margin-top: 16px;
}

body.page-id-781 .pranis-home-quest-log__cta img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

@media (max-width: 1100px) {
  body.page-id-843 .pranis-log-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-id-843 .pranis-log-card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  }
}

@media (max-width: 760px) {
  body.page-id-843 .pranis-quest-log-pagehead {
    padding: 14px 0 4px;
  }

  body.page-id-843 .pranis-quest-log-pagehead .pranis-shell {
    display: block;
  }

  body.page-id-843 .pranis-quest-log-pagehead p {
    margin-top: 5px;
    font-size: .86rem;
  }

  body.page-id-843 .pranis-section--quest-entries {
    padding-top: 16px;
  }

  body.page-id-843 .pranis-log-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.page-id-843 .pranis-log-card:first-child {
    display: block;
    min-height: 0;
  }

  body.page-id-843 .pranis-log-card:first-child > img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 280px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  body.page-id-843 .pranis-log-card:first-child > div {
    padding: 24px;
  }

  body.page-id-843 .pranis-log-card:first-child h3 {
    font-size: clamp(1.55rem, 8vw, 2.25rem) !important;
  }

  body.page-id-781 .pranis-home-quest-log {
    padding: 58px 0;
  }

  body.page-id-781 .pranis-home-quest-log__cta {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.page-id-781 .pranis-home-quest-log__cta > div {
    padding: 28px 24px;
  }

  body.page-id-781 .pranis-home-quest-log__cta img {
    min-height: 0;
    max-height: 280px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
}


/* --- WPWriter addition --- */


/* Dynamic latest Quest Log entry on the German homepage. */
body.page-id-781 .pranis-home-quest-log {
  padding: 76px 0 26px;
  background: var(--pranis-sky, #eefaff);
}

body.page-id-781 .pranis-home-quest-log__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: end;
  gap: 48px;
}

body.page-id-781 .pranis-home-quest-log__head h2 {
  margin-bottom: 0;
}

body.page-id-781 .pranis-home-quest-log__head > p {
  margin: 0;
  color: var(--pranis-muted, #4d6478);
  font-size: 1.05rem;
  line-height: 1.7;
}

body.page-id-781 .pranis-section--quest-entries {
  padding: 0 0 88px;
  background: var(--pranis-sky, #eefaff);
}

body.page-id-781 .pranis-section--quest-entries .pranis-section__head {
  display: none;
}

body.page-id-781 .pranis-log-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
}

body.page-id-781 .pranis-log-card {
  position: relative;
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.page-id-781 .pranis-log-card:hover,
body.page-id-781 .pranis-log-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(42,174,196,.55);
  box-shadow: 0 22px 54px rgba(7,38,88,.14);
}

body.page-id-781 .pranis-log-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

body.page-id-781 .pranis-log-card:focus-within {
  outline: 3px solid rgba(42,174,196,.7);
  outline-offset: 4px;
}

body.page-id-781 .pranis-log-card:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
}

body.page-id-781 .pranis-log-card:first-child > img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  aspect-ratio: auto;
  object-fit: cover;
}

body.page-id-781 .pranis-log-card:first-child > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
}

body.page-id-781 .pranis-log-card:first-child h3 {
  font-size: clamp(1.8rem, 3vw, 3rem) !important;
  line-height: 1.08;
}

body.page-id-781 .pranis-log-card:first-child > div::after {
  content: "NEUESTEN EINTRAG LESEN  →";
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--pranis-navy, #08275b);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

@media (max-width: 760px) {
  body.page-id-781 .pranis-home-quest-log {
    padding: 58px 0 20px;
  }

  body.page-id-781 .pranis-home-quest-log__head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.page-id-781 .pranis-section--quest-entries {
    padding-bottom: 66px;
  }

  body.page-id-781 .pranis-log-card:first-child {
    display: block;
    min-height: 0;
  }

  body.page-id-781 .pranis-log-card:first-child > img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 280px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  body.page-id-781 .pranis-log-card:first-child > div {
    padding: 24px;
  }

  body.page-id-781 .pranis-log-card:first-child h3 {
    font-size: clamp(1.55rem, 8vw, 2.25rem) !important;
  }
}


/* --- WPWriter addition --- */


/* Second Quest Log entry: compact asymmetric photo-and-text layout. */
body.single-post .pranis-worklog-entry {
  max-width: 980px;
  margin: 0 auto;
}

body.single-post .pranis-worklog-lead {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

body.single-post .pranis-worklog-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin: 3.25rem 0;
}

body.single-post .pranis-worklog-row--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
}

body.single-post .pranis-worklog-row--reverse figure {
  grid-column: 2;
  grid-row: 1;
}

body.single-post .pranis-worklog-row--reverse > div {
  grid-column: 1;
  grid-row: 1;
}

body.single-post .pranis-worklog-row figure,
body.single-post .pranis-worklog-pair figure {
  margin: 0;
}

body.single-post .pranis-worklog-row img,
body.single-post .pranis-worklog-pair img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 265px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(7,38,88,.12);
}

body.single-post .pranis-worklog-row h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  line-height: 1.15;
}

body.single-post .pranis-worklog-row p,
body.single-post .pranis-worklog-pair p {
  margin: 0;
  line-height: 1.72;
}

body.single-post .pranis-worklog-pair {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr) minmax(150px, 260px);
  align-items: center;
  gap: clamp(20px, 3.5vw, 42px);
  margin: 3.25rem 0;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 22px;
  background: var(--pranis-sky, #eefaff);
}

body.single-post .pranis-worklog-pair--offset {
  grid-template-columns: minmax(140px, 230px) minmax(140px, 230px) minmax(0, 1fr);
}

body.single-post .pranis-worklog-pair img {
  max-width: 260px;
  max-height: 220px;
}

@media (max-width: 760px) {
  body.single-post .pranis-worklog-entry {
    width: 100%;
  }

  body.single-post .pranis-worklog-lead {
    margin-bottom: 1.8rem;
  }

  body.single-post .pranis-worklog-row,
  body.single-post .pranis-worklog-row--reverse,
  body.single-post .pranis-worklog-pair,
  body.single-post .pranis-worklog-pair--offset {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 2.2rem 0;
  }

  body.single-post .pranis-worklog-row--reverse figure,
  body.single-post .pranis-worklog-row--reverse > div {
    grid-column: 1;
    grid-row: auto;
  }

  body.single-post .pranis-worklog-row--reverse figure {
    order: 1;
  }

  body.single-post .pranis-worklog-row--reverse > div {
    order: 2;
  }

  body.single-post .pranis-worklog-row img,
  body.single-post .pranis-worklog-pair img {
    width: auto;
    max-width: min(86vw, 360px);
    max-height: 260px;
  }

  body.single-post .pranis-worklog-pair {
    padding: 20px;
  }
}

/* Actual event date for the second Quest Log entry in archive cards. */
/* --- WPWriter addition --- */


/* Actual event date for the German second Quest Log entry. */
/* --- WPWriter addition --- */


/* Third Quest Log entry: compact equipment overview using existing media. */
body.single-post .pranis-equipment-entry {
  max-width: 1000px;
  margin: 0 auto;
}

body.single-post .pranis-equipment-lead {
  max-width: 790px;
  margin: 0 auto 2.8rem;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

body.single-post .pranis-equipment-feature,
body.single-post .pranis-equipment-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
  margin: 3rem 0;
}

body.single-post .pranis-equipment-feature figure,
body.single-post .pranis-equipment-split figure,
body.single-post .pranis-equipment-card,
body.single-post .pranis-equipment-safety figure {
  margin: 0;
}

body.single-post .pranis-equipment-feature img,
body.single-post .pranis-equipment-split img {
  display: block;
  width: auto;
  max-width: min(100%, 290px);
  max-height: 260px;
  margin: 0 auto;
  object-fit: contain;
}

body.single-post .pranis-equipment-entry h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.15;
}

body.single-post .pranis-equipment-section {
  margin: 3.2rem 0;
}

body.single-post .pranis-equipment-section__intro {
  max-width: 800px;
  margin-bottom: 1.7rem;
}

body.single-post .pranis-equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 1.8rem 0;
}

body.single-post .pranis-equipment-card {
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(8,39,91,.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7,38,88,.08);
}

body.single-post .pranis-equipment-card img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 165px;
  margin: 0 auto 14px;
  object-fit: contain;
}

body.single-post .pranis-equipment-card figcaption {
  color: var(--pranis-navy, #08275b);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

body.single-post .pranis-equipment-section--soft,
body.single-post .pranis-equipment-safety {
  margin: 3.2rem 0;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px;
  background: var(--pranis-sky, #eefaff);
}

body.single-post .pranis-equipment-safety {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}

body.single-post .pranis-equipment-safety__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.single-post .pranis-equipment-safety__images img {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

body.single-post .pranis-equipment-closing {
  margin: 3.4rem 0 0;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 24px;
  color: #fff;
  background: var(--pranis-navy, #08275b);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.75;
}

@media (max-width: 900px) {
  body.single-post .pranis-equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.single-post .pranis-equipment-feature,
  body.single-post .pranis-equipment-split,
  body.single-post .pranis-equipment-safety {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.single-post .pranis-equipment-feature figure,
  body.single-post .pranis-equipment-split figure {
    order: -1;
  }

  body.single-post .pranis-equipment-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.single-post .pranis-equipment-card {
    min-height: 0;
  }

  body.single-post .pranis-equipment-card img {
    height: 150px;
  }

  body.single-post .pranis-equipment-safety__images img {
    height: 135px;
  }
}

/* Actual period shown for the third Quest Log entry in archive cards. */
/* --- WPWriter addition --- */

/* --- WPWriter addition --- */


/* Rights-safe placeholders for equipment whose own onboard photos are not yet available. */
body.single-post .pranis-media-placeholder,
body.single-post .pranis-equipment-card--placeholder {
  box-sizing: border-box;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 24px;
  border: 1px solid rgba(8,39,91,.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(42,174,196,.10), rgba(8,39,91,.04)),
    #f8fcfe;
  color: var(--pranis-navy, #08275b);
  text-align: center;
}

body.single-post .pranis-media-placeholder span,
body.single-post .pranis-equipment-card--placeholder span {
  color: #178fa4;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
}

body.single-post .pranis-media-placeholder strong,
body.single-post .pranis-equipment-card--placeholder strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

body.single-post .pranis-media-placeholder small,
body.single-post .pranis-equipment-card--placeholder small {
  color: var(--pranis-muted, #4d6478);
  font-size: .82rem;
  line-height: 1.4;
}

body.single-post .pranis-media-placeholder--compact {
  min-height: 165px;
  padding: 18px;
  background: #fff;
}

body.single-post .pranis-equipment-card--placeholder {
  min-height: 230px;
}

@media (max-width: 680px) {
  body.single-post .pranis-media-placeholder,
  body.single-post .pranis-equipment-card--placeholder {
    min-height: 165px;
  }
}

/* --- WPWriter addition --- */

/* Quest Log language pages: latest entry prominent, older entries compact. */
body.page-id-20 .pranis-section--quest-entries,
body.page-id-843 .pranis-section--quest-entries { display:none !important; }

body.page-id-20 .pranis-manual-questlog,
body.page-id-843 .pranis-manual-questlog {
  padding: 24px 0 76px;
  background: var(--pranis-sky, #eefaff);
}

body.page-id-20 .pranis-latest-card,
body.page-id-843 .pranis-latest-card {
  overflow:hidden;
  border:1px solid rgba(8,39,91,.12);
  border-radius:28px;
  background:#fff;
  box-shadow:0 18px 48px rgba(7,38,88,.10);
}

body.page-id-20 .pranis-latest-card > a,
body.page-id-843 .pranis-latest-card > a {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  min-height:390px;
  color:inherit;
  text-decoration:none;
}

body.page-id-20 .pranis-latest-card img,
body.page-id-843 .pranis-latest-card img {
  width:100%; height:100%; min-height:390px; object-fit:cover;
}

body.page-id-20 .pranis-latest-card > a > div,
body.page-id-843 .pranis-latest-card > a > div {
  display:flex; flex-direction:column; justify-content:center;
  padding:clamp(34px,5vw,64px);
}

body.page-id-20 .pranis-latest-card h2,
body.page-id-843 .pranis-latest-card h2 {
  margin:.35rem 0 1rem;
  font-size:clamp(2rem,3.6vw,3.6rem);
  line-height:1.04;
}

body.page-id-20 .pranis-latest-card p,
body.page-id-843 .pranis-latest-card p {
  color:var(--pranis-muted,#4d6478);
  font-size:1.05rem;
  line-height:1.7;
}

body.page-id-20 .pranis-latest-card strong,
body.page-id-843 .pranis-latest-card strong {
  align-self:flex-start;
  margin-top:18px;
  padding:12px 18px;
  border-radius:999px;
  color:#fff;
  background:var(--pranis-navy,#08275b);
  font-size:.78rem;
  letter-spacing:.08em;
}

body.page-id-20 .pranis-older-grid,
body.page-id-843 .pranis-older-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:24px;
}

body.page-id-20 .pranis-older-grid article,
body.page-id-843 .pranis-older-grid article {
  border:1px solid rgba(8,39,91,.12);
  border-radius:18px;
  background:#fff;
}

body.page-id-20 .pranis-older-grid a,
body.page-id-843 .pranis-older-grid a {
  display:block;
  min-height:145px;
  padding:22px;
  color:inherit;
  text-decoration:none;
}

body.page-id-20 .pranis-older-grid span,
body.page-id-843 .pranis-older-grid span {
  color:#178fa4;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.12em;
}

body.page-id-20 .pranis-older-grid h3,
body.page-id-843 .pranis-older-grid h3 {
  margin:.6rem 0 0;
  font-size:1.2rem;
  line-height:1.25;
}

@media (max-width:760px){
  body.page-id-20 .pranis-latest-card > a,
  body.page-id-843 .pranis-latest-card > a { display:block; min-height:0; }
  body.page-id-20 .pranis-latest-card img,
  body.page-id-843 .pranis-latest-card img { height:auto; min-height:0; max-height:300px; aspect-ratio:16/10; }
  body.page-id-20 .pranis-latest-card > a > div,
  body.page-id-843 .pranis-latest-card > a > div { padding:26px 24px; }
  body.page-id-20 .pranis-older-grid,
  body.page-id-843 .pranis-older-grid { grid-template-columns:1fr; }
}


/* --- WPWriter addition --- */
/* PRANIS homepage hero: keep Community directly right of Quest Log on mobile. */
@media (max-width: 760px) {
  body.page-id-10 .pranis-hero .pranis-actions,
  body.page-id-781 .pranis-hero .pranis-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
  }

  body.page-id-10 .pranis-hero .pranis-actions > a:first-child,
  body.page-id-781 .pranis-hero .pranis-actions > a:first-child {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto !important;
  }

  body.page-id-10 .pranis-hero .pranis-actions > a:nth-child(2),
  body.page-id-10 .pranis-hero .pranis-actions > a:nth-child(3),
  body.page-id-781 .pranis-hero .pranis-actions > a:nth-child(2),
  body.page-id-781 .pranis-hero .pranis-actions > a:nth-child(3) {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* --- WPWriter addition --- */
/* WhatsApp icon in homepage Community button */
body.page-id-10 .pranis-whatsapp-icon,
body.page-id-781 .pranis-whatsapp-icon {
  width: 1.15em;
  height: 1.15em;
  margin-right: .5em;
  flex: 0 0 auto;
  vertical-align: -0.1em;
}

/* --- WPWriter addition --- */
/* PRANIS homepage WhatsApp Community button — compact branded treatment */
body.page-id-10 .pranis-community-button,
body.page-id-781 .pranis-community-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

body.page-id-10 .pranis-community-button .pranis-whatsapp-badge,
body.page-id-781 .pranis-community-button .pranis-whatsapp-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

body.page-id-10 .pranis-community-button .pranis-whatsapp-icon,
body.page-id-781 .pranis-community-button .pranis-whatsapp-icon {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
}

body.page-id-10 .pranis-community-button .pranis-community-label,
body.page-id-781 .pranis-community-button .pranis-community-label {
  font-size: .92rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  body.page-id-10 .pranis-hero .pranis-community-button,
  body.page-id-781 .pranis-hero .pranis-community-button {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Let the brand column shrink beside the menu and tools on narrow screens. */
@media (max-width: 640px) { .pranis-header .pranis-brand { min-width: 0; } }
