/*
Theme Name: Pottoka Lagun
Theme URI: http://localhost:8090/
Description: Tema hijo de Twenty Twenty-Five para Pottoka Lagun y el proyecto Pausoka.
Author: Pottoka Lagun
Template: twentytwentyfive
Version: 0.5.9
Text Domain: pottoka-lagun
Requires at least: 6.7
Requires PHP: 7.4
*/

/* Resolve presets where WordPress defines them, including the editor canvas.
 * Pottoka presets take precedence. A Twenty Twenty-Five style variation may
 * replace that palette entirely, so use its semantic presets before defaults.
 * A :root-only alias would miss presets overridden on body or the canvas. */
:root,
body,
.editor-styles-wrapper {
  --pottoka-ink: var(--wp--preset--color--ink, var(--wp--preset--color--contrast, #16130f));
  --pottoka-ink-2: var(--wp--preset--color--ink-2, var(--wp--preset--color--accent-3, var(--wp--preset--color--contrast, #241f18)));
  --pottoka-paper: var(--wp--preset--color--paper, var(--wp--preset--color--base, #e6e2d6));
  --pottoka-paper-2: var(--wp--preset--color--paper-2, var(--wp--preset--color--accent-5, var(--wp--preset--color--base, #f1eee5)));
  --pottoka-heather: var(--wp--preset--color--heather, var(--wp--preset--color--accent-3, var(--wp--preset--color--contrast, #a6446b)));
  --pottoka-heather-soft: var(--wp--preset--color--heather-soft, var(--wp--preset--color--accent-1, var(--wp--preset--color--base, #c8829f)));
  --pottoka-sage: var(--wp--preset--color--sage, var(--wp--preset--color--accent-4, var(--wp--preset--color--contrast, #6e7355)));
  --pottoka-ochre: var(--wp--preset--color--ochre, var(--wp--preset--color--accent-1, var(--wp--preset--color--contrast, #b0863b)));
  --pottoka-line: rgba(22, 19, 15, 0.16);
  --pottoka-line-dark: rgba(230, 226, 214, 0.18);
}

@supports (color: color-mix(in srgb, black, transparent)) {
  :root,
  body,
  .editor-styles-wrapper {
    --pottoka-line: color-mix(in srgb, var(--pottoka-ink) 16%, transparent);
    --pottoka-line-dark: color-mix(in srgb, var(--pottoka-paper) 18%, transparent);
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: var(--pottoka-paper);
  color: var(--pottoka-ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .pottoka-nav {
  top: var(--pottoka-admin-offset, 32px);
}

.pottoka-site,
.pottoka-site * {
  box-sizing: border-box;
}

.pottoka-site {
  position: relative;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.pottoka-site > *,
.pottoka-site .wp-block-columns,
.pottoka-site .wp-block-group {
  margin-block-start: 0;
  margin-block-end: 0;
}

.pottoka-site h1,
.pottoka-site h2,
.pottoka-site h3,
.pottoka-site h4,
.pottoka-display {
  margin-top: 0;
  color: inherit;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.pottoka-site p {
  margin-top: 0;
}

.pottoka-site a {
  color: inherit;
}

.pottoka-wrap {
  width: min(100% - 56px, 1140px);
  margin-inline: auto;
}

.pottoka-section {
  padding: 96px 0;
}

.pottoka-eyebrow,
.pottoka-mono {
  font-family: "Space Mono", ui-monospace, monospace;
}

.pottoka-eyebrow {
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pottoka-label-eu {
  color: var(--pottoka-heather);
}

.pottoka-sprig {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.pottoka-sprig path,
.pottoka-sprig circle {
  fill: none;
  stroke: var(--pottoka-heather);
  stroke-width: 1.4;
}

.pottoka-sprig circle {
  fill: var(--pottoka-heather);
  stroke: none;
}

/* Navigation */
.pottoka-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  isolation: isolate;
  background: transparent;
}

/*
 * Keep the glass effect outside the navigation container itself. Applying
 * backdrop-filter to the container makes core's fixed mobile overlay use the
 * header as its containing block, clipping the menu to the header height.
 */
.pottoka-nav::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-bottom: 1px solid var(--pottoka-line);
  background: rgba(230, 226, 214, 0.76);
  background: color-mix(in srgb, var(--pottoka-paper) 76%, transparent);
  box-shadow: 0 10px 32px rgba(22, 19, 15, 0.055);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--pottoka-ink) 5.5%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  content: "";
  pointer-events: none;
}

/* Keep the template part easy to edit inside the Site Editor. */
.editor-styles-wrapper .pottoka-nav {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
}

.pottoka-nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.pottoka-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.pottoka-brand p {
  margin: 0;
}

.pottoka-brand .wp-block-site-title {
  margin: 0;
  font: inherit;
  line-height: 1.2;
  letter-spacing: inherit;
}

.pottoka-brand a {
  color: inherit;
  text-decoration: none;
}

.pottoka-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.35vw, 30px);
}

.pottoka-nav-links .wp-block-navigation__container {
  gap: clamp(16px, 2.35vw, 30px);
}

.pottoka-nav-links .wp-block-navigation__responsive-container-open {
  display: none;
}

.pottoka-nav-links a {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.75;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.pottoka-nav-links a:hover,
.pottoka-nav-links a:focus-visible {
  opacity: 1;
}

.pottoka-lang {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--pottoka-line);
  border-radius: 100px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  list-style: none;
  margin: 0;
}

p.pottoka-lang {
  margin: 0;
}

.pottoka-lang strong {
  color: var(--pottoka-heather);
}

.pottoka-lang span {
  opacity: 0.5;
}

.pottoka-lang li {
  margin: 0;
}

.pottoka-lang li + li::before {
  margin: 0 6px;
  content: "/";
  opacity: 0.5;
}

.pottoka-lang a {
  display: inline-block;
  font-size: 0;
  letter-spacing: 0;
  text-decoration: none;
}

.pottoka-lang a::after {
  font-size: 11px;
  letter-spacing: 0.1em;
}

.pottoka-lang .lang-item-eu a::after {
  content: "EU";
}

.pottoka-lang .lang-item-es a::after {
  content: "ES";
}

.pottoka-lang .lang-item:not(.current-lang) a::after {
  opacity: 0.5;
}

.pottoka-lang .current-lang a::after {
  color: var(--pottoka-heather);
  font-weight: 700;
}

.pottoka-lang .lang-item:not(.current-lang) a:hover::after,
.pottoka-lang .lang-item:not(.current-lang) a:focus-visible::after {
  opacity: 0.85;
}

.pottoka-burger {
  display: none;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--pottoka-ink);
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.pottoka-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--pottoka-ink);
  color: var(--pottoka-paper);
}

.pottoka-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 78vh;
}

.pottoka-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 48px 84px 0;
}

.pottoka-hero .pottoka-eyebrow {
  color: var(--pottoka-heather-soft);
}

.pottoka-hero h1 {
  margin: 0.18em 0 0.1em;
  color: var(--pottoka-paper);
  font-size: clamp(64px, 11vw, 150px);
}

.pottoka-hero h1 span {
  display: block;
  margin-top: 0.5em;
  color: var(--pottoka-heather-soft);
  font-size: 0.28em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pottoka-lede {
  max-width: 30ch;
  margin-bottom: 0;
  font-size: clamp(19px, 2vw, 23px);
  opacity: 0.92;
}

.pottoka-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.pottoka-button {
  padding: 0;
  border-radius: 2px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

a.pottoka-button,
button.pottoka-button,
input.pottoka-button,
.pottoka-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 2px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.pottoka-button-primary {
  border: 0;
  background: var(--pottoka-heather);
  color: #fff;
}

.wp-block-button.pottoka-button-primary {
  background: transparent;
}

.pottoka-button-primary .wp-block-button__link {
  border: 0;
  background: var(--pottoka-heather);
  color: #fff;
}

.pottoka-button-primary:hover,
.pottoka-button-primary:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}

.pottoka-button-ghost {
  border: 1px solid var(--pottoka-line-dark);
  color: var(--pottoka-paper);
}

.wp-block-button.pottoka-button-ghost {
  border: 0;
}

.pottoka-button-ghost .wp-block-button__link {
  border: 1px solid var(--pottoka-line-dark);
  background: transparent;
  color: var(--pottoka-paper);
}

.pottoka-button-ghost:hover,
.pottoka-button-ghost:focus-visible {
  background: rgba(230, 226, 214, 0.08);
  background: color-mix(in srgb, var(--pottoka-paper) 8%, transparent);
  color: var(--pottoka-paper);
}

.pottoka-hero-photo,
.pottoka-race-photo,
.pottoka-player,
.pottoka-photo-band {
  background-repeat: no-repeat;
  background-size: cover;
}

.pottoka-hero-photo {
  position: relative;
  width: 100%;
  min-height: 680px;
  min-width: 0;
  background-position: 62% 50%;
}

.pottoka-hero-media {
  display: flex;
  min-width: 0;
}

.pottoka-hero-photo.wp-block-cover {
  padding: 0;
}

.pottoka-hero-photo .wp-block-cover__image-background {
  object-position: 62% 50%;
}

.pottoka-hero-photo .wp-block-cover__inner-container:empty {
  position: absolute;
  inset: 22px;
  z-index: 2;
  width: auto;
  border: 1px solid rgba(230, 226, 214, 0.16);
  border-color: color-mix(in srgb, var(--pottoka-paper) 16%, transparent);
}

.pottoka-hero-photo::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 17, 12, 0.06), rgba(20, 17, 12, 0.3));
  content: "";
}

.pottoka-frame {
  position: absolute;
  inset: 22px;
  z-index: 2;
  border: 1px solid rgba(230, 226, 214, 0.16);
  border-color: color-mix(in srgb, var(--pottoka-paper) 16%, transparent);
}

/* Shared section layouts */
.pottoka-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pottoka-section h2 {
  margin-bottom: 0.35em;
  font-size: clamp(34px, 5vw, 58px);
}

.pottoka-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 64px;
}

/* La raza */
.pottoka-race-copy > p {
  max-width: 46ch;
}

.pottoka-facts {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  border-top: 1px solid var(--pottoka-line);
}

.pottoka-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--pottoka-line);
}

.pottoka-fact-number {
  color: var(--pottoka-heather);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
}

.pottoka-fact-text {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.pottoka-fact-text h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.pottoka-fact-text p {
  margin: 3px 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  opacity: 0.7;
}

.pottoka-fact-text small {
  display: block;
  margin-top: 3px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  opacity: 0.7;
}

.pottoka-race-photo {
  width: 100%;
  min-height: 590px;
  background-color: var(--pottoka-ink-2);
  background-position: 50% 50%;
}

.pottoka-race-media {
  display: flex;
  min-width: 0;
}

.pottoka-race-photo.wp-block-cover {
  padding: 0;
}

.pottoka-race-photo .wp-block-cover__image-background {
  object-position: 50% 50%;
}

/* Pausoka */
.pottoka-project {
  background: var(--pottoka-ink-2);
  color: var(--pottoka-paper);
}

.pottoka-project .pottoka-eyebrow {
  color: var(--pottoka-heather-soft);
}

.pottoka-project-intro {
  max-width: 56ch;
  margin-top: 14px;
  opacity: 0.9;
}

.pottoka-axes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--pottoka-line-dark);
  background: var(--pottoka-line-dark);
}

.pottoka-axis {
  padding: 30px 26px;
  background: var(--pottoka-ink-2);
}

.pottoka-axis-number {
  color: var(--pottoka-heather-soft);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.pottoka-axis h3 {
  margin: 14px 0 10px;
  font-size: 21px;
}

.pottoka-axis p {
  margin-bottom: 0;
  font-size: 15.5px;
  opacity: 0.82;
}

.pottoka-partners {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--pottoka-line-dark);
}

.pottoka-partners > .pottoka-eyebrow {
  color: var(--pottoka-paper);
  opacity: 0.7;
}

.pottoka-partner-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 24px;
}

.pottoka-partner h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.pottoka-partner p {
  margin-bottom: 0;
  font-size: 14.5px;
  opacity: 0.78;
}

/* Serie */
.pottoka-series-intro {
  max-width: 52ch;
  margin-bottom: 46px;
}

.pottoka-player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background-color: var(--pottoka-ink);
  background-position: 50% 50%;
  color: var(--pottoka-paper);
  width: 100%;
  min-height: 0 !important;
}

.pottoka-player.wp-block-cover {
  padding: 0;
}

.pottoka-player .wp-block-cover__image-background {
  object-position: 50% 50%;
}

.pottoka-player .wp-block-cover__inner-container {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pottoka-player::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(85% 75% at 50% 32%, rgba(20, 17, 12, 0.18), rgba(20, 17, 12, 0.72));
  content: "";
}

.pottoka-play {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--pottoka-heather);
}

.pottoka-play::after {
  margin-left: 6px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid #fff;
  content: "";
}

.pottoka-player-meta {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 22px;
  z-index: 2;
  max-width: calc(100% - 44px);
}

.pottoka-player-meta span {
  color: var(--pottoka-heather-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.pottoka-player-meta h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.pottoka-chapters {
  margin-top: 14px;
  border-top: 1px solid var(--pottoka-line);
}

.pottoka-chapter {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--pottoka-line);
  text-decoration: none;
  transition: padding-left 0.18s, background 0.18s;
}

.pottoka-chapter:hover,
.pottoka-chapter:focus-visible {
  padding-left: 16px;
  background: var(--pottoka-paper-2);
}

.pottoka-chapter-number {
  color: var(--pottoka-heather);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 700;
}

.pottoka-chapter h3 {
  margin: 0;
  font-size: 20px;
}

.pottoka-chapter p {
  margin: 3px 0 0;
  font-size: 15px;
  opacity: 0.72;
}

.pottoka-chapter-duration {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  opacity: 0.6;
}

.pottoka-chapter > p {
  margin: 0;
}

.pottoka-youtube-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  opacity: 0.6;
}

.pottoka-photo-band {
  min-height: 320px;
  height: 48vh;
  background-color: var(--pottoka-ink);
  background-position: 50% 60%;
}

.pottoka-photo-band.wp-block-cover {
  padding: 0;
}

.pottoka-photo-band .wp-block-cover__image-background {
  object-position: 50% 60%;
}

/* Carne km0 */
.pottoka-km0 {
  background: var(--pottoka-paper-2);
}

.pottoka-km0-intro {
  max-width: 54ch;
}

.pottoka-km0-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 56px;
  margin-top: 48px;
}

.pottoka-producers {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pottoka-producers-query,
.pottoka-producers-list {
  margin: 0;
}

.pottoka-producers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.pottoka-producers-list > li {
  margin: 0;
}

.pottoka-producer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--pottoka-line);
  border-radius: 3px;
  background: var(--pottoka-paper);
}

.pottoka-zone {
  color: var(--pottoka-sage);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pottoka-zone a {
  color: inherit;
  text-decoration: none;
}

.pottoka-producer h3 {
  margin: 6px 0;
  font-size: 19px;
}

.pottoka-producer p {
  margin: 0;
  font-size: 14.5px;
  opacity: 0.78;
}

.pottoka-request-link {
  padding: 10px 14px;
  border: 1px solid var(--pottoka-heather);
  border-radius: 2px;
  color: var(--pottoka-heather);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.pottoka-request-button .wp-block-button__link {
  padding: 10px 14px;
  border: 1px solid var(--pottoka-heather);
  border-radius: 2px;
  background: transparent;
  color: var(--pottoka-heather);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pottoka-request-link:hover,
.pottoka-request-link:focus-visible,
.pottoka-request-button .wp-block-button__link:hover,
.pottoka-request-button .wp-block-button__link:focus-visible {
  background: var(--pottoka-heather);
  color: #fff;
}

.pottoka-producer-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
  padding: 26px 28px;
  border-radius: 3px;
  background: var(--pottoka-ink);
  color: var(--pottoka-paper);
}

.pottoka-producer-cta h3 {
  margin: 6px 0;
  font-size: 20px;
}

.pottoka-producer-cta p {
  margin: 0;
  opacity: 0.72;
}

.pottoka-producer-cta .pottoka-zone {
  color: var(--pottoka-heather-soft);
}

.pottoka-producer-cta .wp-block-button__link {
  border-color: var(--pottoka-heather-soft);
  color: var(--pottoka-paper);
}

.pottoka-form {
  position: sticky;
  top: 84px;
  padding: 34px 30px;
  border-radius: 3px;
  background: var(--pottoka-ink);
  color: var(--pottoka-paper);
}

.pottoka-form .pottoka-eyebrow {
  color: var(--pottoka-heather-soft);
}

.pottoka-form h3 {
  margin: 6px 0;
  font-size: 24px;
}

.pottoka-form-intro {
  margin: 8px 0 22px;
  font-size: 14.5px;
  opacity: 0.8;
}

.pottoka-field {
  margin-bottom: 14px;
}

.pottoka-field label {
  display: block;
  margin-bottom: 7px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.7;
  text-transform: uppercase;
}

.pottoka-field input,
.pottoka-field select,
.pottoka-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--pottoka-line-dark);
  border-radius: 2px;
  background: rgba(230, 226, 214, 0.06);
  background: color-mix(in srgb, var(--pottoka-paper) 6%, transparent);
  color: var(--pottoka-paper);
  font-family: "Newsreader", Georgia, serif;
  font-size: 15px;
}

.pottoka-field select option {
  background: var(--pottoka-ink);
  color: var(--pottoka-paper);
}

.pottoka-field textarea {
  min-height: 74px;
  resize: vertical;
}

.pottoka-field input::placeholder,
.pottoka-field textarea::placeholder {
  color: rgba(230, 226, 214, 0.4);
  color: color-mix(in srgb, var(--pottoka-paper) 40%, transparent);
}

.pottoka-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 6px 0 18px;
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0.75;
}

.pottoka-consent input {
  width: auto;
  margin-top: 3px;
}

.pottoka-form .pottoka-button {
  width: 100%;
  cursor: pointer;
}

.pottoka-form .wpcf7-form > p {
  margin: 0;
}

.pottoka-form .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: var(--pottoka-heather-soft);
  font-size: 13px;
}

.pottoka-form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 10px 12px;
  border-color: var(--pottoka-heather-soft);
  font-size: 14px;
}

.pottoka-form .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* Footer */
.pottoka-footer {
  padding: 64px 0 40px;
  background: var(--pottoka-ink);
  color: var(--pottoka-paper);
}

.pottoka-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.pottoka-footer h3 {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pottoka-footer-column > a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  opacity: 0.78;
  text-decoration: none;
  transition: opacity 0.2s;
}

.pottoka-footer-column > a:hover,
.pottoka-footer-column > a:focus-visible {
  color: var(--pottoka-heather-soft);
  opacity: 1;
}

.pottoka-footer-copy {
  max-width: 34ch;
  margin: 10px 0 0;
  font-size: 15px;
  opacity: 0.78;
}

.pottoka-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.pottoka-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--pottoka-line-dark);
  border-radius: 50%;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  opacity: 0.8;
  text-decoration: none;
}

.pottoka-social.wp-block-social-links .wp-social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--pottoka-line-dark);
  background: transparent;
  color: var(--pottoka-paper);
}

.pottoka-footer-nav .wp-block-navigation__container {
  align-items: flex-start;
  gap: 0;
}

.pottoka-footer-nav .wp-block-navigation-item__content {
  padding: 5px 0;
  font-size: 15px;
  opacity: 0.78;
  text-decoration: none;
}

.pottoka-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--pottoka-line-dark);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.pottoka-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.pottoka-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Keep animated sections visible while editing blocks. */
.editor-styles-wrapper .pottoka-reveal,
.block-editor-block-list__layout .pottoka-reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .pottoka-nav::before {
    background: rgba(230, 226, 214, 0.84);
    background: color-mix(in srgb, var(--pottoka-paper) 84%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
  }

  .pottoka-nav-in {
    flex-wrap: wrap;
  }

  .pottoka-nav-links {
    order: 4;
    width: auto;
    margin-left: auto;
    padding: 0;
  }

  .pottoka-nav-links .wp-block-navigation__responsive-container-open {
    display: flex;
  }

  .pottoka-nav-links .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .pottoka-nav-links .wp-block-navigation__responsive-container.is-menu-open {
    padding: 28px;
    background: var(--pottoka-paper);
    color: var(--pottoka-ink);
  }

  .pottoka-nav-links .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: flex-start;
    gap: 18px;
  }

  .pottoka-lang {
    margin-left: auto;
  }

  .pottoka-burger {
    display: block;
  }

  .pottoka-hero-grid,
  .pottoka-two-columns,
  .pottoka-km0-grid {
    grid-template-columns: 1fr;
  }

  .pottoka-hero-media {
    order: -1;
  }

  .pottoka-hero-photo {
    min-height: 340px;
  }

  .pottoka-hero-text {
    padding: 60px 0 56px;
  }

  .pottoka-two-columns,
  .pottoka-km0-grid {
    gap: 40px;
  }

  .pottoka-axes {
    grid-template-columns: 1fr 1fr;
  }

  .pottoka-partner-row,
  .pottoka-footer-grid {
    grid-template-columns: 1fr;
  }

  .pottoka-form {
    position: static;
  }

  .pottoka-section {
    padding: 64px 0;
  }

  .pottoka-race-photo {
    min-height: 420px;
  }

  .pottoka-photo-band {
    min-height: 220px;
    height: 34vh;
  }
}

@media (max-width: 782px) {
  body.admin-bar .pottoka-nav {
    top: var(--pottoka-admin-offset, 46px);
  }
}

@media (max-width: 520px) {
  .pottoka-wrap {
    width: min(100% - 36px, 1140px);
  }

  .pottoka-axes,
  .pottoka-producer,
  .pottoka-producer-cta {
    grid-template-columns: 1fr;
  }

  .pottoka-chapter {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .pottoka-chapter-duration {
    display: none;
  }

  .pottoka-hero h1 {
    font-size: clamp(58px, 21vw, 88px);
  }

  .pottoka-hero h1 span {
    font-size: 0.32em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pottoka-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
