/* Campanya 26N · L'escola pública no s'amordassa. Complementa edc.css (mateixos tokens). */

body[data-page="n26"] [hidden] { display: none !important; }
body[data-page="n26"].has-n26-preview { padding-bottom: 58px; }
body[data-page="n26"].has-n26-preview .toast.show { transform: translate(-50%, -44px); }

#manifest, #formulari, #galeria, #mur { scroll-margin-top: 84px; }

.n26-preview-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center;
  padding: 10px var(--gutter); background: var(--alerta); color: var(--nit); font-weight: 800; font-size: .88rem; text-align: center;
  box-shadow: 0 -8px 24px rgba(3, 32, 26, .22);
}
.n26-preview-bar a { color: inherit; text-decoration: underline; }

.n26-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.n26-stats b { font-variant-numeric: tabular-nums; }

.n26-tabs { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.n26-tab-group { display: flex; flex-wrap: wrap; gap: 8px; }
.n26-tab-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.n26-btn-outline { --bg: transparent; --fg: var(--nit); color: var(--nit); border-color: rgba(3, 32, 26, .28); }
.n26-btn-outline:hover { background: rgba(3, 32, 26, .08); border-color: var(--nit); color: var(--nit); box-shadow: none; }

.n26-paper {
  position: relative; overflow: hidden;
  background: var(--blanc); color: var(--tinta); border-radius: var(--radi); padding: clamp(26px, 5vw, 60px);
  border: 1px solid var(--linia); max-width: 860px; margin: 0 auto; box-shadow: var(--ombra);
}
.n26-paper::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--verd), var(--llima), var(--verd));
}
.n26-paper h2 { margin: 4px 0 6px; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.02; }
.n26-paper .n26-sub { margin: 0 0 26px; color: var(--gris); font-weight: 700; }
.n26-paper p, .n26-paper li { font-family: var(--serif); font-size: clamp(1.06rem, 1.55vw, 1.22rem); line-height: 1.66; }
.n26-paper p { margin: 0 0 1em; }
.n26-paper .n26-dir {
  font-family: var(--text); font-style: italic; color: var(--tinta); background: var(--boira);
  border-left: 4px solid var(--verd); border-radius: 0 10px 10px 0; padding: 10px 16px; font-size: .96rem; margin: 1.2em 0;
}
.n26-paper .n26-sign { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--linia); font-style: italic; color: var(--gris); }
.n26-paper ul, .n26-paper ol { padding-left: 1.35em; margin: 0 0 1.2em; }
.n26-paper li { margin-bottom: .45em; }
.n26-paper li:last-child { margin-bottom: 0; }
.n26-paper .n26-shout {
  font-family: var(--display); font-weight: 900; font-stretch: 75%; font-variation-settings: "wdth" 75;
  text-transform: uppercase; font-size: clamp(1.25rem, 3vw, 1.85rem); line-height: 1.14; color: var(--nit); margin: 1.4em 0 1em;
}
.n26-name-field { max-width: 860px; margin: 0 auto 18px; }

.n26-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.n26-steps li {
  display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: start;
  background: var(--paper); border: 1px solid var(--linia); border-radius: var(--radi-s); padding: 16px 18px;
  transition: border-color .2s;
}
.n26-steps li:hover { border-color: rgba(18, 128, 74, .45); }
.n26-steps .t { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--verd-text); font-variant-numeric: tabular-nums; }
.n26-steps b { display: block; margin-bottom: 4px; font-family: var(--text); }

.n26-share-bar {
  max-width: 860px; margin: 22px auto 0; padding: 18px 22px; background: var(--blanc);
  border: 1px solid var(--linia); border-radius: var(--radi-s);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
}
.n26-share-copy strong { display: block; font-size: 1rem; color: var(--nit); }
.n26-share-copy small { display: block; color: var(--gris); font-size: .88rem; margin-top: 2px; }
.n26-share-bar .share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.n26-share-bar .share-buttons a, .n26-share-bar .share-buttons button { padding: 10px 14px; flex: 0 0 auto; }

.n26-form .choice-grid { grid-template-columns: repeat(2, 1fr); }
.n26-mode-tabs { margin-bottom: 18px; }
.n26-mode-note {
  margin: 0 0 18px; padding: 11px 16px; border-left: 4px solid var(--verd);
  background: var(--boira); border-radius: 0 12px 12px 0; font-size: .94rem; line-height: 1.5;
}
.n26-gal-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.n26-gal-head h2 { margin: 0; }
.n26-form .choice label b { margin-bottom: 0; }
.n26-form .choice label b:has(+ small) { margin-bottom: 4px; }
.n26-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.n26-form legend { font-weight: 800; padding: 0; margin-bottom: 10px; }
.n26-form legend small { font-weight: 600; color: var(--gris); }
.n26-form .req { color: var(--alerta); font-weight: 900; }

.n26-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.n26-check-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--linia); background: var(--paper); cursor: pointer; font-weight: 700;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.n26-check-card input { width: 20px; height: 20px; accent-color: var(--verd); flex: none; margin-top: 2px; }
.n26-check-card:hover { border-color: var(--verd); }
.n26-check-card:has(input:checked), .n26-check-card.is-checked {
  border-color: var(--verd); background: var(--menta); box-shadow: inset 0 0 0 1px var(--verd);
}

.n26-live-preview { margin-top: 14px; }

