/* IFIP main hub (mainWebsite Hosting) — shared shell; keep in sync across section pages. */
:root {
  --hub-bg1: #007c85;
  --hub-bg2: #335c81;
  --hub-bg3: #7d337d;
  --hub-bg4: #d11c7a;
  --hub-text: #ffffff;
  --hub-panel: rgba(255, 255, 255, 0.12);
  --hub-border: rgba(255, 255, 255, 0.35);
  --hub-focus: #fff59d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--hub-text);
  background: linear-gradient(
    135deg,
    var(--hub-bg1) 0%,
    var(--hub-bg2) 40%,
    var(--hub-bg3) 75%,
    var(--hub-bg4) 100%
  );
  display: flex;
  flex-direction: column;
}

.hub-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hub-skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  outline: 3px solid var(--hub-focus);
}

.hub-site-header {
  flex-shrink: 0;
  border-bottom: 1px solid var(--hub-border);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

.hub-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.hub-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--hub-text);
  font-size: 0.95rem;
}

.hub-brand:focus-visible {
  outline: 3px solid var(--hub-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.hub-nav a {
  color: var(--hub-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 4px;
  border-radius: 6px;
}

.hub-nav a:hover {
  text-decoration: underline;
}

.hub-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hub-nav a:focus-visible {
  outline: 3px solid var(--hub-focus);
  outline-offset: 2px;
}

.hub-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 16px 40px;
}

.hub-card {
  width: min(760px, 92vw);
  border: 1px solid var(--hub-border);
  background: var(--hub-panel);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hub-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hub-card p {
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.hub-meta {
  margin-top: 18px;
  font-size: 0.92rem;
  opacity: 0.85;
}

.hub-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hub-btn {
  display: inline-block;
  text-decoration: none;
  color: var(--hub-text);
  border: 1px solid var(--hub-border);
  background: rgba(255, 255, 255, 0.14);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}

.hub-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hub-btn:focus-visible {
  outline: 3px solid var(--hub-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Rich hub layouts (corporate home / inner pages) — keep palette from :root --- */
.hub-main--flow {
  place-items: start stretch;
  justify-items: stretch;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  align-content: start;
}

.hub-panel {
  width: 100%;
  border: 1px solid var(--hub-border);
  background: var(--hub-panel);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.hub-kicker {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.88;
  margin-bottom: 10px;
}

.hub-heading-xl {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.hub-subheading {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.hub-pathway {
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 16px 14px;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
}

.hub-pathway h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hub-pathway--current {
  border-color: var(--hub-focus);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hub-pathway-meta {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hub-btn--emphasis {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.45);
}

.hub-prose {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.95;
}

.hub-prose p {
  margin: 12px 0;
}

.hub-hero {
  text-align: center;
  padding: 12px 0 32px;
}

.hub-orbit-wrap {
  position: relative;
  width: min(520px, 92vw);
  height: min(520px, 92vw);
  margin: 0 auto 28px;
}

.hub-orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--hub-border);
  border-radius: 50%;
  pointer-events: none;
}

.hub-orbit-ring--inner {
  inset: 22%;
}

.hub-wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3rem, 11vw, 5.5rem);
  font-weight: 200;
  letter-spacing: 0.28em;
  margin: 0;
  line-height: 1;
}

.hub-tagline {
  margin-top: 16px;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1.7;
  opacity: 0.9;
}

.hub-pillar {
  position: absolute;
  left: 50%;
  top: 50%;
  --r: min(38vw, 190px);
  --a: 0deg;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r)))
    rotate(calc(-1 * var(--a)));
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.82;
  max-width: 9rem;
  text-align: center;
  line-height: 1.25;
}

.hub-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 800px) {
  .hub-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.hub-council {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}

.hub-council h4 {
  margin: 0 0 12px;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hub-council ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-council li {
  margin: 8px 0;
  font-weight: 700;
}

.hub-events-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-event-card {
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
}

.hub-event-card h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.hub-event-meta {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.hub-event-cta {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  border-bottom: 2px solid var(--hub-border);
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.hub-event-cta:hover {
  border-bottom-color: var(--hub-focus);
}

.hub-footer {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hub-border);
}

.hub-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .hub-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hub-footer h5 {
  margin: 0 0 12px;
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hub-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-block;
  margin: 6px 0;
  border-bottom: 1px solid transparent;
}

.hub-footer a:hover {
  border-bottom-color: var(--hub-focus);
}

/* About: services strip */
.hub-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--hub-border);
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
}

.hub-service-tile {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 14px;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hub-service-tile svg {
  opacity: 0.9;
}

.hub-service-tile h3 {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* About: timeline (simplified) */
.hub-timeline {
  margin-top: 20px;
  border-left: 2px solid var(--hub-border);
  padding-left: 18px;
}

.hub-timeline-item {
  margin-bottom: 22px;
  position: relative;
}

.hub-timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--hub-border);
}

.hub-timeline-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}

.hub-congress {
  text-align: center;
  margin-top: 28px;
}

.hub-congress a {
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--hub-border);
  padding-bottom: 4px;
}

.hub-congress a:hover {
  border-bottom-color: var(--hub-focus);
}

.hub-stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Header sign-in + members panel (injected on hub.css pages) */
.hub-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.hub-auth-mount {
  flex-shrink: 0;
}

.hub-auth-signin-btn {
  padding: 8px 12px;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--hub-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.hub-auth-signin-btn:hover,
.hub-auth-signin-btn:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid var(--hub-focus);
  outline-offset: 2px;
}

.hub-members-mount {
  flex-shrink: 0;
}

.hub-members-panel-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--hub-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.hub-members-panel-btn--fellow {
  border-color: #f5d78e;
  background: rgba(255, 255, 255, 0.22);
}

.hub-members-panel-btn:hover,
.hub-members-panel-btn:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: 2px solid var(--hub-focus);
  outline-offset: 2px;
}

.hub-members-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  min-width: min(16rem, calc(100vw - 24px));
  padding: 10px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.hub-members-menu-heading {
  margin: 0;
  padding: 4px 14px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.hub-members-menu-heading--sub {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.hub-members-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-members-menu-list a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: #0f172a;
  text-decoration: none;
}

.hub-members-menu-list a:hover,
.hub-members-menu-list a:focus-visible {
  background: rgba(184, 134, 11, 0.12);
  outline: none;
}

.hub-members-menu-list a.is-active,
.hub-members-menu-list a[aria-current="page"] {
  font-weight: 700;
  background: rgba(184, 134, 11, 0.16);
}

.hub-members-panel {
  position: relative;
}

.hub-auth-user {
  position: relative;
}

.hub-auth-avatar-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
}

.hub-auth-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  min-width: 12rem;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.hub-auth-menu-name {
  margin: 0;
  padding: 6px 14px 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

.hub-auth-menu-link,
.hub-auth-menu-signout {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  color: #0f172a;
  cursor: pointer;
  text-decoration: none;
}

.hub-auth-menu-link:hover,
.hub-auth-menu-signout:hover {
  background: rgba(184, 134, 11, 0.12);
}
