﻿:root {
      --rce-orange: #D97426;
      --rce-orange-dark: #B85D1A;
      --rce-orange-light: #E68535;
      --rce-gray: #3C4F5C;
      --rce-gray-dark: #2C3E4F;
      --rce-gray-mid: #5A6C7D;
      --rce-bg: #F7F8FA;
      --rce-bg-warm: #FBF9F7;
      --rce-white: #FFFFFF;
      --rce-shadow: 0 2px 12px rgba(44, 62, 79, 0.06);
      --rce-shadow-strong: 0 8px 32px rgba(44, 62, 79, 0.12);
      --rce-shadow-card: 0 4px 16px rgba(44, 62, 79, 0.08);
      --radius: 14px;
      --radius-sm: 10px;
      --transition: 0.25s ease;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: linear-gradient(180deg, var(--rce-bg) 0%, var(--rce-bg-warm) 100%);
      background-attachment: fixed;
      color: var(--rce-gray);
      line-height: 1.65;
      letter-spacing: 0.01em;
      overflow-x: hidden;
    }
    h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; letter-spacing: 0.02em; }

    /* ========== INTRO / SPLASH ========== */
    #intro {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: linear-gradient(160deg, #2C3E4F 0%, #1a2634 50%, #0f1620 100%);
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }
    #intro.hide {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .intro-waves {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
    }
    .intro-wave {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 120vmax;
      height: 120vmax;
      margin-left: -60vmax;
      margin-top: -60vmax;
      border: 2px solid var(--rce-orange);
      border-radius: 50%;
      opacity: 0;
      animation: introPulse 2s ease-out forwards;
    }
    .intro-wave:nth-child(1) { animation-delay: 0.1s; }
    .intro-wave:nth-child(2) { animation-delay: 0.35s; }
    .intro-wave:nth-child(3) { animation-delay: 0.6s; }
    .intro-wave:nth-child(4) { animation-delay: 0.85s; }
    .intro-wave:nth-child(5) { animation-delay: 1.1s; }
    @keyframes introPulse {
      0% { transform: scale(0.1); opacity: 0.7; }
      70% { opacity: 0.25; }
      100% { transform: scale(1); opacity: 0; }
    }
    .intro-scene {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }
    .intro-scene svg { position: absolute; width: 100%; height: 100%; }
    .intro-scene .skyline { stroke: rgba(255,255,255,0.11); fill: none; stroke-width: 0.2; }
    .intro-logo-wrap {
      position: relative;
      z-index: 2;
      animation: introLogo 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      opacity: 0;
      transform: scale(0.6);
    }
    .intro-logo-circle {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 8px 32px rgba(0,0,0,0.3);
    }
    @keyframes introLogo {
      0% { opacity: 0; transform: scale(0.6); }
      100% { opacity: 1; transform: scale(1); }
    }
    .intro-logo-wrap .logo-img {
      width: 120px;
      height: auto;
      max-height: 120px;
      object-fit: contain;
    }
    .intro-title {
      margin-top: 1.5rem;
      font-family: 'Outfit', sans-serif;
      font-size: clamp(1.1rem, 3vw, 1.4rem);
      font-weight: 800;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--rce-orange);
      opacity: 0;
      animation: introTitle 0.8s ease 0.5s forwards;
    }
    @keyframes introTitle {
      to { opacity: 1; }
    }
    .intro-sub {
      margin-top: 0.35rem;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.9);
      opacity: 0;
      animation: introTitle 0.8s ease 0.7s forwards;
    }
    .intro-tagline {
      margin-top: 0.5rem;
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.02em;
      color: rgba(255,255,255,0.8);
      opacity: 0;
      animation: introTitle 0.8s ease 0.9s forwards;
    }
    .intro-skip {
      position: absolute;
      bottom: 1.25rem;
      right: 1.25rem;
      z-index: 10;
      padding: 0.45rem 0.9rem;
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 600;
      color: rgba(255,255,255,0.9);
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 6px;
      cursor: pointer;
      opacity: 0;
      animation: introTitle 0.6s ease 1.1s forwards;
    }
    .intro-skip:hover {
      background: rgba(255,255,255,0.2);
    }
    @media (prefers-reduced-motion: reduce) {
      #intro .intro-wave,
      #intro .intro-logo-circle,
      #intro .intro-title,
      #intro .intro-sub,
      #intro .intro-tagline,
      #intro .intro-skip {
        animation: none !important;
        opacity: 1;
      }
    }

    /* ========== LAYOUT PRINCIPAL ========== */
    .main-content { opacity: 0; transition: opacity 0.6s ease 0.2s; }
    .main-content.visible { opacity: 1; }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--rce-white);
      border-bottom: 4px solid var(--rce-orange);
      box-shadow: var(--rce-shadow);
    }
    .header-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0.85rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      position: relative;
    }
    .logo-site {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      text-decoration: none;
      color: var(--rce-gray-dark);
      font-family: 'Outfit', sans-serif;
      font-weight: 700;
      font-size: 1.2rem;
      letter-spacing: 0.02em;
    }
    .logo-site img,
    .header-logo { height: 40px; width: auto; object-fit: contain; display: block; }
    .nav-toggle {
      display: none;
      width: 44px;
      height: 44px;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      border-radius: var(--radius-sm);
      color: var(--rce-gray-dark);
      transition: background 0.2s, color 0.2s;
    }
    .nav-toggle:hover { background: rgba(217, 116, 38, 0.08); color: var(--rce-orange); }
    .nav-toggle-icon { display: flex; flex-direction: column; gap: 5px; }
    .nav-toggle-icon span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.25s, opacity 0.25s; }
    .header.nav-open .nav-toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .header.nav-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
    .header.nav-open .nav-toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }
    .nav a {
      padding: 0.6rem 1.15rem;
      color: var(--rce-gray-dark);
      text-decoration: none;
      font-family: 'Outfit', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      border-radius: 6px;
      transition: color 0.2s, background 0.2s, border-color 0.2s;
      border-bottom: 2px solid transparent;
    }
    .nav a:hover {
      color: var(--rce-orange);
      background: rgba(217, 116, 38, 0.08);
      border-bottom-color: var(--rce-orange);
    }
    @media (max-width: 768px) {
      .nav-toggle { display: flex; }
      .header-inner { flex-wrap: wrap; }
      .nav {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        flex-direction: column;
        align-items: stretch;
        background: var(--rce-white);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        padding: 1rem 1.5rem;
        gap: 0.25rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s;
        z-index: 50;
      }
      .header.nav-open .nav {
        max-height: 520px;
        opacity: 1;
        visibility: visible;
      }
      .nav a {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 6px;
        border-bottom: none;
        border-left: 3px solid transparent;
      }
      .nav a:hover {
        background: rgba(217, 116, 38, 0.1);
        border-left-color: var(--rce-orange);
      }
    }

    /* Hero — largura total (não herda max-width de section) */
    section.hero {
      max-width: none;
      width: 100%;
      margin: 0;
      padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 3rem);
    }
    .hero {
      background: linear-gradient(135deg, var(--rce-gray-dark) 0%, var(--rce-gray) 50%, #243544 100%);
      color: var(--rce-white);
      text-align: center;
      position: relative;
      overflow: hidden;
      border-radius: 0 0 28px 28px;
      box-shadow: 0 12px 40px rgba(44, 62, 79, 0.15);
    }
    .hero::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle at 30% 50%, rgba(217, 116, 38, 0.12) 0%, transparent 45%);
      pointer-events: none;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }
    .hero-bg svg { position: absolute; width: 100%; height: 100%; }
    .hero-bg .hero-skyline { stroke: rgba(255,255,255,0.14); fill: none; stroke-width: 0.35; }
    .hero-bg .hero-rural { stroke: rgba(255,255,255,0.1); fill: none; stroke-width: 0.3; }
    .hero-bg .hero-arc { stroke: rgba(255,255,255,0.05); fill: none; stroke-width: 0.3; }
    .hero-bg .hero-arc-orange { stroke: rgba(217, 116, 38, 0.07); fill: none; stroke-width: 0.3; }
    .hero-graphic {
      position: absolute;
      right: 8%;
      bottom: 14%;
      width: 140px;
      height: 90px;
      opacity: 0.14;
      pointer-events: none;
      z-index: 1;
    }
    .hero-graphic svg { width: 100%; height: 100%; }
    .hero-inner { position: relative; z-index: 1; max-width: min(920px, 100%); margin: 0 auto; }
    .hero h1 {
      font-size: clamp(2.15rem, 5.5vw, 3.35rem);
      font-weight: 800;
      line-height: 1.12;
      margin-bottom: 1.15rem;
      letter-spacing: -0.02em;
    }
    .hero .accent { color: var(--rce-orange-light); }
    .hero-desc {
      font-size: clamp(1.1rem, 2.2vw, 1.35rem);
      font-weight: 500;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.95);
      margin-bottom: 2rem;
      max-width: min(640px, 100%);
      margin-left: auto;
      margin-right: auto;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    }
    .hero p:not(.hero-desc) {
      font-size: 1.15rem;
      opacity: 0.92;
      margin-bottom: 1.5rem;
    }
    .btn {
      display: inline-block;
      padding: 0.95rem 2rem;
      background: linear-gradient(135deg, var(--rce-orange-light) 0%, var(--rce-orange) 55%, var(--rce-orange-dark) 100%);
      color: white;
      text-decoration: none;
      font-family: 'Outfit', sans-serif;
      font-weight: 700;
      font-size: 1.05rem;
      letter-spacing: 0.03em;
      border-radius: var(--radius-sm);
      box-shadow: 0 6px 20px rgba(217, 116, 38, 0.4);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(217, 116, 38, 0.45);
    }
    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem;
      justify-content: center;
      align-items: center;
    }
    .hero .btn-secondary {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.45);
      box-shadow: none;
    }
    .hero .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.16);
      border-color: rgba(255, 255, 255, 0.65);
      color: #fff;
    }
    .hero-actions--contact {
      justify-content: flex-start;
      margin-top: 0.25rem;
    }

    /* Avisos institucionais */
    .sec-notice {
      max-width: min(920px, calc(100% - 3rem));
      margin: 0 auto;
      padding: 1.15rem 1.35rem;
      background: rgba(255, 247, 237, 0.95);
      border: 1px solid rgba(217, 116, 38, 0.22);
      border-left: 4px solid var(--rce-orange);
      border-radius: var(--radius-sm);
      box-shadow: 0 2px 12px rgba(44, 62, 79, 0.04);
    }
    .sec-notice p {
      margin: 0;
      font-size: 0.94rem;
      line-height: 1.65;
      color: var(--rce-gray-dark);
    }
    .page-main > .sec-notice {
      margin-top: clamp(1.5rem, 3vw, 2rem);
      margin-bottom: 0.5rem;
    }
    .page-home > .sec-notice {
      margin-top: -1.5rem;
      margin-bottom: 0;
      position: relative;
      z-index: 2;
    }

    .simulation-note {
      font-size: 0.88rem;
      color: var(--rce-gray-mid);
      line-height: 1.55;
      margin: 0 0 1rem;
      padding: 0.65rem 0.85rem;
      background: rgba(44, 62, 79, 0.04);
      border-radius: 6px;
      border-left: 3px solid rgba(44, 62, 79, 0.18);
    }

    /* Capacidades da plataforma */
    .platform-capabilities {
      margin-top: 2.25rem;
      padding-top: 2rem;
      border-top: 1px solid rgba(44, 62, 79, 0.08);
    }
    .platform-capabilities-title {
      font-size: clamp(1.15rem, 2vw, 1.35rem);
      color: var(--rce-gray-dark);
      margin: 0 0 0.65rem;
    }
    .platform-capabilities-lead {
      font-size: 0.98rem;
      color: var(--rce-gray-mid);
      line-height: 1.65;
      margin: 0 0 1.35rem;
      max-width: 52rem;
    }
    .platform-capabilities-grid {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }
    .platform-capabilities-grid li {
      background: var(--rce-white);
      border: 1px solid rgba(44, 62, 79, 0.08);
      border-radius: var(--radius-sm);
      padding: 1.15rem 1.25rem;
      box-shadow: 0 1px 8px rgba(44, 62, 79, 0.03);
    }
    .platform-capabilities-grid strong {
      display: block;
      font-family: 'Outfit', sans-serif;
      font-size: 0.98rem;
      color: var(--rce-gray-dark);
      margin-bottom: 0.4rem;
    }
    .platform-capabilities-grid span {
      display: block;
      font-size: 0.9rem;
      line-height: 1.55;
      color: var(--rce-gray-mid);
    }

    .compliance-grid {
      list-style: none;
      margin: 1.25rem 0 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }
    .compliance-grid li {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
      border: 1px solid rgba(44, 62, 79, 0.08);
      border-top: 3px solid var(--rce-gray-dark);
      border-radius: var(--radius-sm);
      padding: 1.15rem 1.25rem;
    }
    .compliance-grid strong {
      display: block;
      font-family: 'Outfit', sans-serif;
      font-size: 0.96rem;
      color: var(--rce-gray-dark);
      margin-bottom: 0.4rem;
    }
    .compliance-grid span {
      display: block;
      font-size: 0.88rem;
      line-height: 1.58;
      color: var(--rce-gray-mid);
    }
    .compliance-footnote {
      margin-top: 1.25rem;
      font-size: 0.86rem;
      color: var(--rce-gray-mid);
      line-height: 1.55;
      font-style: italic;
    }

    .channels-footnote {
      margin-top: 1.15rem;
      font-size: 0.88rem;
      color: var(--rce-gray-mid);
      line-height: 1.55;
    }

    /* Demonstração vs implementação */
    .implementation-scope-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.25rem;
      margin-top: 0.5rem;
    }
    .implementation-scope-card {
      background: var(--rce-white);
      border: 1px solid rgba(44, 62, 79, 0.08);
      border-radius: var(--radius);
      padding: 1.5rem 1.65rem;
    }
    .implementation-scope-card--full {
      border-left: 4px solid var(--rce-orange);
    }
    .implementation-scope-card h3 {
      font-size: 1.05rem;
      color: var(--rce-gray-dark);
      margin: 0 0 0.85rem;
    }
    .implementation-scope-card ul {
      margin: 0;
      padding-left: 1.15rem;
      color: var(--rce-gray-mid);
      font-size: 0.94rem;
      line-height: 1.65;
    }
    .implementation-scope-card li + li {
      margin-top: 0.35rem;
    }
    .implementation-scope-cta {
      margin: 1.15rem 0 0;
      font-size: 0.95rem;
      font-weight: 600;
    }
    .implementation-scope-cta a {
      color: var(--rce-orange-dark);
      text-decoration: none;
    }
    .implementation-scope-cta a:hover {
      text-decoration: underline;
    }
    .sec-implementation-scope {
      padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
    }

    /* Contacto */
    .contact-info-blocks {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.25rem;
      margin-top: 2.5rem;
    }
    .contact-info-block {
      padding: 1.35rem 1.5rem;
      background: var(--rce-white);
      border: 1px solid rgba(44, 62, 79, 0.08);
      border-radius: var(--radius);
    }
    .contact-info-block h3 {
      font-size: 1.05rem;
      margin: 0 0 0.65rem;
      color: var(--rce-gray-dark);
    }
    .contact-info-block p {
      margin: 0;
      font-size: 0.94rem;
      line-height: 1.65;
      color: var(--rce-gray-mid);
    }

    /* Secções */
    section {
      max-width: min(1200px, 100%);
      margin: 0 auto;
      padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
      box-sizing: border-box;
    }
    section + section { border-top: 1px solid rgba(0,0,0,0.05); }
    .section-tag {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      color: var(--rce-orange);
      margin-bottom: 0.75rem;
      padding-bottom: 0.4rem;
      border-bottom: 1px solid rgba(217, 116, 38, 0.4);
    }
    section h2 {
      font-size: clamp(1.75rem, 3vw, 2.25rem);
      color: var(--rce-gray-dark);
      margin-bottom: 1rem;
      position: relative;
    }
    .sec-prose > h2::after {
      content: '';
      display: block;
      width: 48px;
      height: 3px;
      background: linear-gradient(90deg, var(--rce-orange), transparent);
      margin-top: 0.75rem;
      border-radius: 2px;
    }
    section p { color: var(--rce-gray-mid); margin-bottom: 1.1rem; font-size: 1.05rem; line-height: 1.75; }
    .sec-prose a { color: var(--rce-orange-dark); font-weight: 600; }
    .sec-prose a:hover { text-decoration: underline; }
    .sec-prose { max-width: min(880px, 100%); margin-left: auto; margin-right: auto; width: 100%; }
    .sec-prose.sec-wide { max-width: min(1140px, 100%); }
    main.page-main { width: 100%; }
    .contact-page {
      max-width: 1200px;
      margin: 0 auto;
      padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
    }
    .sec-prose .lead {
      font-size: clamp(1.12rem, 2vw, 1.28rem);
      color: var(--rce-gray-dark);
      margin-bottom: 1.65rem;
      line-height: 1.7;
      font-weight: 500;
    }
    .sec-prose h3 {
      font-size: clamp(1.15rem, 2vw, 1.28rem);
      color: var(--rce-gray-dark);
      margin-top: 2rem;
      margin-bottom: 0.65rem;
    }

    /* Página inicial — layout alargado e aspecto institucional */
    .page-home section.sec-prose {
      max-width: none;
      width: 100%;
      padding-top: clamp(3.25rem, 6vw, 4.75rem);
      padding-bottom: clamp(3.25rem, 6vw, 4.75rem);
    }
    .page-home section.sec-prose > * {
      max-width: min(1140px, 100%);
      margin-left: auto;
      margin-right: auto;
    }
    .page-home section.sec-prose > .channels-wrap,
    .page-home section.sec-prose > .mission-cards,
    .page-home section.sec-prose > .page-links {
      max-width: min(1140px, 100%);
    }
    .page-home .sec-band {
      background: rgba(255, 255, 255, 0.72);
      border-top: 1px solid rgba(44, 62, 79, 0.06);
      border-bottom: 1px solid rgba(44, 62, 79, 0.06);
    }
    .page-home .sec-explore {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
      padding-bottom: clamp(4rem, 8vw, 5.5rem);
    }
    .page-home .section-tag {
      font-size: 0.72rem;
      letter-spacing: 0.22em;
      padding: 0.35rem 0 0.5rem;
    }
    .page-home section h2 {
      font-size: clamp(1.85rem, 3.5vw, 2.45rem);
      margin-bottom: 1.15rem;
    }
    .page-home .sec-prose > h2::after {
      width: 64px;
      height: 4px;
    }

    .sec-scope {
      max-width: min(720px, 100%);
      margin: 0 auto;
      padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem 0;
      text-align: center;
    }
    .sec-scope p {
      font-size: 0.92rem;
      color: var(--rce-gray-mid);
      line-height: 1.65;
      margin: 0;
    }
    .sec-scope strong {
      color: var(--rce-gray-dark);
      font-weight: 600;
    }
    .sec-closing {
      margin-top: 1.75rem;
      font-size: 0.92rem;
      color: var(--rce-gray-mid);
      line-height: 1.6;
      max-width: 42rem;
    }

    /* Missão */
    .mission-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 2rem;
      width: 100%;
    }
    @media (max-width: 960px) {
      .mission-cards { grid-template-columns: 1fr; }
    }
    .mission-card {
      background: var(--rce-white);
      border-radius: var(--radius);
      padding: 2rem 1.85rem;
      box-shadow: var(--rce-shadow-card);
      border: 1px solid rgba(44, 62, 79, 0.06);
      border-left: 4px solid var(--rce-orange);
      transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    }
    .mission-card:hover {
      box-shadow: var(--rce-shadow-strong);
      transform: translateY(-3px);
      border-color: rgba(217, 116, 38, 0.15);
    }
    .mission-card h3 { font-size: 1.15rem; color: var(--rce-gray-dark); margin-bottom: 0.5rem; }
    .mission-card p { font-size: 0.95rem; margin-bottom: 0; }

    /* Canais */
    .channels-wrap {
      background: linear-gradient(135deg, rgba(255, 247, 237, 0.9) 0%, var(--rce-white) 100%);
      border: 1px solid rgba(217, 116, 38, 0.15);
      border-radius: var(--radius);
      padding: 2.25rem;
      margin-top: 1.75rem;
      box-shadow: 0 2px 16px rgba(217, 116, 38, 0.04);
    }
    .channels-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.15rem;
      margin-top: 1.25rem;
      width: 100%;
    }
    .channel-item {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      padding: 0.9rem 1rem;
      background: var(--rce-white);
      border-radius: var(--radius-sm);
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .channel-num {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, var(--rce-orange) 0%, var(--rce-orange-dark) 100%);
      color: white;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.9rem;
    }
    .channel-item h4 { font-size: 1rem; color: var(--rce-gray-dark); margin-bottom: 0.2rem; }
    .channel-item span { font-size: 0.8rem; color: var(--rce-gray-mid); }
    .channel-item .badge {
      font-size: 0.7rem;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      margin-left: auto;
    }
    .badge.public { background: rgba(22, 163, 74, 0.15); color: #15803d; }
    .badge.private { background: rgba(60, 79, 92, 0.15); color: var(--rce-gray); }
    .channels-simple .channel-item { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    .channels-simple .channel-item h4 { margin-bottom: 0; }
    .channels-simple .channel-item span { font-size: 0.9rem; line-height: 1.5; }

    /* CTA */
    .cta-section {
      text-align: center;
      background: linear-gradient(165deg, #243548 0%, var(--rce-gray-dark) 50%, #1e2d3a 100%);
      color: var(--rce-white);
      border-radius: var(--radius);
      padding: 3.5rem 2.5rem;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    }
    .cta-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--rce-orange), transparent);
      opacity: 0.9;
    }
    .cta-section::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(217, 116, 38, 0.06) 0%, transparent 55%);
      pointer-events: none;
    }
    .cta-section h2 { color: inherit; margin-bottom: 0.5rem; position: relative; z-index: 1; }
    .cta-section p { color: rgba(255,255,255,0.88); margin-bottom: 1.5rem; position: relative; z-index: 1; }
    .sec-prose .cta-section a.btn {
      color: #fff;
      text-decoration: none;
    }
    .sec-prose .cta-section a.btn:hover {
      color: #fff;
      text-decoration: none;
    }
    .cta-section .btn {
      background: linear-gradient(135deg, var(--rce-orange-light) 0%, var(--rce-orange) 100%);
      position: relative;
      z-index: 1;
    }
    .cta-email {
      margin-top: 1rem;
      font-size: 0.95rem;
      color: rgba(255,255,255,0.9);
      position: relative;
      z-index: 1;
    }

    /* Rede piloto */
    .pilot-wrap {
      display: grid;
      grid-template-columns: 200px minmax(0, 1fr);
      align-items: start;
      gap: 2rem 2.5rem;
      margin-top: 2rem;
      width: 100%;
    }
    @media (max-width: 720px) {
      .pilot-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
      }
    }
    .pilot-qr {
      flex-shrink: 0;
      width: 200px;
      height: 200px;
      background: var(--rce-white);
      border-radius: var(--radius);
      padding: 1rem;
      box-shadow: var(--rce-shadow);
    }
    .pilot-qr img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    .pilot-qr.missing-qr::after {
      content: "QR em falta — copie para assets/rede-rce-publica-qr.jpeg (ver README).";
      display: block;
      font-size: 0.8rem;
      color: var(--rce-gray-mid);
      text-align: center;
      padding: 0.5rem;
    }
    .pilot-info {
      min-width: 0;
      max-width: none;
      width: 100%;
    }
    .pilot-info p {
      margin-bottom: 1rem;
    }
    .pilot-note {
      font-size: 0.9rem;
      color: var(--rce-gray-mid);
      margin-top: 1.5rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(0,0,0,0.06);
    }

    /* Rede pública */
    .public-hero-card {
      background: linear-gradient(135deg, var(--rce-gray-dark) 0%, #243544 100%);
      color: var(--rce-white);
      border-radius: var(--radius);
      padding: 2rem 2.25rem;
      margin-top: 1.75rem;
      box-shadow: var(--rce-shadow-strong);
      border: 1px solid rgba(255,255,255,0.08);
    }
    .public-hero-card p { color: rgba(255,255,255,0.9); margin-bottom: 0.85rem; }
    .public-hero-card p:last-child { margin-bottom: 0; }
    .public-channels-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 1.25rem;
      font-size: 0.92rem;
      background: var(--rce-white);
      border-radius: var(--radius-sm);
      overflow: hidden;
      box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    }
    .public-channels-table th,
    .public-channels-table td {
      padding: 0.75rem 1rem;
      text-align: left;
      border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .public-channels-table th {
      background: rgba(217, 116, 38, 0.1);
      color: var(--rce-gray-dark);
      font-family: 'Outfit', sans-serif;
      font-weight: 700;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .public-channels-table tr:last-child td { border-bottom: none; }
    .public-badge {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      background: rgba(22, 163, 74, 0.12);
      color: #15803d;
    }
    .public-channels-table-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin-top: 1.25rem;
    }
    .public-channels-table--mesh td {
      vertical-align: top;
    }
    .public-ch-slot {
      width: 2.75rem;
      font-weight: 700;
      color: var(--rce-orange-dark);
      white-space: nowrap;
    }
    .public-ch-name strong {
      display: block;
      color: var(--rce-gray-dark);
    }
    .public-ch-hint {
      display: block;
      margin-top: 0.2rem;
      font-size: 0.78rem;
      color: var(--rce-gray-mid);
      font-weight: 400;
      line-height: 1.35;
    }
    .public-ch-psk code {
      font-family: ui-monospace, 'Cascadia Code', monospace;
      font-size: 0.78rem;
      word-break: break-all;
      overflow-wrap: anywhere;
      background: rgba(44, 62, 79, 0.06);
      color: var(--rce-gray-dark);
      padding: 0.15em 0.35em;
      border-radius: 4px;
    }
    .public-ch-region {
      white-space: nowrap;
      font-size: 0.85rem;
    }
    .public-copy-psk {
      padding: 0.3rem 0.55rem;
      font-size: 0.75rem;
      font-weight: 600;
      font-family: inherit;
      border: 1px solid rgba(44, 62, 79, 0.15);
      border-radius: 6px;
      background: var(--rce-white);
      color: var(--rce-gray-dark);
      cursor: pointer;
      white-space: nowrap;
    }
    .public-copy-psk:hover:not(:disabled) {
      border-color: var(--rce-orange);
      color: var(--rce-orange-dark);
    }
    .public-copy-psk:disabled {
      opacity: 0.65;
      cursor: default;
    }
    .public-channels-foot {
      margin-top: 0.75rem;
      font-size: 0.82rem;
      color: var(--rce-gray-mid);
      line-height: 1.45;
    }
    .public-sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    @media (max-width: 720px) {
      .public-channels-table--mesh thead { display: none; }
      .public-channels-table--mesh tr {
        display: block;
        margin-bottom: 0.85rem;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: var(--radius-sm);
        overflow: hidden;
      }
      .public-channels-table--mesh td {
        display: block;
        padding: 0.55rem 0.85rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
      }
      .public-channels-table--mesh td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--rce-gray-mid);
        margin-bottom: 0.25rem;
      }
      .public-channels-table--mesh td[data-label=""]::before { display: none; }
      .public-channels-table--mesh .public-ch-act { padding-top: 0.35rem; }
      .public-copy-psk { width: 100%; }
    }

    /* Comandos */
    .cmd-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.25rem;
      margin-top: 1.75rem;
    }
    .cmd-card {
      background: var(--rce-white);
      border-radius: var(--radius);
      padding: 1.5rem 1.65rem;
      box-shadow: var(--rce-shadow-card);
      border: 1px solid rgba(44, 62, 79, 0.06);
      border-top: 3px solid var(--rce-orange);
    }
    .cmd-card h3 { font-size: 1.05rem; color: var(--rce-gray-dark); margin-bottom: 0.65rem; }
    .cmd-card p { font-size: 0.92rem; margin-bottom: 0.65rem; }
    .cmd-card ul { margin: 0.5rem 0 0 1.1rem; font-size: 0.9rem; color: var(--rce-gray-mid); }
    .cmd-card li { margin-bottom: 0.35rem; }
    .cmd-card code {
      font-family: ui-monospace, 'Cascadia Code', monospace;
      font-size: 0.85em;
      background: rgba(217, 116, 38, 0.1);
      color: var(--rce-orange-dark);
      padding: 0.1em 0.35em;
      border-radius: 4px;
    }
    .cmd-highlight {
      margin-top: 1.5rem;
      padding: 1.15rem 1.35rem;
      background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
      border: 1px solid rgba(217, 116, 38, 0.25);
      border-radius: var(--radius-sm);
      font-size: 0.92rem;
      color: var(--rce-gray-dark);
    }
    .sub-types {
      margin: 1rem 0 0;
      padding: 1rem 1.15rem;
      background: rgba(44, 62, 79, 0.04);
      border-radius: var(--radius-sm);
      border-left: 3px solid var(--rce-orange);
      list-style: none;
    }
    .sub-types li {
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
      color: var(--rce-gray-mid);
      line-height: 1.5;
    }
    .sub-types li:last-child { margin-bottom: 0; }
    .sub-types strong {
      color: var(--rce-gray-dark);
      font-family: ui-monospace, 'Cascadia Code', monospace;
      font-size: 0.88em;
    }

    /* Ocorrências montra */
    .sec-wide { max-width: min(1200px, 100%); }
    #geo-montra-map {
      height: clamp(480px, 52vh, 560px);
      border-radius: var(--radius);
      border: 2px solid rgba(44, 62, 79, 0.08);
      box-shadow: var(--rce-shadow-card);
      margin: 1.25rem 0 1rem;
      background: #eef1f4;
      position: relative;
      z-index: 0;
      isolation: isolate;
    }
    #geo-montra-map.leaflet-container {
      z-index: 0;
    }
    #geo-montra-map.leaflet-container .leaflet-tile-pane img.leaflet-tile {
      max-width: none !important;
    }
    #comandos {
      scroll-margin-top: 5.5rem;
    }
    .geo-montra-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
      margin-bottom: 0.5rem;
    }
    .geo-montra-btn {
      padding: 0.45rem 1rem;
      border: 2px solid var(--rce-orange);
      background: var(--rce-white);
      color: var(--rce-orange);
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Outfit', sans-serif;
      transition: background 0.15s, color 0.15s;
    }
    .geo-montra-btn.active { background: var(--rce-orange); color: #fff; }
    .geo-montra-btn.sismos { border-color: #dc2626; color: #dc2626; }
    .geo-montra-btn.sismos.active { background: #dc2626; color: #fff; }
    .geo-montra-btn.outras { border-color: #0891b2; color: #0891b2; }
    .geo-montra-btn.outras.active { background: #0891b2; color: #fff; }
    .geo-montra-status { font-size: 0.8rem; color: var(--rce-gray-mid); margin-left: 0.25rem; }
    .geo-montra-disclaimer {
      font-size: 0.88rem;
      color: var(--rce-gray-mid);
      margin-bottom: 1rem;
      line-height: 1.5;
    }
    .geo-montra-foot {
      margin-top: 1.25rem;
      font-size: 0.82rem;
      color: var(--rce-gray-mid);
      line-height: 1.45;
    }
    .geo-lists {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.25rem;
      margin-top: 1.5rem;
    }
    .geo-list-block h3 {
      font-size: 0.95rem;
      margin-bottom: 0.65rem;
      color: var(--rce-gray-dark);
    }
    .geo-list-block--sismos h3 { color: #b91c1c; }
    .geo-list-block--incendios h3 { color: var(--rce-orange-dark); }
    .geo-list-block--outras h3 { color: #0e7490; }
    .geo-list-block--meteo h3 { color: #1d4ed8; }
    .geo-montra-list { list-style: none; padding: 0; margin: 0; }
    .geo-montra-list li {
      padding: 0.5rem 0;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      font-size: 0.85rem;
      color: var(--rce-gray);
    }
    .geo-montra-time { font-weight: 600; color: var(--rce-gray-mid); margin-right: 0.35rem; }
    .geo-montra-mag { color: #dc2626; font-weight: 700; }
    .geo-montra-gps { font-size: 0.75rem; color: #15803d; }
    .geo-montra-nogps { font-size: 0.75rem; color: var(--rce-gray-mid); }
    .geo-montra-empty { font-size: 0.85rem; color: var(--rce-gray-mid); font-style: italic; }
    .geo-montra-more { font-size: 0.78rem; color: var(--rce-gray-mid); margin-top: 0.35rem; }

    /* Pré-visualização mensagens mesh (ocorrências) */
    .geo-feed-preview {
      --feed-accent: #d97426;
      --feed-accent-dark: #b85d1a;
      --feed-slate-deep: #2c3e4f;
      --feed-border: rgba(60, 79, 92, 0.14);
      --feed-bg: #f0f3f6;
      --feed-shadow: 0 2px 14px rgba(60, 79, 92, 0.1);
      margin-top: 2.5rem;
      padding-top: 2rem;
      border-top: 1px solid rgba(44, 62, 79, 0.1);
    }
    .geo-feed-preview--home {
      margin-top: 0;
      border-top: none;
      padding-top: 0;
    }
    .geo-feed-preview-title {
      font-size: clamp(1.35rem, 2.5vw, 1.65rem);
      font-weight: 700;
      color: var(--rce-gray-dark);
      margin: 0 0 1.5rem;
    }
    .geo-feed-block {
      margin-bottom: 2.25rem;
    }
    .geo-feed-block:last-child {
      margin-bottom: 0;
    }
    .geo-feed-block-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--rce-gray-dark);
      margin: 0 0 0.35rem;
    }
    .geo-feed-block-hint {
      font-size: 0.88rem;
      color: var(--rce-gray-mid);
      margin: 0 0 1rem;
      max-width: 40rem;
    }
    .geo-feed-block-head {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.5rem 1rem;
      margin-bottom: 0.35rem;
    }
    .geo-feed-block-head .geo-feed-block-title {
      margin: 0;
    }
    .geo-feed-sync {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--rce-gray-mid);
    }
    .geo-feed-more {
      margin: 1rem 0 0;
      font-size: 0.9rem;
    }
    .geo-feed-more a {
      color: var(--rce-gray-dark);
      font-weight: 600;
    }
    .geo-feed-more a:hover {
      color: var(--rce-orange-dark);
    }
    .dash-sim {
      margin-top: 2.25rem;
      padding-top: 2rem;
      border-top: 1px solid rgba(44, 62, 79, 0.08);
    }
    .dash-sim-layout {
      display: grid;
      grid-template-columns: 1.15fr 1fr;
      gap: 1rem;
    }
    .dash-card {
      background: #fff;
      border: 1px solid rgba(60, 79, 92, 0.12);
      border-radius: 8px;
      box-shadow: 0 2px 14px rgba(60, 79, 92, 0.08);
      padding: 0.95rem 1rem;
    }
    .dash-kpi-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
    }
    .dash-kpi {
      background: #f4f7fa;
      border: 1px solid rgba(60, 79, 92, 0.1);
      border-radius: 7px;
      padding: 0.7rem;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }
    .dash-kpi-label {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--rce-gray-mid);
      font-weight: 700;
    }
    .dash-kpi-value {
      font-family: 'Outfit', sans-serif;
      font-size: 1.4rem;
      color: var(--rce-gray-dark);
      line-height: 1.1;
    }
    .dash-kpi-note {
      font-size: 0.74rem;
      color: var(--rce-gray-mid);
    }
    .dash-card-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.65rem;
    }
    .dash-card-head h3 {
      margin: 0;
      font-size: 0.96rem;
      color: var(--rce-gray-dark);
    }
    .dash-pill {
      font-size: 0.7rem;
      font-weight: 700;
      color: #1a8f55;
      background: rgba(26, 143, 85, 0.12);
      border: 1px solid rgba(26, 143, 85, 0.25);
      border-radius: 999px;
      padding: 0.2rem 0.48rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .dash-meta {
      font-size: 0.72rem;
      color: var(--rce-gray-mid);
      font-weight: 600;
    }
    .dash-timeline {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      max-height: 220px;
      overflow-y: auto;
    }
    .dash-timeline li {
      border: 1px solid rgba(60, 79, 92, 0.1);
      border-left: 4px solid var(--rce-gray-dark);
      border-radius: 6px;
      padding: 0.5rem 0.6rem;
      background: #f9fbfc;
      font-size: 0.8rem;
      line-height: 1.35;
      color: var(--rce-gray);
    }
    .dash-timeline-time {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--rce-gray-mid);
      margin-right: 0.35rem;
    }
    .dash-channels {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }
    .dash-channel-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.84rem;
      color: var(--rce-gray-dark);
      background: #f8f9fb;
      border: 1px solid rgba(60, 79, 92, 0.1);
      border-radius: 6px;
      padding: 0.45rem 0.6rem;
    }
    .dash-badge {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 0.15rem 0.4rem;
      border-radius: 999px;
      white-space: nowrap;
    }
    .dash-badge-ok {
      color: #1a8f55;
      background: rgba(26, 143, 85, 0.12);
    }
    .dash-badge-attn {
      color: #b45309;
      background: rgba(245, 158, 11, 0.16);
    }
    .dash-load-list {
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
    }
    .dash-load-row {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }
    .dash-load-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
      color: var(--rce-gray-dark);
      font-weight: 600;
    }
    .dash-load-head strong {
      font-family: 'Outfit', sans-serif;
      font-size: 0.82rem;
      color: var(--rce-gray-mid);
    }
    .dash-load-bar {
      width: 100%;
      height: 10px;
      border-radius: 999px;
      background: #e6ebf0;
      overflow: hidden;
      border: 1px solid rgba(60, 79, 92, 0.08);
    }
    .dash-load-bar span {
      display: block;
      height: 100%;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, #d97426 0%, #b85d1a 100%);
      transition: width 0.7s ease;
    }
    .dash-card-wide {
      grid-column: 1 / -1;
    }
    .dash-table-wrap {
      overflow-x: auto;
    }
    .dash-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.78rem;
      color: var(--rce-gray);
    }
    .dash-table th,
    .dash-table td {
      padding: 0.42rem 0.45rem;
      text-align: left;
      border-bottom: 1px solid rgba(60, 79, 92, 0.1);
      white-space: nowrap;
    }
    .dash-table th {
      font-family: 'Outfit', sans-serif;
      font-size: 0.7rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--rce-gray-mid);
      background: #f6f8fa;
    }
    .dash-inc-sev {
      font-size: 0.66rem;
      font-weight: 700;
      border-radius: 999px;
      padding: 0.16rem 0.35rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .dash-inc-sev--ok {
      color: #1a8f55;
      background: rgba(26, 143, 85, 0.12);
    }
    .dash-inc-sev--warn {
      color: #b45309;
      background: rgba(245, 158, 11, 0.16);
    }
    .geo-feed-preview-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
      align-items: stretch;
    }
    @media (max-width: 820px) {
      .geo-feed-preview-grid { grid-template-columns: 1fr; }
      .dash-sim-layout { grid-template-columns: 1fr; }
      .dash-kpi-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 560px) {
      .dash-kpi-grid { grid-template-columns: 1fr; }
    }
    .geo-feed-panel {
      display: flex;
      flex-direction: column;
      min-height: 280px;
      border: 1px solid var(--feed-border, rgba(44, 62, 79, 0.1));
      border-radius: var(--wc-radius-sm, 7px);
      background: var(--feed-bg, #f1f3f5);
      overflow: hidden;
      box-shadow: var(--feed-shadow, none);
    }
    .geo-feed-panel--compact {
      min-height: 200px;
    }
    .geo-feed-panel--compact .geo-feed-messages {
      min-height: 160px;
      max-height: 220px;
    }
    .geo-feed-panel-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.35rem 0.75rem;
      padding: 0.55rem 0.85rem;
      background: var(--rce-gray-dark);
      color: #fff;
      font-size: 0.78rem;
    }
    .geo-feed-panel-label { font-weight: 700; letter-spacing: 0.02em; }
    .geo-feed-panel-tag {
      font-weight: 500;
      opacity: 0.88;
      font-size: 0.72rem;
    }
    .geo-feed-messages {
      flex: 1;
      overflow-y: auto;
      padding: 0.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      min-height: 220px;
      max-height: 320px;
      background: var(--feed-bg, #e8ecef);
    }
    .geo-feed-msg {
      max-width: 94%;
      padding: 0.45rem 0.7rem;
      border-radius: 6px;
      font-size: 0.82rem;
      line-height: 1.4;
      white-space: pre-wrap;
      word-break: break-word;
      animation: geo-feed-msg-in 0.35s ease;
    }
    @keyframes geo-feed-msg-in {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .geo-feed-msg--in {
      align-self: flex-start;
      background: #fff;
      border: 1px solid rgba(44, 62, 79, 0.12);
      border-left: 4px solid var(--rce-gray-dark);
      box-shadow: 0 1px 4px rgba(44, 62, 79, 0.08);
    }
    .geo-feed-msg--out {
      align-self: flex-end;
      background: linear-gradient(135deg, #fff5eb 0%, #ffe8d4 100%);
      border: 1px solid rgba(217, 116, 38, 0.4);
      box-shadow: 0 1px 4px rgba(44, 62, 79, 0.08);
    }
    .geo-feed-msg--urgent {
      align-self: flex-start;
      background: #fff5f5;
      border: 1px solid rgba(185, 28, 28, 0.25);
      border-left: 4px solid #b91c1c;
      box-shadow: 0 2px 8px rgba(185, 28, 28, 0.12);
    }
    .geo-feed-msg--broadcast {
      align-self: stretch;
      max-width: 100%;
      background: #fff;
      border: 1px solid rgba(217, 116, 38, 0.35);
      border-left: 4px solid var(--rce-orange);
      box-shadow: 0 1px 6px rgba(44, 62, 79, 0.1);
    }
    .geo-feed-msg-meta {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--feed-accent-dark, var(--rce-orange-dark));
      margin-bottom: 0.25rem;
    }
    .geo-feed-msg p { margin: 0; }
    .geo-feed-msg time {
      display: block;
      font-size: 0.65rem;
      color: var(--rce-gray-mid);
      margin-top: 0.3rem;
    }
    .geo-feed-phone {
      flex: 1;
      margin: 0.65rem;
      border-radius: 14px;
      background: #1a2332;
      padding: 0.5rem;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }
    .geo-feed-messages--app {
      background: #243044;
      border-radius: 10px;
      max-height: 280px;
    }
    .geo-feed-app-bubble {
      align-self: flex-start;
      max-width: 92%;
      padding: 0.5rem 0.65rem;
      border-radius: 12px 12px 12px 4px;
      background: #2d3f56;
      color: #f0f4f8;
      font-size: 0.8rem;
      line-height: 1.35;
      white-space: pre-wrap;
      word-break: break-word;
      animation: geo-feed-msg-in 0.35s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    .geo-feed-app-bubble p { margin: 0; }
    .geo-feed-app-bubble time {
      display: block;
      font-size: 0.62rem;
      opacity: 0.65;
      margin-top: 0.25rem;
    }
    .geo-feed-app-bubble--out {
      align-self: flex-end;
      background: #3d5268;
      color: #ffe8d4;
      border-radius: 12px 12px 4px 12px;
    }
    @media (prefers-reduced-motion: reduce) {
      .geo-feed-msg,
      .geo-feed-app-bubble { animation: none; }
    }

    /* Arquitectura / canais (início) */
    .mesh-arch .mesh-steps {
      margin: 0 0 1.5rem;
      padding-left: 1.25rem;
      color: var(--rce-gray);
      font-size: 0.95rem;
      max-width: 42rem;
    }
    .mesh-arch .mesh-steps li {
      margin-bottom: 0.45rem;
    }
    .channel-diagram {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.65rem;
      padding: 1.25rem;
      background: #fff;
      border: 1px solid rgba(44, 62, 79, 0.1);
      border-radius: 10px;
      max-width: 520px;
    }
    .channel-diagram-row {
      display: flex;
      justify-content: center;
      gap: 1rem;
      width: 100%;
    }
    .channel-diagram-connector {
      width: 2px;
      height: 14px;
      background: rgba(44, 62, 79, 0.2);
      margin: 0 auto;
    }
    .channel-node {
      padding: 0.65rem 1rem;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 700;
      text-align: center;
      line-height: 1.35;
      color: var(--rce-gray-dark);
      border: 1px solid rgba(44, 62, 79, 0.12);
      background: #f8f9fa;
    }
    .channel-node span {
      display: block;
      font-weight: 500;
      font-size: 0.72rem;
      color: var(--rce-gray-mid);
      margin-top: 0.2rem;
    }
    .channel-node--nc {
      background: var(--rce-gray-dark);
      color: #fff;
      border-color: var(--rce-gray-dark);
      padding: 0.75rem 1.5rem;
    }
    .channel-node--nc span { color: rgba(255,255,255,0.8); }
    .channel-node--users {
      border-left: 4px solid var(--rce-orange);
    }
    .channel-node--staff {
      border-left: 4px solid #b91c1c;
      flex: 1;
      max-width: 200px;
    }
    .channel-node--ext {
      border-left: 4px solid #0e7490;
      flex: 1;
      max-width: 200px;
    }

    .contact-scope-list {
      text-align: left;
      max-width: 28rem;
      margin: 0 auto 1.5rem;
      padding-left: 1.2rem;
      color: var(--rce-gray);
      font-size: 0.95rem;
    }
    .contact-scope-list li {
      margin-bottom: 0.4rem;
    }

    @media print {
      .header,
      .nav-toggle,
      .geo-montra-toolbar,
      .geo-feed-preview,
      .intro,
      .footer { display: none !important; }
      .pilot-wrap,
      .public-channels-table-wrap {
        break-inside: avoid;
      }
      .public-channels-table { font-size: 9pt; }
    }

    .geo-montra-marker { background: none !important; border: none !important; }
    .geo-marker-pin {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
      border: 2px solid transparent;
    }
    .geo-marker-emoji {
      font-size: 15px;
      line-height: 1;
    }
    .geo-marker-fresh {
      background: #dcfce7;
      border-color: #16a34a;
    }
    .geo-marker-mid {
      background: #fef3c7;
      border-color: #d97706;
    }
    .geo-marker-old {
      background: #e2e8f0;
      border-color: #64748b;
      opacity: 0.92;
    }
    .geo-age-legend {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.65rem 1.25rem;
      margin: 0.5rem 0 1rem;
      font-size: 0.8rem;
      color: var(--rce-gray-mid);
    }
    .geo-age-legend[hidden] { display: none; }
    .geo-age-legend-title {
      font-weight: 700;
      color: var(--rce-gray-dark);
      margin-right: 0.25rem;
    }
    .geo-age-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }
    .geo-age-swatch {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      flex-shrink: 0;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }

    /* Footer */
    .footer {
      background: linear-gradient(180deg, #1e2d3a 0%, var(--rce-gray-dark) 100%);
      color: rgba(255,255,255,0.82);
      padding: 2.5rem 1.5rem;
      text-align: center;
      font-size: 0.9rem;
      letter-spacing: 0.02em;
      border-top: 3px solid var(--rce-orange);
    }
    .footer a { color: var(--rce-orange-light); text-decoration: none; }
    .footer a:hover { text-decoration: underline; }

    .nav a.active {
      color: var(--rce-orange);
      background: rgba(217, 116, 38, 0.08);
      border-bottom-color: var(--rce-orange);
    }
    @media (max-width: 768px) {
      .nav a.active {
        border-bottom: none;
        border-left-color: var(--rce-orange);
      }
    }

    .page-hero {
      background: linear-gradient(135deg, var(--rce-gray-dark) 0%, var(--rce-gray) 55%, #243544 100%);
      color: var(--rce-white);
      padding: clamp(2rem, 4vw, 2.75rem) 1.5rem;
      text-align: center;
      border-radius: 0 0 24px 24px;
      margin-bottom: 0;
    }
    .page-hero h1 {
      font-size: clamp(1.65rem, 4vw, 2.35rem);
      font-weight: 800;
      margin-bottom: 0.5rem;
    }
    .page-hero p {
      color: rgba(255,255,255,0.9);
      max-width: 640px;
      margin: 0 auto;
      font-size: 1.05rem;
    }

    .page-links {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
      margin-top: 2rem;
      width: 100%;
    }
    @media (max-width: 900px) {
      .page-links { grid-template-columns: 1fr; }
    }
    .page-link-card {
      display: block;
      padding: 1.5rem 1.5rem;
      background: var(--rce-white);
      border-radius: var(--radius);
      box-shadow: var(--rce-shadow-card);
      border: 1px solid rgba(44, 62, 79, 0.06);
      border-left: 4px solid var(--rce-orange);
      text-decoration: none;
      color: inherit;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .page-link-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--rce-shadow-strong);
    }
    .page-link-card h3 {
      font-size: 1.1rem;
      color: var(--rce-gray-dark);
      margin-bottom: 0.45rem;
    }
    .page-link-card p {
      font-size: 0.92rem;
      margin: 0;
      color: var(--rce-gray-mid);
      line-height: 1.55;
    }

    .geo-toolbar-group {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.5rem;
      margin-right: 0.75rem;
    }
    .geo-toolbar-label {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--rce-gray-mid);
    }
    .geo-montra-btn.period {
      border-color: var(--rce-gray-mid);
      color: var(--rce-gray-mid);
    }
    .geo-montra-btn.period.active {
      color: #fff;
    }
    .geo-montra-btn.period.tier-all.active {
      background: var(--rce-gray-dark);
      border-color: var(--rce-gray-dark);
    }
    .geo-montra-btn.period.tier-fresh.active {
      background: #16a34a;
      border-color: #15803d;
    }
    .geo-montra-btn.period.tier-mid.active {
      background: #d97706;
      border-color: #b45309;
    }
    .geo-montra-btn.period.tier-old.active {
      background: #64748b;
      border-color: #475569;
    }
    .geo-age-legend-item.is-off {
      opacity: 0.45;
      text-decoration: line-through;
    }

    main.page-main section:first-of-type {
      border-top: none;
    }

    /* ========== SOBER CLEAN (reverter: apagar até ao fim do ficheiro) ========== */
    body {
      background: #f8f9fa;
      background-image: none;
    }
    .intro-waves { display: none; }
    .intro-scene { opacity: 0.35; }
    .hero-graphic { display: none; }
    .hero {
      border-radius: 0 0 12px 12px;
      box-shadow: 0 4px 24px rgba(44, 62, 79, 0.1);
    }
    .hero-bg .hero-skyline,
    .hero-bg .hero-rural,
    .hero-bg .hero-arc,
    .hero-bg .hero-arc-orange { opacity: 0.5; }
    .sec-prose > h2::after,
    .page-home .sec-prose > h2::after { display: none; }
    .sec-prose a {
      color: var(--rce-gray-dark);
      font-weight: 500;
      text-decoration: underline;
      text-decoration-color: rgba(44, 62, 79, 0.25);
      text-underline-offset: 0.15em;
    }
    .sec-prose a:hover {
      color: var(--rce-orange-dark);
      text-decoration-color: var(--rce-orange);
    }
    .btn {
      background: var(--rce-orange);
      box-shadow: 0 2px 8px rgba(44, 62, 79, 0.12);
      font-weight: 600;
    }
    .btn:hover {
      background: var(--rce-orange-dark);
      box-shadow: 0 4px 12px rgba(44, 62, 79, 0.15);
      transform: none;
    }
    .btn-secondary {
      background: transparent;
      color: var(--rce-gray-dark);
      border: 1px solid rgba(44, 62, 79, 0.2);
      box-shadow: none;
      font-weight: 600;
    }
    .btn-secondary:hover {
      background: var(--rce-white);
      border-color: var(--rce-gray-mid);
      color: var(--rce-gray-dark);
    }
    .page-home .sec-band {
      background: #fff;
      border-top: 1px solid rgba(44, 62, 79, 0.06);
      border-bottom: none;
    }
    .channels-wrap {
      background: var(--rce-white);
      border: 1px solid rgba(44, 62, 79, 0.08);
      box-shadow: none;
      padding: 1.75rem;
    }
    .channel-item {
      box-shadow: none;
      border: 1px solid rgba(44, 62, 79, 0.06);
    }
    .page-hero {
      background: var(--rce-gray-dark);
      border-radius: 0 0 12px 12px;
      padding: clamp(1.75rem, 4vw, 2.25rem) 1.5rem;
    }
    .page-hero h1 { font-weight: 700; }
    .page-hero p { font-size: 0.98rem; opacity: 0.88; }
    .page-section-title {
      font-size: clamp(1.75rem, 3vw, 2.15rem);
      color: var(--rce-gray-dark);
      margin-bottom: 1.25rem;
      font-weight: 700;
    }
    .cmd-grid {
      display: block;
      margin-top: 1.5rem;
    }
    .cmd-card {
      background: transparent;
      border: none;
      border-top: 1px solid rgba(44, 62, 79, 0.08);
      border-radius: 0;
      box-shadow: none;
      padding: 1.5rem 0;
      margin: 0;
    }
    .cmd-card:first-child { border-top: none; padding-top: 0; }
    .cmd-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
    .cmd-types { margin-top: 0.85rem; }
    .geo-montra-btn {
      border: 1px solid rgba(44, 62, 79, 0.18);
      color: var(--rce-gray-dark);
      background: var(--rce-white);
      font-weight: 600;
      border-radius: 6px;
    }
    .geo-montra-btn.active {
      background: var(--rce-gray-dark);
      border-color: var(--rce-gray-dark);
      color: #fff;
    }
    .geo-montra-btn.sismos,
    .geo-montra-btn.outras { border-color: rgba(44, 62, 79, 0.18); color: var(--rce-gray-dark); }
    .geo-montra-btn.sismos.active,
    .geo-montra-btn.outras.active {
      background: var(--rce-gray-dark);
      border-color: var(--rce-gray-dark);
      color: #fff;
    }
    .geo-montra-btn.period.tier-all.active,
    .geo-montra-btn.period.tier-fresh.active,
    .geo-montra-btn.period.tier-mid.active,
    .geo-montra-btn.period.tier-old.active {
      background: var(--rce-gray-dark);
      border-color: var(--rce-gray-dark);
      color: #fff;
    }
    .geo-list-block--sismos h3 { color: #b91c1c; }
    .geo-list-block--incendios h3 { color: var(--rce-orange-dark); }
    .geo-list-block--outras h3 { color: #0e7490; }
    .geo-list-block--meteo h3 { color: #1d4ed8; }
    .geo-list-block--energia h3 { color: #854d0e; }
    .contact-page { padding: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
    .contact-page .lead {
      margin-bottom: 2rem;
    }
    section + section { border-top-color: rgba(44, 62, 79, 0.06); }
    .footer-legal {
      margin-top: 0.35rem;
      font-size: 0.82rem;
      color: var(--rce-gray-mid);
      letter-spacing: 0.01em;
    }
    .footer-copy {
      margin-top: 0.5rem;
      font-size: 0.88rem;
      color: var(--rce-gray-mid);
    }
    .cta-section::before,
    .cta-section::after { display: none; }
    section + section { border-top-color: rgba(44, 62, 79, 0.06); }
