/* ==========================================================================
   1. Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..600;1,9..144,400..600&family=Space+Grotesk:wght@400;500;600&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ==========================================================================
   2. Design Tokens
   ========================================================================== */
:root {
  --ink: #0B0E14;
  --porcelain: #F3EFE7;
  --teal: #1B6B6B;
  --copper: #D9622B;
  --slate: #8C94A6;
  --lattice: #16202B;

  --font-display: 'Fraunces', serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
}

/* ==========================================================================
   3. Global Reset
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   4. Base Scoped Reset
   ========================================================================== */
#rest-app, #rest-app * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#rest-app img {
  max-width: 100%;
  height: auto;
  display: block;
}

#rest-app iframe {
  border: 0;
}

/* ==========================================================================
   6. #rest-app Base Rule
   ========================================================================== */
#rest-app {
  background-color: var(--ink) !important;
  color: var(--porcelain) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  position: relative !important;
  overflow-x: hidden !important;
  min-height: 100vh !important;
}

/* ==========================================================================
   5. WordPress Compat Reset Block
   ========================================================================== */
article .entry-content #rest-app {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--porcelain) !important;
  font-family: var(--font-body) !important;
}

/* ==========================================================================
   6. Global Utilities (scoped under #rest-app)
   ========================================================================== */
#rest-app .rest-shell {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100% !important;
}

#rest-app .rest-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
}

#rest-app .rest-col {
  padding-left: 12px !important;
  padding-right: 12px !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

#rest-app .rest-wrap {
  position: relative !important;
  z-index: 2 !important;
}

#rest-app .rest-block {
  display: block !important;
}

#rest-app .rest-tag {
  display: inline-block !important;
  font-family: var(--font-mono) !important;
  font-size: 0.8125rem !important;
  line-height: 1.2 !important;
  color: var(--copper) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  border: 1px solid var(--copper) !important;
  padding: 4px 8px !important;
  margin-bottom: 16px !important;
}

#rest-app .rest-badge {
  display: inline-flex !important;
  flex-direction: column !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  color: var(--porcelain) !important;
  background-color: var(--lattice) !important;
  border: 1px dashed var(--teal) !important;
  padding: 16px 20px !important;
  border-radius: 4px !important;
  height: 100% !important;
}

#rest-app .rest-badge-title {
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
  color: var(--teal) !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

#rest-app .rest-badge-desc {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: var(--slate) !important;
}

#rest-app .rest-section-label {
  font-family: var(--font-mono) !important;
  font-size: 0.8125rem !important;
  line-height: 1.2 !important;
  color: var(--teal) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 8px !important;
  display: block !important;
}

#rest-app .rest-section-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  line-height: 1.2 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
}

#rest-app .rest-section-sub {
  font-family: var(--font-body) !important;
  font-size: 1.125rem !important;
  line-height: 1.6 !important;
  color: var(--slate) !important;
  margin-bottom: 32px !important;
  max-width: 800px !important;
}

#rest-app .rest-divider-glyph {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: var(--space-lg) 0 !important;
  width: 100% !important;
  height: 24px !important;
}

#rest-app .rest-divider-line {
  flex-grow: 1 !important;
  height: 1px !important;
  background-color: rgba(140, 148, 166, 0.2) !important;
}

#rest-app .rest-divider-symbol {
  width: 12px !important;
  height: 12px !important;
  border: 1px solid var(--teal) !important;
  background-color: var(--ink) !important;
  transform: rotate(45deg) !important;
  margin: 0 16px !important;
}

#rest-app .rest-reveal {
  opacity: 0 !important;
  transform: translateY(16px) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#rest-app .rest-reveal.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#rest-app .rest-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  color: var(--porcelain) !important;
  text-decoration: none !important;
  padding: 12px 24px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#rest-app .rest-btn-primary {
  background-color: var(--teal) !important;
  border: 1px solid var(--teal) !important;
}

#rest-app .rest-btn-primary:hover {
  background-color: transparent !important;
  color: var(--teal) !important;
  box-shadow: 0 0 15px rgba(27, 107, 107, 0.3) !important;
}

#rest-app .rest-btn-secondary {
  background-color: transparent !important;
  border: 1px solid var(--slate) !important;
  color: var(--porcelain) !important;
}

#rest-app .rest-btn-secondary:hover {
  border-color: var(--copper) !important;
  color: var(--copper) !important;
  box-shadow: 0 0 15px rgba(217, 98, 43, 0.2) !important;
}

/* Light Section Button Contrast Overrides */
#rest-app .rest-section-light .rest-btn-secondary {
  color: var(--ink) !important;
  border-color: rgba(11, 14, 20, 0.4) !important;
  background-color: transparent !important;
}

#rest-app .rest-section-light .rest-btn-secondary:hover {
  color: var(--copper) !important;
  border-color: var(--copper) !important;
  background-color: rgba(217, 98, 43, 0.05) !important;
  box-shadow: 0 0 15px rgba(217, 98, 43, 0.15) !important;
}

#rest-app .rest-section-light .rest-btn-primary:hover {
  background-color: rgba(27, 107, 107, 0.05) !important;
  color: var(--teal) !important;
}

/* ==========================================================================
   7. Component-level Rules
   ========================================================================== */

/* --- Section Spacing --- */
#rest-app .rest-section {
  padding-top: var(--space-xl) !important;
  padding-bottom: var(--space-xl) !important;
}

/* --- Sticky Top Navigation Bar --- */
#rest-app .rest-section-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background-color: rgba(11, 14, 20, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid rgba(27, 107, 107, 0.2) !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

#rest-app .rest-nav-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#rest-app .rest-nav-logo {
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  line-height: 1.2 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#rest-app .rest-nav-logo-icon {
  width: 24px !important;
  height: 24px !important;
  border: 2px solid var(--teal) !important;
  transform: rotate(45deg) !important;
  flex-shrink: 0 !important;
}

#rest-app .rest-nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

#rest-app .rest-nav-links .rest-btn {
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
}

#rest-app .rest-nav-link {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  color: var(--slate) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  font-weight: 500 !important;
}

#rest-app .rest-nav-link:hover {
  color: var(--porcelain) !important;
}

#rest-app .rest-nav-toggle {
  display: none !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  position: relative !important;
  z-index: 1100 !important;
}

#rest-app .rest-nav-toggle-bar {
  display: block !important;
  width: 24px !important;
  height: 2px !important;
  background-color: var(--porcelain) !important;
  position: absolute !important;
  left: 4px !important;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease !important;
}

#rest-app .rest-nav-toggle-bar:nth-child(1) {
  top: 9px !important;
}

#rest-app .rest-nav-toggle-bar:nth-child(2) {
  top: 15px !important;
}

#rest-app .rest-nav-toggle-bar:nth-child(3) {
  top: 21px !important;
}

#rest-app .rest-nav-toggle.open .rest-nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) !important;
  top: 15px !important;
}

#rest-app .rest-nav-toggle.open .rest-nav-toggle-bar:nth-child(2) {
  opacity: 0 !important;
}

#rest-app .rest-nav-toggle.open .rest-nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) !important;
  top: 15px !important;
}

/* --- Mobile Menu Drawer & Overlay (Created dynamically by JS) --- */
#rest-app .rest-drawer-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(11, 14, 20, 0.8) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 1001 !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}

#rest-app .rest-drawer-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#rest-app .rest-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 280px !important;
  height: 100% !important;
  background-color: var(--ink) !important;
  border-left: 1px solid rgba(27, 107, 107, 0.2) !important;
  z-index: 1002 !important;
  padding: 80px 24px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#rest-app .rest-drawer.open {
  transform: translateX(0) !important;
}

#rest-app .rest-drawer-link {
  font-family: var(--font-body) !important;
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  color: var(--porcelain) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(140, 148, 166, 0.1) !important;
  padding-bottom: 12px !important;
  transition: color 0.2s ease !important;
}

#rest-app .rest-drawer-link:hover {
  color: var(--teal) !important;
}

/* --- Hero Section & 3D Crystal Lattice --- */
#rest-app .rest-section-hero {
  position: relative !important;
  min-height: calc(100vh - 70px) !important;
  display: flex !important;
  align-items: center !important;
  padding-top: var(--space-md) !important;
  padding-bottom: var(--space-md) !important;
}

#rest-app .rest-hero-grid {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
}

#rest-app .rest-hero-content {
  flex: 0 0 70% !important;
  position: relative !important;
  z-index: 10 !important;
}

#rest-app .rest-hero-visual {
  flex: 0 0 30% !important;
  height: 500px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

#rest-app .rest-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  line-height: 1.1 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
}

#rest-app .rest-hero-sub {
  font-family: var(--font-body) !important;
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
  color: var(--slate) !important;
  margin-bottom: 24px !important;
}

#rest-app .rest-hero-meta {
  font-family: var(--font-mono) !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  color: var(--teal) !important;
  margin-bottom: 32px !important;
}

#rest-app .rest-hero-ctas {
  display: flex !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 40px !important;
}

/* Countdown Clock */
#rest-app .rest-countdown-wrap {
  background-color: var(--lattice) !important;
  border: 1px solid rgba(27, 107, 107, 0.2) !important;
  padding: 20px !important;
  border-radius: 4px !important;
  max-width: 480px !important;
}

#rest-app .rest-countdown-label {
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  color: var(--slate) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 12px !important;
  display: block !important;
}

#rest-app .rest-countdown {
  display: flex !important;
  gap: 16px !important;
}

#rest-app .rest-countdown-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 1 1 0% !important;
}

#rest-app .rest-countdown-digits {
  font-family: var(--font-mono) !important;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
  line-height: 1 !important;
  color: var(--copper) !important;
  font-weight: 700 !important;
}

#rest-app .rest-countdown-unit {
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  color: var(--slate) !important;
  text-transform: uppercase !important;
  margin-top: 4px !important;
}

/* Signature 3D Lattice Styling */
#rest-app .rest-lattice-viewport {
  width: 400px !important;
  height: 400px !important;
  perspective: 800px !important;
  position: relative !important;
}

#rest-app .rest-lattice-cell {
  width: 200px !important;
  height: 200px !important;
  position: absolute !important;
  left: 100px !important;
  top: 100px !important;
  transform-style: preserve-3d !important;
}

#rest-app .rest-lattice-face {
  position: absolute !important;
  width: 200px !important;
  height: 200px !important;
  border: 1px solid rgba(27, 107, 107, 0.25) !important;
  background-color: rgba(11, 14, 20, 0.4) !important;
  transform-style: preserve-3d !important;
}

/* Face positions in 3D Space */
#rest-app .rest-lattice-face-front {
  transform: translateZ(100px) !important;
}

#rest-app .rest-lattice-face-back {
  transform: translateZ(-100px) rotateY(180deg) !important;
}

#rest-app .rest-lattice-face-left {
  transform: translateX(-100px) rotateY(-90deg) !important;
}

#rest-app .rest-lattice-face-right {
  transform: translateX(100px) rotateY(90deg) !important;
}

#rest-app .rest-lattice-face-top {
  transform: translateY(-100px) rotateX(90deg) !important;
}

#rest-app .rest-lattice-face-bottom {
  transform: translateY(100px) rotateX(-90deg) !important;
}

/* Vertices / Corner Nodes */
#rest-app .rest-lattice-node {
  position: absolute !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: var(--teal) !important;
  box-shadow: 0 0 10px var(--teal) !important;
  border: 1px solid var(--porcelain) !important;
  transform: translate(-50%, -50%) !important;
}

