/* Shared structure for secondary public pages. Landing composition stays in its own files. */
body { font-family: Inter, Arial, sans-serif; }

.nav-shell {
  position: fixed;
  z-index: 90;
  top: 14px;
  left: 50%;
  display: flex;
  width: min(760px, calc(100% - 24px));
  height: 52px;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  border: 1px solid #edeff1;
  border-radius: 999px;
  background: #fff;
  padding: 0 10px 0 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.nav-shell.nav-shell--scrolled { border-color: #dfe3e8; box-shadow: 0 5px 16px rgba(17, 25, 40, .07); }
.brand { display: inline-flex; align-items: center; color: #0a0081; font-size: 12px; font-weight: 700; }
.public-brand-logo { display: block; width: auto; max-width: 140px; height: 32px; object-fit: contain; }
.nav-shell .nav-menu { display: grid; width: 40px; height: 40px; margin-left: auto; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #17191c; line-height: 1; }
.nav-shell .nav-menu:hover { background: #f3f4f5; }
.nav-shell .nav-menu-icon { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.public-menu {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  transform: translateY(-8px);
  opacity: 0;
  background: #050505;
  color: #fff;
  padding: 24px;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.public-menu.open { visibility: visible; transform: none; opacity: 1; }
.public-menu .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; }
.public-menu .mobile-menu-head button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; background: transparent; color: #fff; }
.public-menu .mobile-menu-head svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.public-menu .mobile-menu-list { display: grid; gap: 12px; margin-top: clamp(54px, 10vh, 96px); }
.public-menu .mobile-menu-list a { width: fit-content; font-family: Manrope, Inter, Arial, sans-serif; font-size: clamp(34px, 7vw, 68px); font-weight: 500; letter-spacing: -.06em; line-height: .96; }
.public-menu .mobile-language-switch { display: flex; gap: 8px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.public-menu .mobile-language-switch button { min-width: 54px; min-height: 42px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: transparent; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.public-menu .mobile-language-switch button.is-active { border-color: #fff; background: #fff; color: #050505; }

.eyebrow,
.editorial-kicker {
  color: #5f6670;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pill-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #0a0081;
  border-radius: 999px;
  background: #0a0081;
  color: #fff;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 650;
}

.pill-btn:hover { border-color: #1d1499; background: #1d1499; }
.pill-btn.alt { border-color: #17191c; background: #17191c; }

/* Generic public forms and authentication auxiliaries. */
.form-panel { border-top: 1px solid #dfe3e8; padding-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #24272b; font-size: 11px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid #dfe3e8; border-radius: 10px; outline: 0; background: #fff; color: #17191c; padding: 0 13px; font: 500 14px/1.3 Inter, Arial, sans-serif; }
.field textarea { min-height: 120px; resize: vertical; padding: 12px 13px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9c0c9; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #0a0081; box-shadow: 0 0 0 3px rgba(10, 0, 129, .1); }
.field :disabled { cursor: not-allowed; opacity: .62; }
.form-status { min-height: 18px; margin-top: 9px; color: #535861; font-size: 12px; line-height: 1.45; }
.form-status.ok { color: #176c42; }
.form-status.err { color: #8e2721; }

.login-page { min-height: 100vh; display: grid; place-items: center; background: #f6f7f8; padding: 20px; }
.login-card { width: min(390px, 100%); border: 1px solid #dfe3e8; border-radius: 18px; background: #fff; padding: 30px; }
.login-card h1 { margin: 18px 0 8px; font-family: Manrope, Inter, Arial, sans-serif; font-size: 28px; letter-spacing: -.04em; }
.messages { display: grid; gap: 8px; margin: 14px 0; }
.message { border-left: 2px solid #a12a24; background: #fff7f6; color: #8e2721; padding: 10px 11px; font-size: 11px; }

.auth-page { min-height: 100vh; display: grid; place-items: center; background: #f6f7f8; padding: 32px 20px; }
.auth-card { width: min(430px,100%); border: 1px solid #dfe3e8; border-radius: 18px; background: #fff; padding: clamp(28px, 5vw, 44px); }
.auth-brand { display: inline-block; color: #0a0081; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.auth-card h1 { margin: 34px 0 10px; font-family: Manrope, Inter, Arial, sans-serif; font-size: clamp(32px, 5vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -.055em; }
.auth-card > p, .auth-card form > p, .auth-copy { margin: 0; color: #535861; font-size: 13px; line-height: 1.6; }
.auth-field { display: grid; gap: 8px; margin-top: 21px; }
.auth-field label { font-size: 11px; font-weight: 650; }
.auth-field input { width: 100%; height: 50px; border: 1px solid #dfe3e8; border-radius: 10px; outline: 0; background: #fff; padding: 0 13px; font: inherit; }
.auth-field input:focus { border-color: #0a0081; box-shadow: 0 0 0 3px rgba(10, 0, 129, .1); }
.auth-submit { display: flex; width: 100%; min-height: 48px; margin-top: 25px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #0a0081; color: #fff; font-size: 12px; font-weight: 650; }
.auth-return { display: block; margin-top: 20px; text-align: center; color: #535861; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.auth-field-spaced { margin-top: 12px; }
.auth-wide-action { width: 100%; margin-top: 18px; }

/* Event, guide and announcement indexes. */
.content-index {
  width: min(1080px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 124px 0 80px;
}

.content-index > header { max-width: 700px; margin-bottom: 42px; }
.content-index h1 { margin: 0 0 14px; font-family: Manrope, Inter, Arial, sans-serif; font-size: clamp(44px, 6vw, 68px); font-weight: 600; line-height: .98; letter-spacing: -.065em; }
.content-index header p, .content-index-row p, .content-index-empty p { margin: 0; color: #535861; font-size: 14px; line-height: 1.6; }
.content-index-list { border-top: 1px solid #cfd4db; }
.content-index-row { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 26px; align-items: center; border-bottom: 1px solid #dfe3e8; padding: 22px 0; }
.content-index-row:hover h2, .content-index-row:focus-visible h2 { color: #0a0081; }
.content-index-row img, .content-index-media { display: block; width: 176px; height: 112px; border-radius: 8px; background: #e4e7eb; object-fit: cover; }
.content-index-row .eyebrow { margin-bottom: 7px; }
.content-index-row h2, .content-index-empty h2 { margin: 0 0 8px; font-family: Manrope, Inter, Arial, sans-serif; font-size: clamp(23px, 3vw, 34px); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; }
.content-index-row p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.content-index-empty { padding: 32px 0; }

/* Long-form editorial detail. */
.editorial-detail {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 112px 0 80px;
}

.editorial-detail__header { max-width: 850px; margin-bottom: 32px; }
.editorial-back { display: inline-flex; margin-bottom: 22px; color: #0a0081; font-size: 11px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.editorial-kicker { margin: 0 0 12px; }
.editorial-kicker span { padding: 0 5px; color: #0a0081; }
.editorial-detail h1 { max-width: 880px; margin: 0; font-family: Manrope, Inter, Arial, sans-serif; font-size: clamp(40px, 5.2vw, 66px); font-weight: 650; line-height: 1; letter-spacing: -.065em; overflow-wrap: anywhere; }
.editorial-detail__summary { max-width: 720px; margin: 20px 0 0; color: #535861; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.editorial-detail__grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 300px); gap: clamp(34px, 6vw, 72px); align-items: start; }
.editorial-detail__cover { display: block; width: 100%; max-height: 440px; border-radius: 10px; object-fit: cover; }
.editorial-detail--event .editorial-detail__cover { aspect-ratio: 16 / 9; }
.editorial-detail__body.article-content { max-width: 690px; margin: 32px 0 0; color: #30343a; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.article-content p { margin: 0 0 1.35em; }
.article-content h2, .article-content h3 { margin: 1.8em 0 .65em; font-family: Manrope, Inter, Arial, sans-serif; line-height: 1.2; letter-spacing: -.03em; }
.article-content h2 { font-size: 27px; }
.article-content h3 { font-size: 21px; }
.article-content ul, .article-content ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.article-content li + li { margin-top: .45em; }
.article-content blockquote { margin: 1.6em 0; border-left: 2px solid #0a0081; padding: 2px 0 2px 18px; color: #535861; }
.article-content a { color: #0a0081; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.editorial-detail__aside { position: sticky; top: 88px; padding-top: 4px; }
.editorial-aside__title { margin: 0 0 14px; border-bottom: 2px solid #0a0081; padding-bottom: 11px; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.editorial-related-list { display: grid; gap: 15px; }
.editorial-related-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 11px; align-items: start; }
.editorial-related-card img, .editorial-related-card__fallback { display: block; width: 92px; height: 68px; border-radius: 6px; background: #0a0081; object-fit: cover; }
.editorial-related-card__fallback--event { background: #e4e7eb url("../images/evento.b81f848454aa.webp") center / cover; }
.editorial-related-card span { display: grid; gap: 4px; min-width: 0; }
.editorial-related-card small, .editorial-related-card em { color: #6a7079; font-size: 10px; font-style: normal; }
.editorial-related-card strong { display: -webkit-box; overflow: hidden; color: #17191c; font-size: 13px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.editorial-related-card:hover strong { color: #0a0081; }
.editorial-aside__empty { margin: 0; color: #6a7079; font-size: 12px; line-height: 1.5; }

.editorial-event-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; max-width: 690px; margin: 32px 0 0; border: 1px solid #dfe3e8; border-radius: 14px; background: #fff; padding: 22px; }
.editorial-event-box > div { display: grid; gap: 5px; }
.editorial-event-box small { color: #6a7079; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.editorial-event-box b { font-size: 14px; line-height: 1.4; }
.editorial-event-box .form-panel { grid-column: 1 / -1; margin-top: 4px; }
.event-registration-heading { grid-column: 1 / -1; margin: 5px 0 -2px; font-family: Manrope, Inter, Arial, sans-serif; font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.event-registration-actions { display: flex; align-items: center; gap: 12px; }
.event-registration-actions .pill-btn { min-width: 130px; }
.event-registration-closed { grid-column: 1 / -1; margin: 3px 0 0; border-top: 1px solid #edeff1; padding-top: 17px; color: #6a7079; font-size: 12px; }

.article-shell { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0 80px; }
.article-shell h1 { max-width: 920px; margin: 16px 0; font-family: Manrope, Inter, Arial, sans-serif; font-size: clamp(42px, 7vw, 76px); font-weight: 600; line-height: 1; letter-spacing: -.06em; }
.article-content { max-width: 760px; margin: 40px auto; }
.event-box { max-width: 760px; margin: 30px auto; }

@media (max-width: 860px) {
  .editorial-detail { width: min(100% - 28px, 760px); padding-top: 100px; }
  .editorial-detail__grid { grid-template-columns: 1fr; }
  .editorial-detail__aside { position: static; padding-top: 27px; border-top: 1px solid #dfe3e8; }
  .editorial-related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .editorial-related-card { grid-template-columns: 1fr; }
  .editorial-related-card img, .editorial-related-card__fallback { width: 100%; height: 92px; }
  .editorial-related-card strong { -webkit-line-clamp: 2; }
}

@media (max-width: 700px) {
  .nav-shell { height: 48px; }
  .public-brand-logo { height: 29px; }
  .form-grid { grid-template-columns: 1fr; }
  .content-index { width: min(100% - 24px, 1080px); padding: 102px 0 60px; }
  .content-index > header { margin-bottom: 30px; }
  .content-index h1 { font-size: clamp(40px, 13vw, 52px); }
  .content-index-row { grid-template-columns: 96px minmax(0, 1fr); gap: 15px; padding: 18px 0; }
  .content-index-row img, .content-index-media { width: 96px; height: 76px; border-radius: 6px; }
  .content-index-row h2 { margin-bottom: 5px; font-size: clamp(20px, 6vw, 27px); }
  .content-index-row p { font-size: 12px; }
}

@media (max-width: 560px) {
  .editorial-detail { width: min(100% - 24px, 760px); padding-bottom: 52px; }
  .editorial-detail__header { margin-bottom: 24px; }
  .editorial-back { margin-bottom: 18px; }
  .editorial-detail h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .editorial-detail__cover { max-height: none; aspect-ratio: 16 / 10; border-radius: 8px; }
  .editorial-detail__body.article-content { margin-top: 25px; font-size: 16px; line-height: 1.7; }
  .editorial-related-list { grid-template-columns: 1fr; }
  .editorial-related-card { grid-template-columns: 88px minmax(0, 1fr); }
  .editorial-related-card img, .editorial-related-card__fallback { width: 88px; height: 66px; }
  .editorial-event-box { grid-template-columns: 1fr; padding: 18px; }
  .editorial-event-box .form-panel, .event-registration-heading { grid-column: auto; }
  .event-registration-actions { align-items: stretch; flex-direction: column; }
  .event-registration-actions .pill-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-shell, .public-menu { transition: none; }
}
