.cf-home-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 16px;
}

.cf-home-hero-copy h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.cf-home-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #b45309;
}

.cf-home-hero-copy p {
  margin: 10px 0 0;
  color: #334155;
}

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

.cf-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.cf-home-shortcuts-card {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border-color: rgba(30, 64, 175, 0.2);
}

.cf-home-shortcuts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cf-home-shortcuts-head p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.cf-home-shortcuts-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.cf-home-shortcuts-grid .cf-home-card {
  border-color: rgba(30, 64, 175, 0.2);
  background: linear-gradient(160deg, #ffffff 0%, #f2f7ff 100%);
  min-height: 188px;
}

.cf-home-schedule-card {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border-color: rgba(30, 64, 175, 0.2);
}

.cf-schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
}

.cf-schedule-day-card {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cf-schedule-day-card h4 {
  margin: 0;
  color: #1e293b;
  font-size: 0.84rem;
  text-align: center;
}

.cf-schedule-entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-schedule-entry {
  border: 1px solid rgba(30, 64, 175, 0.14);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbff;
}

.cf-schedule-entry-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.cf-schedule-entry-time {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

.cf-schedule-entry h4 {
  margin: 6px 0 4px;
  color: #1e293b;
  font-size: 0.84rem;
}

.cf-schedule-entry p {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #475569;
}

.cf-schedule-entry-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e3a8a;
}

.cf-schedule-day-empty {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  padding: 8px 4px;
  background: #f8fafc;
  border-radius: 6px;
}

.cf-schedule-type-lane-closure {
  border-left-color: #1d4ed8;
  background: #eff6ff;
}

.cf-schedule-type-lane-closure .cf-schedule-entry-type {
  background: #dbeafe;
  color: #1e3a8a;
}

.cf-schedule-type-flagging {
  border-left-color: #ea580c;
  background: #fff7ed;
}

.cf-schedule-type-flagging .cf-schedule-entry-type {
  background: #ffedd5;
  color: #9a3412;
}

.cf-schedule-type-perm {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.cf-schedule-type-perm .cf-schedule-entry-type {
  background: #dcfce7;
  color: #166534;
}

.cf-schedule-type-stationary {
  border-left-color: #059669;
  background: #ecfdf5;
}

.cf-schedule-type-stationary .cf-schedule-entry-type {
  background: #d1fae5;
  color: #065f46;
}

.cf-schedule-type-detour {
  border-left-color: #7c3aed;
  background: #f5f3ff;
}

.cf-schedule-type-detour .cf-schedule-entry-type {
  background: #ede9fe;
  color: #5b21b6;
}

.cf-schedule-type-jsa {
  border-left-color: #ca8a04;
  background: #fefce8;
}

.cf-schedule-type-jsa .cf-schedule-entry-type {
  background: #fef9c3;
  color: #854d0e;
}

.cf-schedule-type-other {
  border-left-color: #475569;
  background: #f8fafc;
}

.cf-schedule-type-other .cf-schedule-entry-type {
  background: #e2e8f0;
  color: #334155;
}

.cf-home-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(30, 64, 175, 0.16);
  background: #ffffff;
  text-decoration: none;
  color: #1e293b;
  padding: 14px;
  min-height: 180px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cf-home-card:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 64, 175, 0.38);
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.14);
}

.cf-home-card-meta {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
  font-weight: 700;
}

.cf-home-card h4 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
}

.cf-home-card p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
}

.cf-home-card-action {
  margin-top: auto;
  font-weight: 700;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 960px) {
  .cf-home-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  .cf-schedule-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

@media (max-width: 1024px) {
  .cf-schedule-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 640px) {
  .cf-schedule-grid {
    grid-template-columns: 1fr;
  }
}