#rest-app .rest-lattice-node-tl {
  left: 0 !important;
  top: 0 !important;
}

#rest-app .rest-lattice-node-tr {
  left: 100% !important;
  top: 0 !important;
}

#rest-app .rest-lattice-node-bl {
  left: 0 !important;
  top: 100% !important;
}

#rest-app .rest-lattice-node-br {
  left: 100% !important;
  top: 100% !important;
}

/* Crystal lattice planes (Miller Index planes) */
#rest-app .rest-lattice-plane {
  position: absolute !important;
  width: 200px !important;
  height: 282.84px !important;
  /* 200 * sqrt(2) to reach corners diagonal */
  left: 0 !important;
  top: -41.42px !important;
  /* vertical centering offset: (282.84 - 200) / 2 */
  border: 1px dashed rgba(217, 98, 43, 0.4) !important;
  background-color: rgba(217, 98, 43, 0.05) !important;
  pointer-events: none !important;
  transform-style: preserve-3d !important;
}

#rest-app .rest-lattice-plane-1 {
  transform: rotateX(45deg) !important;
}

#rest-app .rest-lattice-plane-2 {
  transform: rotateX(-45deg) !important;
}

/* Central core node */
#rest-app .rest-lattice-center-node {
  position: absolute !important;
  left: 100px !important;
  top: 100px !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background-color: var(--copper) !important;
  box-shadow: 0 0 12px var(--copper) !important;
  border: 1px solid var(--porcelain) !important;
  transform: translate3d(-50%, -50%, 0) !important;
}

/* --- About the Conference --- */
#rest-app .rest-about-content {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

#rest-app .rest-about-copy {
  font-family: var(--font-body) !important;
  font-size: 1.15rem !important;
  line-height: 1.7 !important;
  color: var(--slate) !important;
  margin-bottom: 24px !important;
}

/* --- Sub-Themes --- */
#rest-app .rest-themes-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  margin-top: 32px !important;
}

#rest-app .rest-theme-card {
  background-color: var(--lattice) !important;
  border: 1px solid rgba(27, 107, 107, 0.2) !important;
  padding: 28px !important;
  border-radius: 4px !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer !important;
  transform-style: preserve-3d !important;
  perspective: 1000px !important;
}

#rest-app .rest-theme-card:hover {
  border-color: var(--teal) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(27, 107, 107, 0.15) !important;
}

#rest-app .rest-theme-card-inner {
  transform: translateZ(20px) !important;
}

#rest-app .rest-theme-card-icon {
  font-size: 2rem !important;
  line-height: 1 !important;
  margin-bottom: 16px !important;
  display: block !important;
}

#rest-app .rest-theme-card-title {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  line-height: 1.4 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

#rest-app .rest-theme-card-desc {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: var(--slate) !important;
}

#rest-app .rest-themes-footnote {
  text-align: center !important;
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: var(--slate) !important;
  margin-top: 32px !important;
}

/* --- Submission Guidelines --- */
#rest-app .rest-guidelines-list {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

#rest-app .rest-guideline-step {
  display: flex !important;
  gap: 24px !important;
  background-color: var(--lattice) !important;
  border: 1px solid rgba(140, 148, 166, 0.1) !important;
  padding: 24px !important;
  border-radius: 4px !important;
  align-items: flex-start !important;
}

#rest-app .rest-guideline-num {
  font-family: var(--font-mono) !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  color: var(--copper) !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}

#rest-app .rest-guideline-block {
  flex-grow: 1 !important;
}

#rest-app .rest-guideline-title {
  font-family: var(--font-display) !important;
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

#rest-app .rest-guideline-desc {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: var(--slate) !important;
  margin-bottom: 12px !important;
}

#rest-app .rest-guideline-actions {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

#rest-app .rest-guideline-actions .rest-btn {
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
}

#rest-app .rest-guideline-todo {
  display: inline-block !important;
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  color: var(--slate) !important;
  background-color: rgba(140, 148, 166, 0.1) !important;
  padding: 2px 6px !important;
  border-radius: 2px !important;
  margin-top: 4px !important;
}

/* --- Conference Committee --- */
#rest-app .rest-committee-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-md) !important;
  margin-top: 32px !important;
}

#rest-app .rest-committee-flex-group {
  display: flex !important;
  flex-direction: row !important;
  gap: var(--space-md) !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

#rest-app .rest-subcommittee-section {
  background-color: var(--lattice) !important;
  border: 1px solid rgba(27, 107, 107, 0.15) !important;
  padding: 28px 24px !important;
  border-radius: 8px !important;
  width: 100% !important;
  box-shadow: inset 0 0 20px rgba(11, 14, 20, 0.2) !important;
}

#rest-app .rest-subcommittee-title {
  font-family: var(--font-display) !important;
  font-size: 1.35rem !important;
  line-height: 1.3 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 24px !important;
  border-bottom: 1px solid rgba(27, 107, 107, 0.2) !important;
  padding-bottom: 10px !important;
  text-align: left !important;
  letter-spacing: 0.02em !important;
}

#rest-app .rest-committee-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 24px !important;
  justify-content: center !important;
}

#rest-app .rest-committee-card {
  background: rgba(11, 14, 20, 0.65) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(27, 107, 107, 0.15) !important;
  padding: 24px 20px !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: visible !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  width: 100% !important;
  max-width: 280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform-style: preserve-3d !important;
  perspective: 1000px !important;
}

#rest-app .rest-committee-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--teal), var(--copper)) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

#rest-app .rest-committee-card:hover {
  border-color: rgba(27, 107, 107, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(27, 107, 107, 0.2) !important;
}

#rest-app .rest-committee-card:hover::before {
  opacity: 1 !important;
}

#rest-app .rest-committee-img {
  width: 96px !important;
  height: 96px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 2px solid var(--teal) !important;
  padding: 4px !important;
  background-color: var(--ink) !important;
  margin-top: 20px !important;
  margin-bottom: 16px !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
}

#rest-app .rest-committee-card:hover .rest-committee-img {
  transform: scale(1.05) rotate(2deg) translateZ(30px) !important;
  border-color: var(--copper) !important;
}

#rest-app .rest-committee-img-placeholder {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  background-color: rgba(140, 148, 166, 0.1) !important;
  border: 2px dashed var(--slate) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  color: var(--slate) !important;
  margin-top: 20px !important;
  margin-bottom: 16px !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#rest-app .rest-committee-card:hover .rest-committee-img-placeholder {
  transform: scale(1.05) translateZ(30px) !important;
  border-color: var(--copper) !important;
  background-color: rgba(217, 98, 43, 0.1) !important;
}

#rest-app .rest-committee-ribbon {
  --f: .4em !important;
  --r: .7em !important;
  
  position: absolute !important;
  top: 16px !important;
  left: calc(-1 * var(--f)) !important;
  right: auto !important;
  width: auto !important;
  background-color: var(--copper) !important;
  color: var(--porcelain) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 3px 12px !important;
  padding-left: 10px !important;
  padding-right: 14px !important;
  text-indent: 0 !important;
  line-height: 1.8 !important;
  border-bottom: var(--f) solid rgba(0, 0, 0, 0.4) !important;
  border-right: var(--r) solid transparent !important;
  clip-path: polygon(
    calc(100% - var(--r)) 0,
    0 0,
    0 calc(100% - var(--f)),
    var(--f) 100%,
    var(--f) calc(100% - var(--f)),
    calc(100% - var(--r)) calc(100% - var(--f)),
    100% calc(50% - var(--f)/2)
  ) !important;
  transform: none !important;
  z-index: 10 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
}

#rest-app .rest-committee-card:hover .rest-committee-ribbon {
  background-color: var(--teal) !important;
  border-bottom-color: rgba(0, 0, 0, 0.55) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25) !important;
  transform: translateZ(35px) !important;
}

#rest-app .rest-committee-name {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  line-height: 1.4 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
  transition: all 0.3s ease !important;
}

#rest-app .rest-committee-card:hover .rest-committee-name {
  color: var(--copper) !important;
  transform: translateZ(20px) !important;
}

#rest-app .rest-committee-card > .rest-committee-name:first-child {
  margin-top: 20px !important;
}

#rest-app .rest-committee-title {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
  color: var(--slate) !important;
  margin-bottom: 16px !important;
  flex-grow: 1 !important;
  transition: transform 0.3s ease !important;
}

#rest-app .rest-committee-card:hover .rest-committee-title {
  transform: translateZ(12px) !important;
}

#rest-app .rest-committee-contact {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  margin-top: auto !important;
  padding-top: 8px !important;
  transition: transform 0.3s ease !important;
}

#rest-app .rest-committee-card:hover .rest-committee-contact {
  transform: translateZ(22px) !important;
}

#rest-app .rest-committee-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background-color: rgba(27, 107, 107, 0.1) !important;
  border: 1px solid rgba(27, 107, 107, 0.25) !important;
  border-radius: 50% !important;
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--teal) !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#rest-app .rest-committee-link:hover {
  background-color: var(--copper) !important;
  border-color: var(--copper) !important;
  color: var(--porcelain) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(217, 98, 43, 0.3) !important;
}

#rest-app .rest-committee-names-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 12px !important;
}

#rest-app .rest-committee-name-card {
  background-color: rgba(11, 14, 20, 0.6) !important;
  border: 1px solid rgba(27, 107, 107, 0.1) !important;
  padding: 14px 18px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#rest-app .rest-committee-name-card:hover {
  border-color: rgba(27, 107, 107, 0.4) !important;
  background-color: var(--lattice) !important;
  transform: translateX(4px) !important;
}

#rest-app .rest-committee-name-dot {
  width: 6px !important;
  height: 6px !important;
  background-color: var(--copper) !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

#rest-app .rest-committee-name-text {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  color: var(--porcelain) !important;
  font-weight: 500 !important;
}



/* --- Venue Section --- */
#rest-app .rest-venue-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px !important;
  margin-top: 32px !important;
}

#rest-app .rest-venue-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

#rest-app .rest-venue-details {
  background-color: var(--lattice) !important;
  border: 1px solid rgba(27, 107, 107, 0.15) !important;
  padding: 28px !important;
  border-radius: 4px !important;
}

#rest-app .rest-venue-name {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  line-height: 1.3 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

#rest-app .rest-venue-tagline {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: var(--slate) !important;
  margin-bottom: 16px !important;
}

#rest-app .rest-venue-address {
  font-family: var(--font-mono) !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  color: var(--teal) !important;
}

#rest-app .rest-venue-facilities-title,
#rest-app .rest-venue-sub-title {
  font-family: var(--font-display) !important;
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

#rest-app .rest-venue-facilities {
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-left: 8px !important;
}

#rest-app .rest-venue-facility-item {
  position: relative !important;
  padding-left: 24px !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
  color: var(--slate) !important;
}

#rest-app .rest-venue-facility-item::before {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 8px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background-color: var(--teal) !important;
}

#rest-app .rest-venue-accommodation,
#rest-app .rest-venue-transport {
  background-color: var(--lattice) !important;
  border: 1px solid rgba(140, 148, 166, 0.1) !important;
  padding: 24px !important;
  border-radius: 4px !important;
}

#rest-app .rest-venue-accommodation-text,
#rest-app .rest-venue-transport-text {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: var(--slate) !important;
}

#rest-app .rest-venue-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 400px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  border: 1px solid rgba(27, 107, 107, 0.2) !important;
}

#rest-app .rest-venue-map iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 400px !important;
}

/* --- Proceedings & Publications --- */
#rest-app .rest-proceedings-container {
  position: relative !important;
  margin-top: 32px !important;
}

