@font-face{font-family:"Archivo Narrow Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Arial"),local("Helvetica Neue"),local("Roboto");font-weight:700;size-adjust:82%;ascent-override:127%;descent-override:38%;line-gap-override:0%}
@font-face{font-family:"Archivo Fallback";src:local("Arial"),local("ArialMT"),local("Helvetica Neue"),local("Roboto");size-adjust:98.4%;ascent-override:89.4%;descent-override:21.3%;line-gap-override:0%}
/* Hub on n8ivenglish.es — matches the new website: Archivo Narrow headlines (sentence case),
   Archivo text, Newsreader italic for "textbook" lines, cream #FFFDF5, navy, brick. */
:root {
  --cream: #FFFDF5; --sand-deep: #E7DCC2;
  --font: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo Narrow", "Archivo Narrow Fallback", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}
body { font-feature-settings: "ss01" 0; }

/* Headlines: bold narrow, sentence case (the site's voice), key word in brick */
h2, .section-title h2, .topbar-title, .hero-title, .card.hero .big-en, .stat b, .step-num, .thumb.wk b, .banner {
  font-family: var(--display); font-weight: 700; text-transform: none; letter-spacing: -.01em;
}
h2 { font-size: 30px; line-height: 1.02; }
.section-title h2 { font-size: 24px; }
.topbar-title { font-size: 21px; letter-spacing: -.005em; }
.card.hero .big-en { font-size: 30px; line-height: 1.05; }
.hero-title { font-size: clamp(36px, 9vw, 54px); line-height: .98; }
.big-en { font-family: var(--font); font-weight: 700; }
.banner { font-size: clamp(18px, 5vw, 23px); }
.eyebrow { font-weight: 700; letter-spacing: .12em; font-size: 11.5px; }
.compare .book .txt { font-family: var(--serif); font-style: italic; font-size: 1.08em; }
h3 { font-weight: 700; }

/* Header: logo link back to the website */
.hub-logo { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; }
.hub-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
#backBtn:not([hidden]) + .hub-logo { display: none; }

/* Cards a touch softer, like the site's index cards */
.card, .item, .stat, .compare { border-radius: 14px; }
.card.hero { border-radius: 16px; }
.btn { font-weight: 600; }
.badge.soon { background: var(--surface-2); color: var(--text-2); }

/* Wider screens: the app sits in a centred column; tab bar follows it */
@media (min-width: 760px) {
  .tabbar { left: 50%; right: auto; width: 680px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
  .view { padding-top: 28px; }
  body { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--bg); }
}

/* ---- Sign-in ---- */
.auth { max-width: 440px; margin: 0 auto; }
.auth-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 8px 0 6px; }
.auth-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.auth h2 { font-size: clamp(34px, 9vw, 44px); margin-top: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface-2); margin: 14px 0 12px; }
.seg-btn { min-height: 44px; border: 0; border-radius: 99px; background: transparent; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg-btn[aria-selected="true"] { background: var(--surface); color: var(--heading); box-shadow: 0 1px 2px rgba(18,34,79,.12); }
.auth-card { display: grid; gap: 4px; }
.auth-card .btn { margin-top: 8px; }
.auth-card .link-btn { justify-self: center; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .two { grid-template-columns: 1fr; } }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--text-2); cursor: pointer; border-radius: 50%; }
.pw-eye[aria-pressed="true"] { color: var(--heading-em); }
.auth-foot { margin-top: 22px; text-align: center; }
.auth-foot a { color: var(--heading-em); }

/* ---- Mi clase ---- */
.notice h3 { font-family: var(--display); font-size: 22px; line-height: 1.1; margin: 6px 0; color: var(--heading); }
.notice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.notice-body { white-space: pre-line; margin: 0 0 6px; }
.notice.pinned { border-left: 4px solid var(--bar); }
.club .thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.club .row { align-items: center; gap: 12px; }
.club p { margin: 2px 0 0; }
.mate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mate { padding: 14px; margin: 0; }
.mate-top { display: flex; gap: 12px; align-items: center; }
.mate p { margin: 10px 0 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; object-fit: cover;
  background: var(--navy); color: #fff; font: 700 18px/1 var(--display); }
.empty.small { padding: 18px; }
.empty .thumb { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--card-line); }
.mats p { margin: 4px 0 0; }
/* QA pass */
.item.static .row { flex-wrap: wrap; }
.notices.list .card, .mate-grid .card { margin-bottom: 0; }
.notices.list { margin-bottom: 12px; }
.mate-grid + .small { margin-top: 10px; }
/* Nate's own recording: filled play button */
.play[data-nate] { background: var(--heading-em); color: var(--bg); border-color: transparent; }
.btn[data-nate] { border-color: var(--heading-em); box-shadow: inset 0 0 0 1px var(--heading-em); }
.check-row.adult { border-bottom: 0; padding: 10px 0 2px; }
.signup-note { margin: 2px 0 6px; }
.signup-note a { color: var(--heading-em); }

/* Picture protection (with the script in app.js / main.js) */
img, picture, video, [data-protect] { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }