/* CSS Variables for theming */
:root {
  --color-primary: #098ca2;
  --color-secondary: #111111;
  --color-accent: #045499;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #666666;
  --color-border: #e0e0e0;
  --color-success: #34a853;
  --color-error: #ea4335;
  --color-warning: #fbbc04;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lexend', 'OpenDyslexic', 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header .container,
.footer .container,
main.container {
  padding: 0;
}

.header-content,
.main-content,
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.header {
  background: var(--color-bg);
  border-bottom: 8px solid var(--color-primary);
  padding: 1rem 0;
  margin-bottom: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-primary);
}

.logo img {
  height: 36px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-weight: 600;
}

.nav a {
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.nav a:hover::after,
.nav a:focus::after,
.nav a[aria-current="page"]::after {
  background: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: var(--color-bg);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav a:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Main content */
.main-content {
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
}

/* Forms */
.form-section {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.admin-contact-section {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(9, 140, 162, 0.05);
}

.admin-contact-heading {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.admin-contact-note {
  margin: 0 0 1rem 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 50%;
  cursor: pointer;
}

.btn-icon-accent {
  background: var(--color-accent);
  color: white;
  border: none;
}

.btn-icon-accent:hover {
  background: var(--color-secondary);
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-muted);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
}

.btn-success {
  background-color: var(--color-success);
  color: white;
}

.btn-danger {
  background-color: var(--color-error);
  color: white;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

body.modal-open {
  overflow: hidden;
}

.change-request-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  z-index: 20000;
}

.change-request-modal.is-open {
  display: flex;
}

.change-request-dialog {
  position: relative;
  width: min(600px, 100%);
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.change-request-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
}

.change-request-close:hover {
  color: var(--color-secondary);
}

.change-request-intro {
  margin: 0 0 1.5rem 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.change-request-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.change-request-actions .btn {
  flex: 1;
}

@media (max-width: 640px) {
  .change-request-dialog {
    padding: 1.5rem;
  }

  .change-request-actions {
    flex-direction: column;
  }
}

/* Calendar styles */
.calendar-container {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* FullCalendar customization */
.fc {
  font-family: inherit;
}

.fc-header-toolbar {
  margin-bottom: 1rem;
}

.fc-button {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

.fc-button:hover {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

.fc-button-active {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

.fc-event {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  cursor: pointer;
}

.fc-event:hover {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

/* Messages */
.message {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.message-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.message-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.message-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

/* Footer */
.footer {
  background-color: var(--color-secondary);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 3px solid var(--color-primary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-info {
  flex: 1;
  min-width: 200px;
}

.footer-info h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.footer-info p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* AdSense */
.adsense-container {
  margin-top: 1rem;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    background: var(--color-bg);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.12);
    padding: 0.75rem 1rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 20;
  }

  .nav a {
    font-size: 0.95rem;
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 21;
  }

  .nav.nav--open {
    display: flex;
  }

  .logo h1 {
    font-size: 1.25rem;
  }
  
  .nav {
    justify-content: center;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .form-section {
    padding: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .fc-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.25rem;
  }
  
  .nav a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  .form-section {
    padding: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Event Parser Section */
.event-parser-section {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.event-parser-section h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.parser-description {
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.event-parser-section .form-group {
  margin-bottom: 1rem;
}

.event-parser-section input {
  margin-bottom: 0.5rem;
}

.supported-platforms {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #e9ecef;
  border-radius: 4px;
  border-left: 3px solid var(--color-primary);
}

.event-status {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.event-status.loading {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.event-status.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.event-status.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.form-divider {
  border: none;
  border-top: 2px solid #e9ecef;
  margin: 2rem 0;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none; }
.visible { display: block; }

/* Custom Calendar Event Tooltips */
.custom-tooltip {
  position: fixed;
  z-index: 10000;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 0;
  max-width: 350px;
  min-width: 280px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.custom-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Allow buttons inside tooltip to be clickable */
.custom-tooltip.show button,
.custom-tooltip.show .btn-request-change {
  pointer-events: auto;
  cursor: pointer;
}

.event-tooltip {
  padding: 16px;
}

.tooltip-title {
  font-weight: bold;
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-muted);
  padding-bottom: 6px;
}

.tooltip-category {
  color: var(--color-primary);
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
}

.tooltip-location {
  color: var(--color-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.tooltip-suburb {
  color: var(--color-text);
  margin-bottom: 6px;
  font-weight: 500;
}

.tooltip-description {
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.5;
  max-height: 80px;
  overflow-y: auto;
}

.tooltip-time {
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
}

.tooltip-link {
  color: var(--color-accent);
  font-size: 13px;
  font-style: italic;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--color-muted);
}

/* Tooltip arrow */
.custom-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--color-primary);
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

/* Responsive tooltip */
@media (max-width: 768px) {
  .custom-tooltip {
    max-width: 300px;
    min-width: 250px;
    font-size: 13px;
  }
  
  .tooltip-title {
    font-size: 15px;
  }
}

/* Category Filter Styles */
.filter-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-section h2 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-filter {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-filter:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-filter.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.category-filter.active:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

/* Responsive category filters */
@media (max-width: 768px) {
  .category-filters {
    gap: 0.25rem;
  }
  
  .category-filter {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .category-filters {
    justify-content: center;
  }
  
  .category-filter {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
}

.suburb-filter,
.suburb-filter-inline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.suburb-filter-inline {
  flex-direction: row;
  align-items: flex-end;
  gap: 1rem;
}

.suburb-filter-label {
  font-weight: 600;
  color: var(--color-text);
}

/* Filter Blocks */
.filter-block {
  margin-bottom: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.filter-heading {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.filter-grid {
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filter-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.filter-field select,
.filter-field .form-control {
  width: 100%;
}

.filter-actions {
  margin-top: 1rem;
}

.filter-clear {
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
}

.filter-clear:hover {
  text-decoration: underline;
}

/* Home landing */
.home-landing {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

.home-hero {
  background: linear-gradient(135deg, rgba(9, 140, 162, 0.08), rgba(4, 84, 153, 0.08));
  border: 1px solid rgba(4, 84, 153, 0.08);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  min-height: 0;
  max-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
}

.home-hero__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.home-hero__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.home-hero__lede {
  max-width: 680px;
  margin: 0 auto 1rem auto;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.home-alert {
  background: rgba(234, 67, 53, 0.08);
  border: 1px solid rgba(234, 67, 53, 0.2);
  color: #8b1f17;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.home-section__header h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

.home-section__link {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.home-section__link:hover,
.home-section__link:focus {
  text-decoration: underline;
}

.tile-grid {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tile-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.tile-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tile-card__figure {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f5f8;
}

.tile-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-card__content {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.tile-card__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 600;
}

.tile-card__title {
  font-size: 1.2rem;
  line-height: 1.35;
}

.tile-card__title span {
  background-image: linear-gradient(transparent 60%, rgba(9, 140, 162, 0.25) 60%);
}

.tile-card__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.tile-card__description {
  font-size: 0.95rem;
  color: var(--color-text);
  flex-grow: 1;
}

.tile-card__cta {
  font-weight: 600;
  color: var(--color-accent);
}

.tile-card:hover,
.tile-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.12);
}

.tile-card--skeleton {
  pointer-events: none;
  border-style: dashed;
}

.tile-card__figure--skeleton {
  background: linear-gradient(90deg, #f2f5f8 0%, #e6ebf0 48%, #f2f5f8 100%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.8s ease-in-out infinite;
  aspect-ratio: 16 / 9;
}

.skeleton-line {
  display: block;
  height: 12px;
  background: linear-gradient(90deg, #f2f5f8 0%, #e6ebf0 48%, #f2f5f8 100%);
  background-size: 400% 100%;
  border-radius: 999px;
  animation: skeleton-loading 1.8s ease-in-out infinite;
}

.skeleton-line:not(:last-child) {
  margin-bottom: 0.6rem;
}

.skeleton-line--short {
  width: 50%;
}

.skeleton-line--shorter {
  width: 35%;
}

@keyframes skeleton-loading {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.home-subscribe {
  background: rgba(9, 140, 162, 0.05);
  border: 1px solid rgba(9, 140, 162, 0.12);
  border-radius: 16px;
  padding: 2rem;
  gap: 1rem;
}

.home-subscribe__lede {
  max-width: 640px;
  color: var(--color-muted);
}

.home-subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-subscribe__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  color: inherit;
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(4, 84, 153, 0.15);
}

.home-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.home-footer__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.home-footer__meta {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.home-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  font-weight: 600;
}

.home-footer__nav a {
  color: var(--color-accent);
  text-decoration: none;
}

.home-footer__nav a:hover,
.home-footer__nav a:focus {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .home-landing {
    padding: 1.5rem 0 3rem;
  }
  .home-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .home-hero__actions {
    flex-direction: column;
  }
  .home-hero {
    padding: 0.65rem 0.9rem;
  }
  .home-hero__title {
    font-size: 1.4rem;
  }
  .home-hero__lede {
    font-size: 0.85rem;
  }
  .home-subscribe {
    padding: 1.5rem;
  }
}