#rest-app .rest-proceedings-scroll {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  justify-content: center !important;
  padding-top: 12px !important;
  padding-bottom: 24px !important;
  margin-top: -12px !important;
}

#rest-app .rest-proceedings-scroll::-webkit-scrollbar {
  display: none !important;
  /* Chrome/Safari */
}

#rest-app .rest-proceedings-card {
  flex: 1 1 320px !important;
  max-width: 380px !important;
  background: linear-gradient(135deg, rgba(22, 32, 43, 0.75), rgba(11, 14, 20, 0.95)) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(27, 107, 107, 0.15) !important;
  padding: 28px !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 270px !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

#rest-app .rest-proceedings-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--teal), var(--copper)) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  z-index: 2 !important;
}

#rest-app .rest-proceedings-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(27, 107, 107, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(27, 107, 107, 0.15) !important;
}

#rest-app .rest-proceedings-card:hover::before {
  opacity: 1 !important;
}

#rest-app .rest-proceedings-badge-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 18px !important;
}

#rest-app .rest-proceedings-tag {
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  background-color: rgba(27, 107, 107, 0.15) !important;
  color: var(--teal) !important;
  border: 1px solid rgba(27, 107, 107, 0.3) !important;
}

#rest-app .rest-proceedings-icon {
  font-size: 1.1rem !important;
  color: var(--copper) !important;
  opacity: 0.8 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, opacity 0.3s ease !important;
}

#rest-app .rest-proceedings-card:hover .rest-proceedings-icon {
  transform: scale(1.15) !important;
  color: var(--teal) !important;
  opacity: 1 !important;
}

#rest-app .rest-proceedings-header {
  margin-bottom: 20px !important;
}

#rest-app .rest-proceedings-title {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  line-height: 1.4 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

#rest-app .rest-proceedings-meta {
  font-family: var(--font-mono) !important;
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
  color: var(--copper) !important;
}

#rest-app .rest-proceedings-card .rest-btn {
  align-self: flex-start !important;
  font-size: 0.85rem !important;
  padding: 8px 16px !important;
}

/* --- Important Dates --- */
#rest-app .rest-dates-wrap {
  margin-top: 48px !important;
  position: relative !important;
}

/* Desktop Timeline Layout */
#rest-app .rest-timeline {
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
  position: relative !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

#rest-app .rest-timeline::before {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  bottom: 8px !important;
  left: 110px !important;
  width: 2px !important;
  background: linear-gradient(to bottom, var(--teal), rgba(27, 107, 107, 0.2) 80%, rgba(217, 98, 43, 0.1)) !important;
  z-index: 1 !important;
}

#rest-app .rest-timeline-node {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 40px !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
}

#rest-app .rest-timeline-node::before {
  content: "" !important;
  position: absolute !important;
  left: 106px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: var(--porcelain) !important;
  border: 2px solid var(--slate) !important;
  z-index: 3 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

#rest-app .rest-timeline-node:hover::before {
  transform: translateY(-50%) scale(1.3) !important;
}

#rest-app .rest-timeline-node.rest-node-active::before {
  border-color: var(--teal) !important;
  background-color: var(--teal) !important;
  box-shadow: 0 0 0 4px rgba(27, 107, 107, 0.2), 0 0 10px var(--teal) !important;
}

#rest-app .rest-timeline-node.rest-node-today::before {
  border-color: var(--copper) !important;
  background-color: var(--copper) !important;
  box-shadow: 0 0 0 4px rgba(217, 98, 43, 0.25), 0 0 10px var(--copper) !important;
}

#rest-app .rest-timeline-calendar {
  width: 90px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}

#rest-app .rest-calendar-day {
  font-family: var(--font-mono) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: var(--slate) !important;
  transition: all 0.3s ease !important;
}

#rest-app .rest-calendar-month {
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: rgba(140, 148, 166, 0.6) !important;
  transition: all 0.3s ease !important;
}

#rest-app .rest-timeline-node.rest-node-active .rest-calendar-day {
  color: var(--teal) !important;
}

#rest-app .rest-timeline-node.rest-node-active .rest-calendar-month {
  color: var(--teal) !important;
}

#rest-app .rest-timeline-node.rest-node-today .rest-calendar-day {
  color: var(--copper) !important;
  animation: rest-timeline-pulse 1.6s infinite !important;
}

#rest-app .rest-timeline-node.rest-node-today .rest-calendar-month {
  color: var(--copper) !important;
}

@keyframes rest-timeline-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); text-shadow: 0 0 8px rgba(217, 98, 43, 0.3); }
  100% { transform: scale(1); }
}

#rest-app .rest-timeline-info {
  flex-grow: 1 !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(27, 107, 107, 0.15) !important;
  padding: 20px 24px !important;
  border-radius: 8px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 15px rgba(11, 14, 20, 0.05) !important;
}

#rest-app .rest-timeline-info:hover {
  transform: translateX(6px) !important;
  border-color: var(--teal) !important;
  background-color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(11, 14, 20, 0.08) !important;
}

#rest-app .rest-timeline-node.rest-node-active .rest-timeline-info {
  border-color: rgba(27, 107, 107, 0.3) !important;
  background-color: rgba(27, 107, 107, 0.04) !important;
}

#rest-app .rest-timeline-node.rest-node-today .rest-timeline-info {
  border-color: rgba(217, 98, 43, 0.45) !important;
  background-color: rgba(217, 98, 43, 0.05) !important;
  box-shadow: 0 4px 20px rgba(217, 98, 43, 0.08) !important;
}

#rest-app .rest-timeline-label {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  text-align: left !important;
  margin: 0 !important;
}

#rest-app .rest-timeline-status {
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: 1px solid rgba(140, 148, 166, 0.2) !important;
  background-color: rgba(140, 148, 166, 0.1) !important;
  color: var(--slate) !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
}

