/*
 * Survivor Resources page.
 * Layout, spacing and type scale follow the CornellSeven survivors page;
 * colours come from the GreekLifeWatch palette (components/styles.css).
 * Everything is scoped to .survivors-page so nothing leaks into other pages.
 */
.survivors-page {
  --sv-blue: var(--glw-charcoal-blue);
  --sv-blue-hover: #31434f;
  --sv-accent: var(--glw-rose);
  --sv-charcoal: var(--glw-dark-blue);
  --sv-charcoal-light: var(--glw-charcoal-blue);
  --sv-black: var(--glw-black);
  --sv-white: var(--glw-grey-white);
  --sv-muted: var(--glw-muted);
  --sv-border: var(--glw-divider);
  --sv-border-strong: rgba(185, 197, 206, 0.38);
  --sv-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  --sv-soft-blue: rgba(214, 161, 182, 0.14);
}

html:has(.survivors-page) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.survivors-page) {
    scroll-behavior: auto;
  }
}

.survivors-page [hidden] {
  display: none !important;
}

/* Same reset the CornellSeven page uses, limited to this page's content so the
   shared GreekLifeWatch header and footer keep their own spacing. */
:where(.survivors-page) :is(main, main *, .quick-exit) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.survivors-page main {
  background:
    radial-gradient(
      circle at top left,
      rgba(39, 55, 67, 0.7),
      transparent 35%
    ),
    var(--sv-black);
  color: var(--sv-white);
  line-height: 1.6;
}

:where(.survivors-page main) a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
}

:where(.survivors-page) button {
  border-radius: 0;
}

:where(.survivors-page main) :is(h1, h2, h3, h4) {
  max-width: none;
  font-size: 1em;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: normal;
}

/* QUICK EXIT */

.quick-exit {
  line-height: 1.6;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 90;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #7b1d1d;
  color: #fff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--sv-shadow);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.quick-exit:hover,
.quick-exit:focus-visible {
  background: #922424;
  transform: translateY(-1px);
}

/* The shared GreekLifeWatch header is taller and wider than the CornellSeven
   one, so the button moves to the bottom corner earlier than 700px to stay
   clear of the notice bar and the Menu button. */
@media (max-width: 1100px) {
  .quick-exit {
    top: auto;
    right: 14px;
    bottom: 16px;
    z-index: 110;
  }
}


/* HERO */

.survivor-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0 76px;
}

