/*
Theme Name: GeoOccitania
Theme URI: https://openstreetmap-oc.org/
Author: GeoOccitania
Description: Tèma dau Portau GeoOccitania, concebut per metre la mapa occitana en premier.
Version: 0.16.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: geooccitania
*/

:root {
  --geo-ink: #152d26;
  --geo-paper: #f3f0e7;
  --geo-cream: #e6e0d2;
  --geo-red: #d84c3f;
  --geo-ochre: #dca742;
  --geo-green: #7f9b78;
  --geo-blue: #7b9eb4;
  --geo-white: #fffdf7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--geo-paper);
  color: var(--geo-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { height: auto; max-width: 100%; }
.geo-learning-card {
  color: inherit;
  display: block;
  text-decoration: none;
}
.geo-learning-card strong {
  color: var(--geo-red);
  display: inline-block;
  margin-top: 10px;
}
.geo-learning-card:hover,
.geo-learning-card:focus {
  outline: 3px solid var(--geo-ochre);
  outline-offset: 3px;
}
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}
.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  background: white;
  height: auto;
  left: 12px;
  padding: 12px;
  top: 12px;
  width: auto;
  z-index: 10000;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: auto;
  max-width: 1500px;
  padding: 6px 4vw;
}
.site-branding { display: block; position: relative; text-decoration: none; }
.site-navigation { flex: 1; min-width: 0; }
.geooccitania-header-logo {
  display: block;
  height: 92px;
  object-fit: contain;
  width: auto;
}
.custom-logo {
  display: block;
  max-height: 78px;
  max-width: 310px;
  width: auto;
}
.wordmark { font-size: 25px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.wordmark span { color: var(--geo-red); }
.portal-label {
  color: var(--geo-red);
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
  bottom: 7px;
  position: absolute;
  right: 8px;
  text-transform: uppercase;
}
.menu-toggle { display: none; }
.primary-menu { display: flex; flex-wrap: wrap; gap: 25px; justify-content: flex-start; list-style: none; margin: 0; padding: 0; }
.primary-menu li { position: relative; }
.primary-menu a { font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--geo-red); }
.primary-menu .sub-menu {
  background: var(--geo-white);
  border: 1px solid rgba(21, 45, 38, .14);
  box-shadow: 0 12px 30px rgba(21, 45, 38, .14);
  display: none;
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 250px;
  padding: 9px 0;
  position: absolute;
  top: 100%;
  z-index: 3000;
}
.primary-menu .sub-menu .sub-menu { left: 100%; top: -9px; }
.primary-menu .sub-menu a { display: block; font-size: 13px; padding: 8px 14px; white-space: nowrap; }
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li.submenu-open > .sub-menu { display: block; }
.submenu-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 11px;
  margin-left: 3px;
  padding: 5px;
}
.submenu-toggle::before { content: "▾"; }
.sub-menu .submenu-toggle::before { content: "▸"; }
.submenu-toggle[aria-expanded="true"]::before { content: "▴"; }