.n26-photo-drop {
  border: 2px dashed rgba(3, 32, 26, .22); border-radius: 14px; padding: 18px; background: var(--boira);
  transition: border-color .2s, background .2s;
}
.n26-photo-drop.is-drag { border-color: var(--verd); background: var(--menta); }
.n26-photo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.n26-photo-trigger { cursor: pointer; }
.n26-photo-drop-hint { font-size: .88rem; color: var(--gris); }
.n26-photo-preview-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--linia);
}
.n26-photo-preview-row img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--linia); background: var(--nit); }
.n26-photo-preview-row video { width: 148px; max-height: 110px; border-radius: 10px; border: 1px solid var(--linia); background: #000; }
.n26-upload-bar { height: 8px; border-radius: 99px; background: var(--menta); overflow: hidden; margin-top: 12px; }
.n26-upload-bar i { display: block; width: 0%; height: 100%; background: var(--verd); transition: width .15s linear; }
.n26-photo-meta { flex: 1 1 180px; min-width: 0; }
.n26-photo-meta b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n26-photo-meta small { display: block; color: var(--gris); font-size: .84rem; margin-top: 2px; }
.n26-photo-warn {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fde8e4; color: #9c2a12;
  font-size: .88rem; font-weight: 700;
}
.n26-photo-consent { margin-top: 14px; }
.n26-count { font-size: .8rem; color: var(--gris); text-align: right; }

.n26-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.n26-card {
  background: var(--blanc); border-radius: var(--radi-s); overflow: hidden; border: 1px solid var(--linia);
  display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.n26-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -24px rgba(3, 32, 26, .45); }
.n26-card button.n26-ph {
  position: relative; border: 0; padding: 0; background: var(--nit); cursor: zoom-in; aspect-ratio: 4 / 3;
  display: block; width: 100%; overflow: hidden;
}
.n26-card .n26-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.n26-card button.n26-ph:hover img { transform: scale(1.03); }
.n26-zoom-chip {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px;
  background: rgba(3, 32, 26, .78); color: var(--llima); font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.n26-play-badge {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 99px;
  background: var(--llima); color: var(--nit); font-size: .74rem; font-weight: 900; letter-spacing: .04em;
}
.n26-video-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, var(--bosc), var(--nit)); color: var(--llima);
  font-family: var(--display); font-size: 2.2rem; font-weight: 900;
}
.n26-card .n26-cap { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.n26-card .n26-cap b { display: block; line-height: 1.3; }
.n26-card .n26-cap small { color: var(--gris); display: block; margin-top: 3px; }
.n26-card .n26-cap p { margin: 8px 0 0; font-family: var(--serif); font-size: .98rem; line-height: 1.48; }

.n26-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.n26-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.n26-pill {
  display: inline-flex; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; background: var(--menta); color: var(--verd-text); border-radius: 99px;
  padding: 4px 10px; border: 0;
}
.n26-pill-btn { cursor: pointer; background: var(--paper); border: 1px solid var(--linia); color: var(--nit); transition: background .2s, color .2s, border-color .2s; }
.n26-pill-btn:hover { background: var(--nit); color: var(--llima); border-color: var(--nit); }

.n26-lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(3, 32, 26, .94);
  display: flex; align-items: center; justify-content: center; padding: 24px; flex-direction: column; gap: 14px;
}
.n26-lb-stage { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 1280px; }
.n26-lightbox img, .n26-lightbox video { max-width: min(86vw, 1100px); max-height: 74vh; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.n26-lightbox video { background: #000; }
.n26-lightbox p { color: #fff; text-align: center; max-width: 720px; margin: 0; line-height: 1.5; }
.n26-lb-counter { font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--llima); }
.n26-lb-close { position: absolute; top: 16px; right: 16px; }
.n26-lb-nav {
  flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(3, 32, 26, .7); color: #fff; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.n26-lb-nav:hover { background: var(--llima); color: var(--nit); border-color: var(--llima); }

@media (max-width: 680px) {
  .n26-tabs { flex-direction: column; align-items: stretch; }
  .n26-tab-actions { justify-content: flex-start; }
  .n26-form .choice-grid, .n26-check-grid { grid-template-columns: 1fr; }
  .n26-steps li { grid-template-columns: 1fr; gap: 4px; }
  .n26-share-bar .share-buttons { width: 100%; }
  .n26-lightbox img, .n26-lightbox video { max-width: 94vw; max-height: 66vh; }
  .n26-lb-nav { width: 38px; height: 38px; }
}

/* Impressió del manifest o de la guia: només el que toca. */
@media print {
  body[data-n26-print] #site-header,
  body[data-n26-print] #site-footer,
  body[data-n26-print] .n26-preview-bar,
  body[data-n26-print] main > *:not(#manifest),
  body[data-n26-print] .n26-noprint,
  body[data-n26-print] #manifest > .wrap > .eyebrow,
  body[data-n26-print] #manifest > .wrap > h2 { display: none !important; }
  body[data-n26-print="manifest"] #n26-guia { display: none !important; }
  body[data-n26-print="guia"] #n26-manifest { display: none !important; }
  body[data-n26-print] #manifest,
  body[data-n26-print] #n26-text { padding: 0 !important; background: #fff !important; }
  body[data-n26-print] .n26-paper { box-shadow: none; border: 0; padding: 0; background: #fff; max-width: none; }
  body[data-n26-print] .n26-paper::before { display: none; }
  body[data-n26-print] .n26-paper p, body[data-n26-print] .n26-paper li { font-size: 13.5pt; }
  body[data-n26-print] .n26-steps li { break-inside: avoid; border-color: #999; background: #fff; }
}