.hero-label,
.section-label {
  color: var(--sv-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.survivor-hero h1 {
  max-width: 980px;
  margin-top: 14px;
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.hero-rule {
  width: 92px;
  height: 4px;
  margin: 30px 0;
  background: var(--sv-accent);
}

.hero-copy {
  max-width: 850px;
  color: var(--sv-muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.8;
}

.hero-copy strong {
  color: var(--sv-white);
}

.privacy-note {
  max-width: 850px;
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--sv-accent);
  background: rgba(22, 33, 43, 0.8);
  color: #cdd6dd;
  font-size: 0.85rem;
  line-height: 1.7;
}

.privacy-note strong {
  color: var(--sv-white);
}


/* SHARED */

.section-title {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-copy {
  max-width: 820px;
  margin-top: 18px;
  color: var(--sv-muted);
  line-height: 1.8;
}

.resource-button,
.text-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--sv-border-strong);
  background: var(--sv-blue);
  color: var(--sv-white);
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.resource-button:hover,
.text-link-button:hover {
  background: var(--sv-blue-hover);
  border-color: var(--sv-accent);
  transform: translateY(-1px);
}

.resource-button.secondary {
  background: transparent;
}

.resource-button.secondary:hover {
  background: var(--sv-charcoal-light);
}


/* IMMEDIATE HELP */

.immediate-section {
  border-top: 1px solid var(--sv-border);
  border-bottom: 1px solid var(--sv-border);
  background: var(--sv-charcoal);
}

.immediate-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 86px;
}

.immediate-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.country-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--sv-border);
  background: rgba(13, 18, 24, 0.42);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.country-card-tag {
  color: var(--sv-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.country-card h3 {
  margin-top: 13px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.urgent-number {
  margin-top: 18px;
  color: var(--sv-white);
  font-size: 1.14rem;
  font-weight: 850;
}

.country-card p {
  margin-top: 10px;
  color: #b9c5ce;
  font-size: 0.88rem;
  line-height: 1.7;
}

.country-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* LOCATION FINDER */

.finder-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 104px;
}

.finder-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 22px;
  align-items: start;
}

.finder-panel {
  border: 1px solid var(--sv-border);
  background: var(--sv-charcoal);
}

.finder-panel-header {
  padding: 22px;
  border-bottom: 1px solid var(--sv-border);
}

.finder-panel-header h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.finder-panel-header p {
  margin-top: 6px;
  color: var(--sv-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.finder-panel-body {
  padding: 22px;
}

.country-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.country-tab {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--sv-border);
  background: transparent;
  color: var(--sv-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.country-tab.is-active {
  border-color: var(--sv-border-strong);
  background: var(--sv-blue);
  color: var(--sv-white);
}

.finder-field {
  margin-top: 20px;
}

.finder-field label {
  display: block;
  margin-bottom: 8px;
  color: #e1e7eb;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.finder-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--sv-border-strong);
  border-radius: 0;
  outline: none;
  background: var(--sv-black);
  color: var(--sv-white);
}

.finder-hint {
  margin-top: 12px;
  color: #8fa0ad;
  font-size: 0.74rem;
  line-height: 1.6;
}

.finder-result {
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--sv-border);
  background:
    linear-gradient(
      180deg,
      rgba(214, 161, 182, 0.06),
      rgba(13, 18, 24, 0)
    ),
    var(--sv-charcoal);
}

.finder-result-kicker {
  color: var(--sv-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.finder-result h3 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.finder-result > p {
  margin-top: 14px;
  color: #c3ced6;
  font-size: 0.9rem;
  line-height: 1.75;
}

.local-resource-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.local-resource {
  padding: 16px;
  border: 1px solid var(--sv-border);
  background: rgba(13, 18, 24, 0.36);
}

.local-resource strong {
  display: block;
  font-size: 0.9rem;
}

.local-resource span {
  display: block;
  margin-top: 4px;
  color: var(--sv-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.local-resource a {
  display: inline-block;
  margin-top: 8px;
  color: var(--sv-white);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(214, 161, 182, 0.55);
  text-underline-offset: 3px;
}


/* RECENT ASSAULT / OPTIONS */

.recent-section {
  border-top: 1px solid var(--sv-border);
  border-bottom: 1px solid var(--sv-border);
  background: var(--sv-charcoal);
}

.recent-inner,
.options-inner,
.specialized-inner,
.supporting-inner,
.disclaimer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.recent-inner {
  padding: 84px 0 92px;
}

.recent-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 26px;
  border: 1px solid var(--sv-border);
  background: rgba(13, 18, 24, 0.4);
}

.info-card h3 {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.info-card p {
  margin-top: 10px;
  color: #b9c5ce;
  font-size: 0.88rem;
  line-height: 1.75;
}

.info-card .time-sensitive {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 7px;
  border: 1px solid rgba(214, 161, 182, 0.38);
  background: var(--sv-soft-blue);
  color: #fbe6ee;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--sv-white);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(214, 161, 182, 0.55);
  text-underline-offset: 3px;
}


/* OPTIONS */

.options-inner {
  padding: 92px 0 104px;
}

.options-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.option-card {
  padding: 28px;
  border: 1px solid var(--sv-border);
  background: var(--sv-charcoal);
}

.option-number {
  color: var(--sv-muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.option-card h3 {
  margin-top: 16px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.option-card p {
  margin-top: 9px;
  color: #b9c5ce;
  font-size: 0.88rem;
  line-height: 1.72;
}

.option-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--sv-white);
  font-size: 0.77rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(214, 161, 182, 0.55);
  text-underline-offset: 3px;
}


/* SPECIALIZED SUPPORT */

.specialized-section {
  border-top: 1px solid var(--sv-border);
  border-bottom: 1px solid var(--sv-border);
  background: var(--sv-charcoal);
}

.specialized-inner {
  padding: 84px 0 92px;
}

.specialized-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.special-card {
  padding: 25px;
  border: 1px solid var(--sv-border);
  background: rgba(13, 18, 24, 0.4);
}

.special-country {
  color: var(--sv-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.special-card h3 {
  margin-top: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.special-number {
  margin-top: 10px;
  color: var(--sv-white);
  font-size: 0.96rem;
  font-weight: 850;
}

.special-card p {
  margin-top: 8px;
  color: #b9c5ce;
  font-size: 0.83rem;
  line-height: 1.65;
}

.special-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--sv-white);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(214, 161, 182, 0.55);
  text-underline-offset: 3px;
}


/* SUPPORTING SOMEONE */

.supporting-inner {
  padding: 88px 0 98px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 76px;
  align-items: start;
}

.supporting-copy {
  color: #dae1e6;
  font-size: 1rem;
  line-height: 1.85;
}

.supporting-copy p + p {
  margin-top: 18px;
}

.supporting-points {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.supporting-point {
  padding: 15px 16px;
  border-left: 3px solid var(--sv-accent);
  background: rgba(22, 33, 43, 0.8);
  color: #cbd4db;
  font-size: 0.88rem;
  line-height: 1.65;
}

.supporting-point strong {
  color: var(--sv-white);
}


/* DISCLAIMER */

.disclaimer-section {
  border-top: 1px solid var(--sv-border);
  background:
    linear-gradient(
      180deg,
      rgba(214, 161, 182, 0.11),
      rgba(39, 55, 67, 0)
    ),
    var(--sv-blue);
}

.disclaimer-inner {
  padding: 66px 0 72px;
  text-align: center;
}

.disclaimer-inner h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.disclaimer-inner > p {
  max-width: 760px;
  margin: 20px auto 0;
  color: rgba(242, 244, 245, 0.78);
  font-size: 0.86rem;
  line-height: 1.75;
}

.reviewed-date {
  margin-top: 20px !important;
  color: rgba(242, 244, 245, 0.55) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


@media (max-width: 950px) {
  .immediate-grid,
  .options-grid,
  .specialized-grid {
    grid-template-columns: 1fr;
  }

  .finder-grid,
  .supporting-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .recent-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 700px) {
  .survivor-hero,
  .immediate-inner,
  .finder-section,
  .recent-inner,
  .options-inner,
  .specialized-inner,
  .supporting-inner,
  .disclaimer-inner {
    width: min(100% - 28px, 1180px);
  }

  .survivor-hero {
    padding: 76px 0 58px;
  }

  .immediate-inner,
  .recent-inner,
  .specialized-inner {
    padding: 62px 0 70px;
  }

  .finder-section,
  .options-inner,
  .supporting-inner {
    padding: 68px 0 78px;
  }

  .country-tabs {
    grid-template-columns: 1fr;
  }

  .country-card,
  .finder-result,
  .option-card,
  .special-card,
  .info-card {
    padding: 22px;
  }
}

/* On very narrow screens the Quick Exit button sits above the support button
   instead of beside it, so the two never overlap. */
@media (max-width: 389px) {
  .quick-exit {
    bottom: 82px;
  }
}