#rest-app .rest-timeline-node.rest-node-active .rest-timeline-status {
  border-color: rgba(27, 107, 107, 0.4) !important;
  background-color: rgba(27, 107, 107, 0.15) !important;
  color: var(--teal) !important;
}

#rest-app .rest-timeline-node.rest-node-today .rest-timeline-status {
  border-color: rgba(217, 98, 43, 0.5) !important;
  background-color: rgba(217, 98, 43, 0.15) !important;
  color: var(--copper) !important;
}

#rest-app .rest-dates-note {
  text-align: center !important;
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: var(--slate) !important;
  margin-top: 32px !important;
}

/* --- Registration Section --- */
#rest-app .rest-registration-container {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 40px !important;
  margin-top: 32px !important;
}

#rest-app .rest-registration-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
}

#rest-app .rest-registration-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background-color: var(--lattice) !important;
  border: 1px solid rgba(27, 107, 107, 0.2) !important;
}

#rest-app .rest-registration-table th,
#rest-app .rest-registration-table td {
  padding: 16px 20px !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(140, 148, 166, 0.1) !important;
}

#rest-app .rest-registration-table th {
  background-color: rgba(27, 107, 107, 0.1) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
}

#rest-app .rest-registration-table td {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  color: var(--slate) !important;
}

#rest-app .rest-registration-table td.rest-table-cat {
  color: var(--porcelain) !important;
  font-weight: 500 !important;
}

#rest-app .rest-registration-table td.rest-table-price {
  font-family: var(--font-mono) !important;
  color: var(--copper) !important;
}

#rest-app .rest-payment-box {
  background-color: var(--lattice) !important;
  border: 1px solid rgba(27, 107, 107, 0.2) !important;
  padding: 28px !important;
  border-radius: 4px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

#rest-app .rest-payment-title {
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  line-height: 1.3 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
}

#rest-app .rest-payment-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#rest-app .rest-payment-row {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

#rest-app .rest-payment-label {
  font-family: var(--font-body) !important;
  color: var(--slate) !important;
}

#rest-app .rest-payment-val {
  font-family: var(--font-mono) !important;
  color: var(--porcelain) !important;
  font-weight: 500 !important;
}

#rest-app .rest-payment-val-highlight {
  color: var(--copper) !important;
}

#rest-app .rest-registration-inclusions {
  border-top: 1px solid rgba(140, 148, 166, 0.1) !important;
  padding-top: 16px !important;
}

#rest-app .rest-inclusions-title {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.3 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}

#rest-app .rest-inclusions-list {
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

#rest-app .rest-inclusion-item {
  position: relative !important;
  padding-left: 20px !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: var(--slate) !important;
}

#rest-app .rest-inclusion-item::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: var(--teal) !important;
  font-weight: bold !important;
}

#rest-app .rest-registration-note {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: var(--slate) !important;
  font-style: italic !important;
  margin-top: 8px !important;
}

/* --- About REST Labs --- */
#rest-app .rest-about-labs-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 40px !important;
  align-items: start !important;
}

#rest-app .rest-labs-text-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

#rest-app .rest-labs-desc {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  color: var(--slate) !important;
}

#rest-app .rest-labs-badges {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

/* --- Previous Conferences --- */
#rest-app .rest-section-previous {
  background-color: var(--lattice) !important;
}

#rest-app .rest-previous-card {
  background-color: var(--ink) !important;
  border: 1px solid rgba(27, 107, 107, 0.2) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  display: flex !important;
  margin-top: 32px !important;
}

#rest-app .rest-previous-img-wrap {
  flex: 0 0 40% !important;
  min-height: 250px !important;
  position: relative !important;
  background-color: rgba(27, 107, 107, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#rest-app .rest-previous-placeholder-svg {
  width: 60px !important;
  height: 60px !important;
  fill: none !important;
  stroke: var(--teal) !important;
  stroke-width: 1.5 !important;
}

#rest-app .rest-previous-content {
  flex: 0 0 60% !important;
  padding: 36px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

#rest-app .rest-previous-card-title {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  line-height: 1.3 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

#rest-app .rest-previous-card-desc {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: var(--slate) !important;
  margin-bottom: 24px !important;
}

/* --- Closing Block (Footer equivalent) --- */
#rest-app .rest-section-closing {
  border-top: 1px solid rgba(140, 148, 166, 0.1) !important;
  padding-top: var(--space-lg) !important;
  padding-bottom: var(--space-md) !important;
}

#rest-app .rest-closing-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr !important;
  gap: 48px !important;
  margin-bottom: 48px !important;
}

#rest-app .rest-closing-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

#rest-app .rest-closing-title {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  color: var(--porcelain) !important;
  font-weight: 600 !important;
}

#rest-app .rest-closing-summary {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: var(--slate) !important;
}

#rest-app .rest-closing-col-title {
  font-family: var(--font-mono) !important;
  font-size: 0.8125rem !important;
  line-height: 1.2 !important;
  color: var(--teal) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 12px !important;
  font-weight: 600 !important;
}

#rest-app .rest-closing-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  list-style: none !important;
}

#rest-app .rest-closing-link-item a {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
  color: var(--slate) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

#rest-app .rest-closing-link-item a:hover {
  color: var(--porcelain) !important;
}

#rest-app .rest-closing-contact {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#rest-app .rest-closing-contact-item {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
  color: var(--slate) !important;
  position: relative !important;
}

#rest-app .rest-closing-contact-item a {
  color: var(--porcelain) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

#rest-app .rest-closing-contact-item a:hover {
  color: var(--teal) !important;
}

#rest-app .rest-social-links {
  display: flex !important;
  gap: 12px !important;
  margin-top: 8px !important;
}

#rest-app .rest-social-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 4px !important;
  background-color: var(--lattice) !important;
  border: 1px solid rgba(140, 148, 166, 0.1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--slate) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

