/*
Theme Name: FMSWE 290
Version: 1.3
*/

/* GLOBAL */
body {
  font-family: Inter, system-ui;
  color:#1a2030;
}

/* CONTAINER */
.wp-site-blocks > * {
  max-width:1200px;
  margin:auto;
  padding-left:40px;
  padding-right:40px;
}

/* HEADER */
.fmswe-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 40px;
  border-bottom:1px solid #e5e7eb;
}

/* HERO */
.fmswe-hero {
  padding:120px 40px;
  position:relative;
  display:grid;
  grid-template-columns: 6fr 5fr;
  gap:60px;
  align-items:center;
}

.fmswe-hero .hero-content {
  min-width:0;
}

.fmswe-hero h1 {
  font-size:clamp(3rem,5vw,5.5rem);
  line-height:1;
  font-weight:800;
  letter-spacing:-0.03em;
  max-width:800px;
}

.fmswe-hero h1 span {
  color:#1260a8;
}

.lead {
  font-size:18px;
  margin-top:20px;
  color:#4b5563;
  max-width:600px;
}

/* HERO MAP */
.hero-map {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-self:center;
  width:100%;
  max-width:380px;
}

.hero-map-counter {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#6b7280;
  margin-bottom:14px;
  align-self:flex-start;
}

.hero-map-counter strong {
  color:#1260a8;
  font-weight:600;
}

.sweden-map {
  display:block;
  width:100%;
  height:auto;
  max-height:560px;
  overflow:visible;
}

.sweden-map path.n {
  fill:#e5e7eb;
  stroke:#fff;
  stroke-width:0.4;
  vector-effect:non-scaling-stroke;
}

.sweden-map path.m {
  fill:#1260a8;
  stroke:#fff;
  stroke-width:0.4;
  vector-effect:non-scaling-stroke;
  transition: fill .15s ease;
}

.sweden-map path.m:hover {
  fill:#0d4a82;
  cursor:default;
}

.hero-map-tip {
  position:absolute;
  background:#1a2030;
  color:#fff;
  font-size:12px;
  font-weight:500;
  padding:5px 9px;
  border-radius:4px;
  pointer-events:none;
  opacity:0;
  transition: opacity .12s ease;
  white-space:nowrap;
  z-index:5;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.hero-map-tip.on {
  opacity:1;
}

/* BUTTONS */
.cta a {
  padding:12px 18px;
  border-radius:6px;
  margin-right:10px;
  text-decoration:none;
}

.primary { background:#f5c200; }
.secondary { border:1px solid #1a2030; }

/* STATS */
.fmswe-stats {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:40px;
  padding:80px 40px;
  background:#eef5ff;
}

.stats-eyebrow {
  text-align:center;
  margin:0;
}

.stats-inner {
  display:flex;
  justify-content:space-between;
  gap:60px;
  width:100%;
  max-width:1000px;
}

.stat {
  text-align:center;
}

.stat h2 {
  font-size:48px;
  color:#1260a8;
}

.stat p {
  font-size:12px;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:#6b7280;
}

/* ABOUT */
.fmswe-about {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  padding:120px 40px;
}

/* ABOUT — pull-quote och CTA */
.fmswe-about .about-pull {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--fm-white);
  border-radius: 8px;
  border-left: 4px solid var(--fm-yellow);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fm-ink);
  line-height: 1.55;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  font-style: normal;
  quotes: none;
}

.fmswe-about .about-pull::before,
.fmswe-about .about-pull::after {
  content: none;
}

.fmswe-about .about-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: var(--fm-blue);
  color: var(--fm-white);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.fmswe-about .about-cta:hover {
  background: var(--fm-blue-dark);
  transform: translateY(-1px);
}

/* NEWS */
.fmswe-news {
  padding:120px 40px;
  background:#fafafa;
}

/* DOCS — tabbat (CSS-only via radio + :checked) */

/* Göm radio-inputsen — de styr bara :checked-state */
.fmswe-docs .doc-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.fmswe-docs .doc-tabs-wrap {
  max-width: 1200px;
  margin: 1.5rem auto 0;
}

.fmswe-docs .doc-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--fm-border);
  margin: 0 auto;
  flex-wrap: wrap;
}

