/* LifeLoveMe — Ramcharitmanas Hub */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fbfbfd;
  --border: rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 980px;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 255, 255, 0.92), transparent 50%),
    linear-gradient(165deg, #e6ecf8 0%, #f7f2ec 40%, #faf7f4 72%, #eceef8 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.hub-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem clamp(1rem, 4vw, 2rem) 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.hub-nav--hub-home {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.hub-nav__primary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 0.45rem;
  column-gap: 0;
  font-size: clamp(0.875rem, 2.8vw, 0.9375rem);
  font-weight: 500;
}

.hub-nav__primary > li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.hub-nav__primary > li + li::before {
  content: "|";
  color: var(--text-tertiary);
  font-weight: 400;
  margin: 0 0.45rem;
  user-select: none;
}

.hub-nav__primary a {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.hub-nav__primary a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.hub-nav__current {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
  padding: 0.15rem 0;
}

.hub-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.hub-nav__crumbs {
  margin: 0;
  padding: 0;
}

.app-breadcrumb {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.app-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.app-breadcrumb a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.app-breadcrumb__sep {
  color: var(--text-tertiary);
  font-weight: 500;
  user-select: none;
}

.app-breadcrumb__here {
  color: var(--text-primary);
  font-weight: 700;
}

.hub-asset-note {
  margin: 0.6rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.hub-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hub-nav__link--button {
  font: inherit;
  border: 1px solid var(--border);
  cursor: pointer;
}

.hub-nav__link:hover {
  color: var(--accent-hover);
  box-shadow: var(--shadow-hover);
}

.hub-nav a:focus-visible,
.hub-nav__primary a:focus-visible,
.hub-nav__link:focus-visible,
.pill:focus-visible,
.hero-gateway__btn:focus-visible,
.hero-gateway__mini:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.45);
  outline-offset: 2px;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero — page title dominates */
.hero {
  text-align: center;
  padding: clamp(1.5rem, 5vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
  min-height: min(52vh, 28rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__page-title {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-primary);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: center;
  text-wrap: balance;
}

.hero__brand {
  margin: clamp(0.65rem, 2vw, 1rem) 0 0;
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.hero__tagline {
  margin: clamp(0.85rem, 2vw, 1.25rem) auto 0;
  max-width: 36rem;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.hero__gateways {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  width: 100%;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.hero-gateway--secondary {
  text-align: center;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-gateway__btn--outline {
  background: var(--surface-solid);
  color: var(--accent);
  border: 1px solid rgba(0, 113, 227, 0.35);
  box-shadow: none;
}

.hero-gateway__btn--outline:hover {
  background: rgba(0, 113, 227, 0.06);
  box-shadow: var(--shadow);
}

.hero-gateway--primary {
  text-align: center;
  padding: 1.2rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-gateway__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero-gateway__text {
  margin: 0 0 1.05rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-gateway__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #0a84ff 0%, var(--accent) 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
  transition: box-shadow 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}

.hero-gateway__btn:hover {
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
  filter: brightness(1.03);
}

.hero-gateway__btn:active {
  transform: scale(0.98);
}

.hero-gateway-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.hero-gateway__mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.hero-gateway__mini:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.hub-note {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.hub-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.hub-note a:hover {
  text-decoration: underline;
}
.section {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Grids */
.grid {
  display: grid;
  gap: 1rem;
}

.grid--hub-shortcuts {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .grid--hub-shortcuts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.section--hub-shortcuts {
  margin-top: 0.5rem;
}

.grid--paths {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .grid--paths {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

@media (min-width: 520px) {
  .grid--life {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--life {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (min-width: 640px) {
  .grid--audience {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards */
.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
}

.card-link:focus-visible,
.card__title-link:focus-visible,
.card__desc-link:focus-visible {
  outline: 2px solid rgba(83, 125, 255, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

.card__hint {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.card--path {
  text-align: center;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card--shortcut {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
}

.card--shortcut .card__title {
  font-size: 0.98rem;
  text-align: left;
}

.card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.card--audience .card__title {
  margin-bottom: 0.35rem;
}

.card__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.card__title-link,
.card__desc-link {
  color: inherit;
  text-decoration: none;
}

.card__title-link:hover,
.card__desc-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Direct access */
.section--actions {
  margin-bottom: 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pill:hover {
  background: #fff;
  box-shadow: var(--shadow);
}

.pill:active {
  transform: scale(0.98);
}

/* Footer */
.footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Pipe navigation (Hub subpages + reference links) */
.hub-nav__pipe-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hub-nav__pipe-row--primary {
  margin-top: 0.15rem;
}

.hub-nav__pipe-row--secondary {
  margin-top: 0.15rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--border);
}

.hub-nav__pipe-row a {
  color: var(--accent);
  text-decoration: none;
}

.hub-nav__pipe-row a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.hub-nav__pipe {
  color: var(--text-tertiary);
  font-weight: 500;
  user-select: none;
}

.hub-nav__pipe-current {
  color: var(--text-primary);
  font-weight: 700;
}

.hub-subpage .page--reference,
.hub-subpage .page--help {
  padding-top: clamp(1rem, 3vw, 1.75rem);
}

.reference-header__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
}

.reference-header__note {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.reference-welcome {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem 1.15rem;
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.95) 0%, var(--surface-solid) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.reference-welcome__title {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reference-welcome__msg {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.reference-welcome__hint {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.reference-welcome__links {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.reference-welcome__links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.reference-welcome__links a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.ref-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ref-card {
  scroll-margin-top: 5rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.ref-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ref-card__desc {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.ref-card__status {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ref-card__missing {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #b45309;
}

.ref-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ref-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.ref-card__btn:hover {
  color: var(--accent-hover);
  box-shadow: var(--shadow-hover);
}

.ref-card__btn--placeholder {
  cursor: default;
  color: var(--text-secondary);
  background: rgba(22, 34, 56, 0.06);
  border-style: dashed;
  opacity: 0.95;
}

.reference-error {
  margin-top: 1rem;
  color: #b45309;
  font-size: 0.9375rem;
}

.help-topic-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.help-topic-card {
  padding: 1.15rem 1.25rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.help-topic-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.help-topic-card__desc {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.help-topic-card__status {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.page--help-article {
  max-width: 640px;
}

.help-article-parent {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.help-article-parent a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.help-article-parent a:hover {
  text-decoration: underline;
}

.help-article-title {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  font-weight: 700;
}

.help-placeholder-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .hero__page-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    padding-inline: 1rem;
  }
}