#rest-app .rest-social-btn:hover,
#rest-app .rest-committee-link:hover {
  color: var(--porcelain) !important;
  transform: translateY(-2px) !important;
}

#rest-app .rest-social-fb:hover,
#rest-app .rest-committee-link.rest-social-fb:hover {
  background-color: #1877F2 !important;
  border-color: #1877F2 !important;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4) !important;
}

#rest-app .rest-social-tw:hover,
#rest-app .rest-committee-link.rest-social-tw:hover {
  background-color: #000000 !important;
  border-color: #333333 !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2) !important;
}

#rest-app .rest-social-li:hover,
#rest-app .rest-committee-link.rest-social-li:hover {
  background-color: #0A66C2 !important;
  border-color: #0A66C2 !important;
  box-shadow: 0 0 15px rgba(10, 102, 194, 0.4) !important;
}

#rest-app .rest-social-yt:hover,
#rest-app .rest-committee-link.rest-social-yt:hover {
  background-color: #FF0000 !important;
  border-color: #FF0000 !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4) !important;
}

#rest-app .rest-social-ig:hover,
#rest-app .rest-committee-link.rest-social-ig:hover {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%) !important;
  border-color: #dc2743 !important;
  box-shadow: 0 0 15px rgba(220, 39, 67, 0.4) !important;
}

#rest-app .rest-social-web:hover,
#rest-app .rest-committee-link.rest-social-web:hover {
  background-color: var(--teal) !important;
  border-color: var(--teal) !important;
  box-shadow: 0 0 15px rgba(27, 107, 107, 0.4) !important;
}

#rest-app .rest-social-email:hover,
#rest-app .rest-committee-link.rest-social-email:hover {
  background-color: var(--copper) !important;
  border-color: var(--copper) !important;
  box-shadow: 0 0 15px rgba(217, 98, 43, 0.4) !important;
}

#rest-app .rest-closing-bottom {
  border-top: 1px solid rgba(140, 148, 166, 0.1) !important;
  padding-top: 24px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

#rest-app .rest-copyright {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: var(--slate) !important;
}

#rest-app .rest-developer-note {
  font-family: var(--font-mono) !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  color: rgba(140, 148, 166, 0.4) !important;
}

/* --- Light Section Overrides --- */
#rest-app .rest-section-light {
  background-color: var(--porcelain) !important;
  color: var(--ink) !important;
}

#rest-app .rest-section-light .rest-section-title {
  color: var(--ink) !important;
}

#rest-app .rest-section-light .rest-section-sub {
  color: #4A5260 !important;
}

#rest-app .rest-section-light .rest-about-copy {
  color: #2D333F !important;
}

#rest-app .rest-section-light .rest-guideline-step {
  background-color: #E5E0D5 !important;
  border-color: rgba(11, 14, 20, 0.1) !important;
}

#rest-app .rest-section-light .rest-guideline-title {
  color: var(--ink) !important;
}

#rest-app .rest-section-light .rest-guideline-desc {
  color: #4A5260 !important;
}

#rest-app .rest-section-light .rest-guideline-todo {
  background-color: rgba(11, 14, 20, 0.05) !important;
  color: #4A5260 !important;
}

#rest-app .rest-section-light .rest-venue-details,
#rest-app .rest-section-light .rest-venue-accommodation,
#rest-app .rest-section-light .rest-venue-transport {
  background-color: #E5E0D5 !important;
  border-color: rgba(27, 107, 107, 0.2) !important;
}

#rest-app .rest-section-light .rest-venue-name {
  color: var(--ink) !important;
}

#rest-app .rest-section-light .rest-venue-tagline {
  color: #4A5260 !important;
}

#rest-app .rest-section-light .rest-venue-facilities-title,
#rest-app .rest-section-light .rest-venue-sub-title {
  color: var(--ink) !important;
}

#rest-app .rest-section-light .rest-venue-facility-item {
  color: #4A5260 !important;
}

#rest-app .rest-section-light .rest-timeline-node {
  background-color: var(--porcelain) !important;
}

#rest-app .rest-section-light .rest-timeline-label {
  color: var(--ink) !important;
}

#rest-app .rest-section-light .rest-timeline-marker {
  background-color: #E5E0D5 !important;
}

#rest-app .rest-section-light .rest-badge {
  background-color: #E5E0D5 !important;
  border-color: var(--teal) !important;
}

#rest-app .rest-section-light .rest-badge-title {
  color: var(--teal) !important;
}

#rest-app .rest-section-light .rest-badge-desc {
  color: #4A5260 !important;
}

#rest-app .rest-section-light .rest-labs-desc {
  color: #4A5260 !important;
}

#rest-app .rest-section-light .rest-divider-symbol {
  background-color: var(--porcelain) !important;
}

#rest-app .rest-section-light .rest-divider-line {
  background-color: rgba(11, 14, 20, 0.15) !important;
}

/* ==========================================================================
   8. Responsive Media Queries
   ========================================================================== */

/* --- Tablet Breakpoint (≤ 1023px) --- */
@media (max-width: 1023px) {
  :root {
    --space-lg: 48px;
    --space-xl: 64px;
  }

  #rest-app .rest-hero-grid {
    flex-direction: column !important;
    text-align: center !important;
    gap: 40px !important;
  }

  #rest-app .rest-hero-content {
    flex: 0 0 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #rest-app .rest-hero-visual {
    flex: 0 0 100% !important;
    height: 350px !important;
    width: 100% !important;
  }

  #rest-app .rest-hero-ctas {
    justify-content: center !important;
  }

  #rest-app .rest-themes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  #rest-app .rest-venue-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  #rest-app .rest-venue-map {
    min-height: 300px !important;
  }

  #rest-app .rest-registration-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  #rest-app .rest-about-labs-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  #rest-app .rest-closing-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