.fmswe-docs .doc-tab {
  font-size: 0.825rem;
  font-weight: 500;
  padding: 9px 18px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--fm-muted);
  transition: all .15s;
  border-radius: 6px 6px 0 0;
  user-select: none;
}

.fmswe-docs .doc-tab:hover {
  color: var(--fm-ink);
  background: var(--fm-snow);
}

/* Aktiv tabb via :checked på motsvarande radio */
.fmswe-docs #doc-tab-forening:checked ~ .doc-tabs label[for="doc-tab-forening"],
.fmswe-docs #doc-tab-webb:checked     ~ .doc-tabs label[for="doc-tab-webb"] {
  color: var(--fm-blue);
  border-bottom-color: var(--fm-blue);
  font-weight: 700;
  background: var(--fm-blue-light);
}

/* Tangentbordsfokus */
.fmswe-docs .doc-tab-radio:focus-visible ~ .doc-tabs label[for="doc-tab-forening"],
.fmswe-docs .doc-tab-radio:focus-visible ~ .doc-tabs label[for="doc-tab-webb"] {
  outline: 2px solid var(--fm-blue);
  outline-offset: 2px;
}

/* Paneler: alla dolda som default */
.fmswe-docs .doc-panel { display: none; }

/* Visa panel som matchar markerad radio */
.fmswe-docs #doc-tab-forening:checked ~ .doc-panel-forening,
.fmswe-docs #doc-tab-webb:checked     ~ .doc-panel-webb {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Dokumentkort (.dc) */
.fmswe-docs .dc {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.fmswe-docs .dc:hover {
  border-color: var(--fm-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.fmswe-docs .dc-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fm-blue);
  background: var(--fm-blue-light);
  padding: 3px 10px;
  border-radius: 999px;
}

.fmswe-docs .dc h4 {
  margin: .25rem 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--fm-ink);
}

.fmswe-docs .dc-meta {
  font-size: 0.8rem;
  color: var(--fm-muted);
}

.fmswe-docs .dc a {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fm-blue);
  text-decoration: none;
  padding-top: .25rem;
}

.fmswe-docs .dc a:hover {
  text-decoration: underline;
}

/* Placeholder-variant (kommande dokument) */
.fmswe-docs .dc-placeholder {
  opacity: 0.6;
  pointer-events: none;
}

/* BOARD */
.board-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.member {
  border:1px solid #e5e7eb;
  padding:20px;
  border-radius:12px;
}

.member p {
  font-size:11px;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:#1260a8;
}

/* UTIL */
.eyebrow {
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.2em;
  color:#6b7280;
}

.center { text-align:center; }

/* RESPONSIVE */
@media (max-width:900px){
  .fmswe-hero { grid-template-columns: 1fr; gap:40px; padding:80px 24px; }
  .hero-map { max-width:280px; margin-top:20px; }
  .fmswe-about { grid-template-columns:1fr; }
  .board-grid { grid-template-columns:1fr 1fr; }
  .stats-inner { flex-direction:column; gap:30px; }
}

/* HERO EVENT (kommande träff) */
.fmswe-hero {
  --fm-yellow: #f5c200;
  --fm-yellow-dark: #c89a00;
  --fm-yellow-light: #fff8dc;
  --fm-ink: #1a2030;
  --fm-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hero-event {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 14px 20px;
  background: var(--fm-yellow-light, #fff8dc);
  border-left: 4px solid var(--fm-yellow);
  border-radius: 0 8px 8px 0;
  text-decoration: none;
  transition: all .2s;
  max-width: fit-content;
  box-shadow: 0 2px 8px rgba(245,194,0,0.15);
}

.hero-event:hover {
  background: #fff9d5;
  box-shadow: 0 4px 16px rgba(245,194,0,0.25);
}

.hero-event-pip {
  width: 7px;
  height: 7px;
  background: var(--fm-yellow-dark);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pip 2s infinite;
}

.hero-event-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-event-label {
  font-family: var(--fm-mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--fm-yellow-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-event-title {
  font-size: 0.825rem;
  color: var(--fm-ink);
  font-weight: 500;
}

.hero-event-arrow {
  color: var(--fm-yellow-dark);
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1rem;
}

@keyframes pip {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.6); }
}

@media (max-width:560px){
  .hero-map { display:none; }
}
