/* Scoped Homepage Styles - Milestone 4 */

.home-hero {
  padding: 82px 0 72px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.72fr);
  gap: 76px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.home-hero p.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 720px;
  margin: 26px 0 32px;
}

.home-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero-aside {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

.home-hero-aside .aside-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2px;
}

.home-hero-aside h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0;
  font-family: Georgia, serif;
}

.home-aside-index {
  font-family: Georgia, serif;
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
  margin: 0;
}

.home-quick-row-wrapper {
  margin: 0;
}

.home-quick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 700;
  color: inherit;
}

.home-quick-row:last-child {
  border-bottom: 0;
}

.home-quick-row span:last-child {
  font-size: 18px;
  font-weight: 400;
}

.home-quick-row:hover span:first-child {
  color: var(--blue);
}

.home-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--rule);
}

.home-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.home-section-head .eyebrow {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 14px;
  display: block;
}

.home-section-head h2 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  max-width: 680px;
  margin: 0;
}

.home-section-head p {
  margin: 0;
  color: var(--ink-2);
  max-width: 590px;
  justify-self: end;
}

.home-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}

.home-index-item {
  padding: 28px;
  min-height: 185px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.25);
  transition: 0.2s;
  color: inherit;
  position: relative;
}

.home-index-item:hover {
  background: var(--white);
}

.home-index-no {
  font-family: Georgia, serif;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

.home-index-item h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 28px 0 8px;
  font-family: Inter, sans-serif;
  font-weight: 700;
}

.home-index-item h3 a {
  color: inherit;
  text-decoration: none;
}

.home-index-item h3 a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.home-index-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Home Login Finder Shell Structure & Contrast correction */
.home-finder-shell {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  background: var(--ink);
  color: #f5f3ee;
  border: 1px solid var(--rule);
  margin: 40px 0;
}

.home-finder-intro {
  padding: 54px;
}

.home-finder-intro h2 {
  font-family: Georgia, serif;
  font-size: 45px;
  font-weight: 500;
  margin-bottom: 0.55em;
  letter-spacing: -0.035em;
  color: var(--white);
}

.home-finder-intro p {
  color: #bec9d1;
  max-width: 460px;
  margin: 0;
}

.home-finder-intro .eyebrow {
  margin-bottom: 19px;
}

/* Scoped overrides for the nested plugin Finder */
.home-finder-shell .finder {
  margin: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.home-finder-shell .finder-panel {
  background: #fdfcf8;
  color: var(--ink);
  padding: 40px 46px;
  flex: 1;
}

.home-finder-shell .finder-results {
  background: var(--ink-2);
  color: #f5f3ee;
  padding: 34px;
  border-top: 1px solid var(--rule);
}

.home-finder-shell .finder-results-text {
  color: #bec9d1;
}

/* Update list */
.home-update-list {
  border-top: 1px solid var(--ink);
}

.home-update-row {
  display: grid;
  grid-template-columns: 125px 1fr 90px;
  gap: 26px;
  padding: 25px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  color: inherit;
  position: relative;
}

.home-update-date {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.home-update-row h3 {
  font-size: 18px;
  margin: 0 0 7px;
  font-family: Inter, sans-serif;
  font-weight: 700;
}

.home-update-row h3 a {
  color: inherit;
  text-decoration: none;
}

.home-update-row h3 a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.home-update-row p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.home-update-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--blue);
  font-weight: 850;
  text-align: right;
  padding-top: 4px;
  margin: 0;
}

.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  align-items: start;
}

.home-editorial-card {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.home-editorial-card h3 {
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  margin-bottom: 0.55em;
  margin-top: 0;
}

.home-editorial-card p {
  color: var(--ink-2);
}

.home-text-link-wrapper {
  margin: 0;
}

.home-text-link {
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  color: inherit;
}

.home-safety {
  background: var(--blue-soft);
}

.home-safety-mark {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  border: 1px solid rgba(17, 59, 87, 0.22);
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.35);
}

.home-safety-mark::before,
.home-safety-mark::after {
  content: "";
  position: absolute;
  background: rgba(28, 95, 140, 0.16);
}

.home-safety-mark::before {
  width: 1px;
  height: 76%;
  left: 50%;
  top: 12%;
}

.home-safety-mark::after {
  height: 1px;
  width: 76%;
  top: 50%;
  left: 12%;
}

.home-shield-wrapper {
  margin: 0;
  position: relative;
  z-index: 1;
}

.home-shield {
  width: 92px;
  height: 112px;
  border: 2px solid var(--blue-deep);
  border-radius: 46px 46px 30px 30px;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--blue-deep);
}

/* Variant primary button handling */
.ncedcloud-official-link--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: 0.2s;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.ncedcloud-official-link--primary:hover {
  background: var(--blue-deep);
  color: var(--white);
  transform: translateY(-1px);
}

/* Misleading placeholder prevention style */
.ncedcloud-official-link--disabled {
  background: var(--paper-2);
  border-color: var(--rule);
  color: var(--muted);
  cursor: not-allowed;
  font-weight: 600;
  opacity: 0.8;
  transform: none !important;
  box-shadow: none !important;
}

/* Responsiveness overrides */
@media (max-width: 980px) {
  .home-hero-grid,
  .home-section-head,
  .home-split,
  .home-finder-shell,
  .home-safety .home-split {
    grid-template-columns: 1fr;
  }
  .home-hero-grid {
    gap: 42px;
  }
  .home-section-head p {
    justify-self: start;
  }
  .home-finder-intro {
    padding: 34px;
  }
  .home-finder-shell .finder-panel {
    padding: 34px;
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding: 54px 0;
  }
  .home-hero h1 {
    font-size: 47px;
  }
  .home-section {
    padding: 62px 0;
  }
  .home-index-grid {
    grid-template-columns: 1fr;
  }
  .home-update-row {
    grid-template-columns: 86px 1fr;
  }
  .home-update-tag {
    display: none;
  }
  .home-hero .actions {
    display: grid;
  }
  .home-hero .btn,
  .home-hero .ncedcloud-official-link--primary {
    width: 100%;
  }
  .home-hero-aside {
    padding: 22px;
  }
}