/* --- Mobile Landscape Breakpoint (≤ 767px) --- */
@media (max-width: 767px) {
  #rest-app .rest-nav-links {
    display: none !important;
    /* Hide links, use mobile drawer */
  }

  #rest-app .rest-nav-toggle {
    display: block !important;
  }

  #rest-app .rest-themes-grid {
    grid-template-columns: 1fr !important;
  }

  #rest-app .rest-previous-card {
    flex-direction: column !important;
  }

  #rest-app .rest-previous-img-wrap {
    flex: 0 0 auto !important;
    height: 200px !important;
  }

  #rest-app .rest-previous-content {
    flex: 0 0 auto !important;
    padding: 24px !important;
  }

  /* Mobile Timeline Layout Adjustments */
  #rest-app .rest-timeline::before {
    left: 15px !important;
  }

  #rest-app .rest-timeline-node {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-left: 35px !important;
    width: calc(100% - 35px) !important;
    box-sizing: border-box !important;
  }

  #rest-app .rest-timeline-node::before {
    left: -24px !important;
  }

  #rest-app .rest-timeline-calendar {
    width: auto !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 8px !important;
  }

  #rest-app .rest-calendar-day {
    font-size: 1.6rem !important;
  }

  #rest-app .rest-calendar-month {
    font-size: 0.85rem !important;
  }

  #rest-app .rest-timeline-info {
    width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  #rest-app .rest-committee-flex-group {
    flex-direction: column !important;
  }

  /* Mobile Registration Section Overrides */
  #rest-app .rest-registration-table-wrap {
    overflow-x: visible !important;
  }

  #rest-app .rest-registration-table thead {
    display: none !important;
  }

  #rest-app .rest-registration-table,
  #rest-app .rest-registration-table tbody,
  #rest-app .rest-registration-table tr,
  #rest-app .rest-registration-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #rest-app .rest-registration-table tr {
    background-color: var(--lattice) !important;
    border: 1px solid rgba(27, 107, 107, 0.15) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
  }

  #rest-app .rest-registration-table tr:last-child {
    margin-bottom: 0 !important;
  }

  #rest-app .rest-registration-table td {
    padding: 8px 0 !important;
    border: none !important;
  }

  #rest-app .rest-registration-table td.rest-table-cat {
    font-family: var(--font-display) !important;
    font-size: 1.1rem !important;
    color: var(--porcelain) !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(140, 148, 166, 0.1) !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }

  #rest-app .rest-registration-table td.rest-table-price {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-family: var(--font-mono) !important;
    font-size: 0.95rem !important;
    color: var(--copper) !important;
  }

  #rest-app .rest-registration-table td.rest-table-price:nth-child(2)::before {
    content: "Early Bird" !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    color: var(--slate) !important;
  }

  #rest-app .rest-registration-table td.rest-table-price:nth-child(3)::before {
    content: "Late Fee" !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    color: var(--slate) !important;
  }

  #rest-app .rest-payment-box {
    padding: 20px !important;
  }
}

/* --- Small Mobile Breakpoint (≤ 480px) --- */
@media (max-width: 480px) {
  :root {
    --space-lg: 36px;
    --space-xl: 48px;
  }

  #rest-app .rest-shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #rest-app .rest-hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
  }

  #rest-app .rest-section-title {
    font-size: 1.8rem !important;
  }

  #rest-app .rest-countdown {
    gap: 8px !important;
  }

  #rest-app .rest-countdown-digits {
    font-size: 1.6rem !important;
  }

  #rest-app .rest-closing-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  #rest-app .rest-closing-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   9. Prefers-reduced-motion Block
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  #rest-app .rest-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #rest-app .rest-theme-card {
    transition: none !important;
    transform: none !important;
  }

  #rest-app .rest-theme-card:hover {
    box-shadow: none !important;
  }

  #rest-app .rest-theme-card-inner {
    transform: none !important;
    transition: none !important;
  }

  #rest-app .rest-lattice-cell {
    animation: none !important;
    transform: rotateX(20deg) rotateY(20deg) !important;
    /* static visible tilt */
  }

  #rest-app .rest-btn {
    transition: none !important;
  }

  #rest-app .rest-committee-card,
  #rest-app .rest-committee-img,
  #rest-app .rest-committee-img-placeholder,
  #rest-app .rest-committee-name,
  #rest-app .rest-committee-link,
  #rest-app .rest-committee-name-card,
  #rest-app .rest-committee-ribbon,
  #rest-app .rest-social-btn {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  #rest-app .rest-committee-card:hover,
  #rest-app .rest-committee-card:hover .rest-committee-img,
  #rest-app .rest-committee-card:hover .rest-committee-img-placeholder,
  #rest-app .rest-committee-name-card:hover,
  #rest-app .rest-committee-card:hover .rest-committee-ribbon,
  #rest-app .rest-social-btn:hover,
  #rest-app .rest-committee-link:hover,
  #rest-app .rest-social-fb:hover,
  #rest-app .rest-social-tw:hover,
  #rest-app .rest-social-li:hover,
  #rest-app .rest-social-yt:hover,
  #rest-app .rest-social-ig:hover,
  #rest-app .rest-social-web:hover,
  #rest-app .rest-social-email:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Event Status Message and Indicators */
#rest-app .rest-countdown-message {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  line-height: 1.4 !important;
  color: var(--porcelain) !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 4px 0 !important;
}

#rest-app .rest-status-indicator {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

#rest-app .rest-status-indicator.rest-status-pulsing {
  background-color: #2ec4b6 !important;
  box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.7) !important;
  animation: rest-pulse 1.6s infinite !important;
}

#rest-app .rest-status-indicator.rest-status-ended {
  background-color: var(--slate) !important;
}

@keyframes rest-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(46, 196, 182, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 196, 182, 0);
  }
}