.geo-hero { margin: auto; max-width: 1600px; padding: 0 3vw 68px; position: relative; }
.geo-map-shell {
  background: #d8d4c7;
  border-radius: 12px;
  height: min(78vh, 820px);
  min-height: 650px;
  overflow: hidden;
  position: relative;
}
#geooccitania-map { height: 100%; width: 100%; }
.geo-map-search {
  display: flex;
  flex-direction: row-reverse;
  position: absolute;
  right: 12px;
  top: 172px;
  z-index: 600;
}
.geo-map-search-toggle {
  background: rgba(255,253,247,.97);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(21,45,38,.2);
  color: var(--geo-ink);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 22px;
  height: 36px;
  line-height: 1;
  padding: 0;
  width: 36px;
}
.geo-map-search-fields {
  display: grid;
  grid-template-columns: minmax(180px, 320px) auto;
  margin-right: 7px;
  width: min(420px, calc(100vw - 150px));
}
.geo-map-search.is-collapsed .geo-map-search-fields { display: none; }
.geo-map-search:not(.is-collapsed) .geo-map-search-toggle { font-size: 0; }
.geo-map-search:not(.is-collapsed) .geo-map-search-toggle::before { content: "×"; font-size: 24px; }
.geo-map-search input,
.geo-map-search-fields > button {
  border: 0;
  box-shadow: 0 2px 8px rgba(21, 45, 38, .2);
  min-height: 38px;
}
.geo-map-search input {
  background: rgba(255, 253, 247, .97);
  border-radius: 4px 0 0 4px;
  color: var(--geo-ink);
  min-width: 0;
  padding: 0 13px;
}
.geo-map-search-fields > button {
  background: var(--geo-ink);
  border-radius: 0 4px 4px 0;
  color: white;
  cursor: pointer;
  font-weight: 750;
  padding: 0 13px;
}
.geo-map-search p {
  background: rgba(255, 253, 247, .97);
  border-radius: 0 0 4px 4px;
  display: none;
  font-size: 11px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 10px;
}
.geo-map-search.has-status p { display: block; }
.geo-map-search-suggestions {
  background: var(--geo-paper);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 10px 24px rgba(21,45,38,.18);
  display: none;
  grid-column: 1 / -1;
  list-style: none;
  margin: -4px 0 0;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
}
.geo-map-search-suggestions.is-open { display: block; }
.geo-map-search-suggestions li { margin: 0; }
.geo-map-search-suggestions button {
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: var(--geo-ink);
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}
.geo-map-search-suggestions button:hover,
.geo-map-search-suggestions button:focus,
.geo-map-search-suggestions button.is-active {
  background: rgba(21,45,38,.09);
  outline: none;
}
.geo-map-search-suggestions small {
  color: rgba(21,45,38,.62);
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}
.geo-hero-copy {
  background: rgba(243, 240, 231, .95);
  box-shadow: 0 18px 50px rgba(21, 45, 38, .18);
  left: 6vw;
  max-width: 520px;
  padding: 36px 40px 40px;
  position: absolute;
  top: 48px;
  z-index: 500;
}
.eyebrow {
  color: var(--geo-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  margin: 0 0 22px;
  text-transform: uppercase;
}
.geo-hero h1 {
  font-size: clamp(46px, 5.2vw, 76px);
  letter-spacing: -.07em;
  line-height: .9;
  margin: 0 0 30px;
}
.geo-hero h1 em { color: var(--geo-red); font-family: Georgia, serif; font-weight: 400; }
.geo-intro { font-size: 19px; margin: 0; }
.geo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.geo-button {
  border: 1px solid rgba(21, 45, 38, .35);
  border-radius: 3px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  padding: 13px 18px;
  text-decoration: none;
}
.geo-button-primary { background: var(--geo-red); border-color: var(--geo-red); color: white; }
.geo-map-tools {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 600;
}
.geo-map-button {
  background: rgba(255, 253, 247, .95);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(21, 45, 38, .2);
  color: var(--geo-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 750;
  height: 36px;
  padding: 0;
  width: 36px;
}
.geo-map-button span { display: none; }
.geo-map-button:hover, .geo-map-button:focus { background: white; color: var(--geo-red); }
.geo-theme-panel {
  bottom: 24px;
  left: 24px;
  max-width: 390px;
  position: absolute;
  z-index: 600;
}
.geo-theme-toggle {
  background: rgba(255, 253, 247, .95);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(21, 45, 38, .2);
  color: var(--geo-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  min-height: 36px;
  padding: 7px 10px;
}
.geo-theme-toggle:hover,
.geo-theme-toggle:focus,
.geo-theme-panel.is-open .geo-theme-toggle { background: white; color: var(--geo-red); }
.geo-theme-content {
  background: rgba(255, 253, 247, .97);
  border-radius: 5px;
  bottom: 46px;
  box-shadow: 0 8px 30px rgba(21, 45, 38, .22);
  display: none;
  left: 0;
  padding: 14px 16px 12px;
  position: absolute;
  width: min(390px, calc(100vw - 48px));
}
.geo-theme-panel.is-open .geo-theme-content { display: block; }
.geo-theme-content > strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 18px;
  margin-bottom: 9px;
}
.geo-theme-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.geo-theme-buttons button {
  background: transparent;
  border: 1px solid rgba(21, 45, 38, .25);
  border-radius: 3px;
  color: var(--geo-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  padding: 6px 8px;
}
.geo-theme-buttons button:hover,
.geo-theme-buttons button:focus,
.geo-theme-buttons button.is-active {
  background: var(--geo-ink);
  border-color: var(--geo-ink);
  color: white;
}
.geo-theme-buttons .geo-theme-clear { color: #a93229; }
.geo-theme-content p {
  color: rgba(21, 45, 38, .72);
  font-size: 12px;
  line-height: 1.35;
  margin: 9px 0 0;
}
.geo-theme-panel.is-loading p { color: #a93229; }
.geo-feature-marker-shell {
  background: transparent;
  border: 0;
}
.geo-feature-marker {
  align-items: center;
  background: rgba(255, 253, 247, .94);
  border: 2px solid var(--geo-marker-color);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(21, 45, 38, .28);
  color: var(--geo-marker-color);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}
.geo-feature-marker:hover {
  background: var(--geo-marker-color);
  color: white;
  transform: scale(1.08);
}
.geo-feature-marker.is-missing {
  background: rgba(255, 253, 247, .7);
  border-style: dashed;
  box-shadow: none;
  opacity: .72;
}
.geo-popup-place { color: rgba(21, 45, 38, .72); }
.geo-popup-missing {
  color: #a93229;
  font-size: 11px;
}
.geo-popup-link {
  color: #a93229 !important;
  display: inline-block;
  font-weight: 700;
  margin-top: 5px;
  text-decoration: none;
}
.geo-help {
  background: rgba(255, 253, 247, .97);
  border-radius: 5px;
  box-shadow: 0 8px 30px rgba(21, 45, 38, .25);
  display: none;
  max-width: 310px;
  padding: 38px 20px 18px;
  position: absolute;
  right: 12px;
  top: 62px;
  z-index: 600;
}
.geo-help-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--geo-ink);
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 7px;
  top: 6px;
  width: 32px;
}
.geo-help-close:hover,
.geo-help-close:focus { background: rgba(21, 45, 38, .09); }
.geo-help.is-open { display: block; }
.geo-help p { margin: 0 0 8px; }
.geo-help p:last-child { margin-bottom: 0; }
.geo-map-shell.is-fullscreen {
  border-radius: 0;
  height: 100dvh;
  inset: 0;
  position: fixed;
  width: 100vw;
  z-index: 9999;
}
.geo-map-shell.is-fullscreen .geo-hero-copy { display: none; }

.site-main, .entry-content, .site-footer-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}
.site-main { min-height: 50vh; padding: 55px 5vw 85px; }
.home-content { padding-top: 0; }
.geo-section { padding: 105px max(5vw, calc((100vw - 1320px) / 2)); }
.geo-section h2 { font-size: clamp(40px, 5vw, 70px); letter-spacing: -.06em; line-height: .98; margin: 0 0 28px; }
.geo-lead { font-size: 18px; max-width: 680px; }
.geo-purpose { display: grid; gap: 7vw; grid-template-columns: .85fr 1.15fr; }
.geo-three { display: grid; grid-template-columns: repeat(3, 1fr); }
.geo-three article,
.geo-three .geo-learning-card { border-left: 1px solid rgba(21,45,38,.2); padding: 12px 24px; }
.geo-three span, .geo-timeline time, .geo-four span { color: var(--geo-red); font-size: 12px; font-weight: 800; }
.geo-three h3 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; margin: 45px 0 15px; }
.geo-history, .geo-bdtopoc { background: var(--geo-ink); color: white; }
.geo-history .eyebrow, .geo-bdtopoc .eyebrow { color: #f4b057; }
.geo-timeline { border-top: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: repeat(3,1fr); margin-top: 55px; }
.geo-timeline article { border-bottom: 1px solid rgba(255,255,255,.2); min-height: 275px; padding: 28px; }
.geo-timeline article:not(:nth-child(3n+1)) { border-left: 1px solid rgba(255,255,255,.2); }
.geo-timeline h3 { font-family: Georgia, serif; font-size: 26px; font-weight: 400; margin: 45px 0 14px; }
.geo-timeline p { color: rgba(255,255,255,.68); font-size: 14px; }
.geo-visions { background: var(--geo-cream); }
.geo-four { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 45px; }
.geo-four a { display: flex; flex-direction: column; min-height: 350px; padding: 28px; text-decoration: none; }
.geo-four .dark { background: var(--geo-ink); color: white; }
.geo-four .ochre { background: var(--geo-ochre); }
.geo-four .green { background: var(--geo-green); }
.geo-four .blue { background: var(--geo-blue); }
.geo-four h3 { font-family: Georgia,serif; font-size: 29px; font-weight: 400; margin: auto 0 12px; }
.geo-install { background: var(--geo-red); color: white; display: grid; gap: 8vw; grid-template-columns: .9fr 1.1fr; }
.geo-install .eyebrow { color: #ffe0a7; }
.geo-install .geo-button { background: var(--geo-paper); color: var(--geo-ink); margin-top: 20px; }
.geo-phone-guides { display: grid; gap: 15px; grid-template-columns: 1fr 1fr; }
.geo-phone-guides article { background: var(--geo-paper); color: var(--geo-ink); min-height: 330px; padding: 30px; }
.geo-phone-guides small { color: var(--geo-red); font-weight: 800; text-transform: uppercase; }
.geo-phone-guides h3 { font-family: Georgia,serif; font-size: 27px; font-weight: 400; margin: 65px 0 25px; }
.geo-bdtopoc { display: grid; gap: 9vw; grid-template-columns: 1.05fr .95fr; }
.geo-big-stat { display: block; font-size: clamp(60px,7vw,105px); letter-spacing: -.07em; line-height: 1; margin-top: 45px; }
.geo-stats-date { color: rgba(255,255,255,.52); font-size: 12px; margin-top: 18px; }
.geo-stat-panel { background: var(--geo-paper); color: var(--geo-ink); padding: 40px; }
.geo-stat-panel strong { display: block; font-size: clamp(48px,6vw,78px); letter-spacing: -.06em; line-height: 1; }
.geo-stat-panel a { color: #a93229; display: block; margin-top: 28px; }
.geo-learn .geo-three { margin: 45px 0 60px; }
.geo-learn .geo-learning-paths { grid-template-columns: repeat(3, 1fr); }
.geo-resources { display: grid; grid-template-columns: repeat(4,1fr); }
.geo-resources > a,
.geo-resource-card { background: var(--geo-white); border: 1px solid var(--geo-cream); min-height: 150px; padding: 24px; text-decoration: none; }
.geo-resource-card { display: flex; flex-direction: column; }
.geo-resource-card a { text-decoration: none; }
.geo-resource-main { flex: 1; }
.geo-resource-secondary {
  border-top: 1px solid var(--geo-cream);
  color: #a93229;
  font-size: 13px;
  margin-top: 20px;
  padding-top: 12px;
}
.geo-resources small, .geo-resources strong { display: block; }
.geo-resources small { color: var(--geo-red); margin-bottom: 30px; }
.entry-header h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.055em; line-height: 1; }
.page .site-main { max-width: 1180px; padding-top: 70px; }
.page .entry-header {
  border-bottom: 1px solid rgba(21, 45, 38, .18);
  margin-bottom: 40px;
  padding-bottom: 30px;
}
.entry-content { font-size: 18px; max-width: 850px; }
.entry-content > p:first-child {
  font-family: Georgia, serif;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.35;
  margin-bottom: 65px;
}
.entry-content h2 {
  border-top: 1px solid rgba(21, 45, 38, .18);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin-top: 1.8em;
  padding-top: .75em;
}
.entry-content h3 { font-size: 25px; margin-top: 1.8em; }
.entry-content a { color: #a93229; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content ul,
.entry-content ol {
  background: var(--geo-white);
  border-left: 4px solid var(--geo-red);
  margin: 30px 0 45px;
  padding: 24px 30px 24px 52px;
}
.entry-content li { margin: 8px 0; padding-left: 4px; }
.entry-content > p:last-child > a:only-child {
  background: var(--geo-red);
  border-radius: 3px;
  color: white;
  display: inline-block;
  font-size: 14px;
  font-weight: 750;
  margin-top: 18px;
  padding: 13px 18px;
  text-decoration: none;
}
.post-list { display: grid; gap: 24px; }
.post-card { background: var(--geo-white); padding: 28px; }
.post-card h2 { margin-top: 0; }

.site-footer { background: var(--geo-ink); color: var(--geo-paper); padding: 48px 5vw; }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-menu a { text-decoration: none; }

@media (max-width: 860px) {
  .site-header { position: relative; }
  .menu-toggle {
    background: transparent;
    border: 1px solid rgba(21,45,38,.25);
    border-radius: 4px;
    display: block;
    padding: 9px 12px;
  }
  .site-navigation .primary-menu { display: none; }
  .site-navigation.is-open .primary-menu {
    background: var(--geo-paper);
    display: grid;
    left: 0;
    padding: 20px 5vw;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 2000;
  }
  .site-navigation .primary-menu { gap: 0; }
  .site-navigation .primary-menu > li { border-bottom: 1px solid rgba(21,45,38,.1); }
  .site-navigation .primary-menu a { display: inline-block; padding: 9px 0; }
  .primary-menu .sub-menu,
  .primary-menu .sub-menu .sub-menu {
    border: 0;
    box-shadow: none;
    left: auto;
    margin-left: 16px;
    min-width: 0;
    padding: 0;
    position: static;
  }
  .primary-menu li:hover > .sub-menu,
  .primary-menu li:focus-within > .sub-menu { display: none; }
  .primary-menu li.submenu-open > .sub-menu { display: block; }
  .primary-menu .sub-menu a { padding: 7px 0; white-space: normal; }
  .sub-menu .submenu-toggle::before { content: "▾"; }
  .geo-hero { padding-left: 0; padding-right: 0; }
  .geo-map-shell { border-radius: 0; height: 72vh; min-height: 610px; }
  .geo-hero-copy {
    bottom: 22px;
    left: 18px;
    max-width: calc(100% - 36px);
    padding: 25px;
    top: auto;
  }
  .geo-hero h1 { font-size: 47px; }
  .geo-intro { font-size: 16px; }
  .geo-theme-panel { bottom: auto; left: 18px; top: 12px; }
  .geo-theme-content { bottom: auto; top: 46px; }
  .geo-map-search { right: 12px; top: 172px; }
  .geo-purpose, .geo-install, .geo-bdtopoc { grid-template-columns: 1fr; }
  .geo-three, .geo-timeline { grid-template-columns: 1fr; }
  .geo-timeline article { border-left: 0 !important; }
  .geo-four, .geo-resources { grid-template-columns: 1fr 1fr; }
  .page .site-main { padding-top: 45px; }
}

@media (max-width: 520px) {
  .custom-logo { max-height: 62px; max-width: 230px; }
  .geooccitania-header-logo { height: 68px; max-width: calc(100vw - 105px); }
  .portal-label { display: none; }
  .geo-map-tools { left: auto; right: 8px; top: 8px; }
  .geo-map-search { left: auto; right: 8px; top: 168px; }
  .geo-map-search-fields { width: calc(100vw - 66px); }
  .geo-map-button { font-size: 17px; padding: 0; }
  .geo-help { left: 8px; right: 52px; top: 8px; }
  .geo-theme-panel { bottom: auto; left: 8px; top: 8px; }
  .geo-theme-content { width: calc(100vw - 16px); }
  .geo-theme-content > strong { font-size: 16px; }
  .entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .geo-section { padding: 72px 6vw; }
  .geo-four, .geo-resources, .geo-phone-guides { grid-template-columns: 1fr; }
}


/* Agropaments dei jaças a l'escala occitana. */
.geo-feature-cluster {
  align-items: center;
  background: var(--geo-marker-color);
  border: 3px solid rgba(255, 253, 247, .96);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(21, 45, 38, .38);
  color: white;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}
.geo-cluster-list { margin: 8px 0 0; padding-left: 18px; }
.geo-cluster-list li { margin: 3px 0; }
