/* Function hall only. Same mint/cream palette as welcome, without its decorative drawings. */
.explore-page.ios-app .container { padding-top: 30px; }
.explore-page.ios-app .hero {
  position: relative; isolation: isolate; overflow: hidden; display: block;
  margin: 0 0 30px; padding: 32px 36px; min-height: 226px; max-width: none; text-align: left;
  background: #f5eade; border-radius: 28px; border: 1px solid rgba(255,255,255,.7);
}
.explore-page .campus-cover { position: absolute; z-index: -2; right: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; opacity: .95; }
.explore-page .hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,#f8ede1 0%,rgba(248,237,225,.97) 25%,rgba(248,237,225,.88) 43%,rgba(248,237,225,.22) 64%,rgba(248,237,225,.04) 100%);
}
.explore-page .hero-kicker { display: block; margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: 1px; color: var(--ios-action); }
.explore-page.ios-app .hero h1 {
  display: block; max-width: 64%; margin: 0 0 12px; font-size: 39px; line-height: 1.22; font-weight: 720; letter-spacing: -1.1px;
  color: var(--text); background: none; -webkit-text-fill-color: currentColor;
}
.explore-page.ios-app .hero h1::after { display: none; }
.explore-page.ios-app .hero p { color: #4b6864; font-size: 14px; line-height: 1.8; max-width: 52%; margin: 0; }
.explore-page .campus-caption { position: absolute; bottom: 20px; right: 22px; padding: 6px 12px; border-radius: 999px; font-size: 10px; color: #fff; background: rgba(39,67,75,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.explore-page .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 4px 14px; }
.explore-page .section-heading h2 { font-size: 19px; font-weight: 650; letter-spacing: -.4px; color: var(--text); }
.explore-page .section-heading p { font-size: 12px; color: var(--text-secondary); }
.explore-page .featured-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 0 0 28px; }
.explore-page.ios-app .featured-card {
  min-width: 0; padding: 0; margin: 0; cursor: default; overflow: hidden;
  border-radius: 24px; background: rgba(255,253,249,.94); border-color: rgba(255,255,255,.98);
  box-shadow: var(--ios-shadow); transition: box-shadow .2s, border-color .2s;
}
.explore-page.ios-app .featured-card::before, .explore-page.ios-app .board-card::before,
.explore-page.ios-app .board-card::after { display: none; }
.explore-page.ios-app .featured-card:hover { transform: none; border-color: rgba(65,109,120,.13); box-shadow: 0 10px 32px rgba(40,66,72,.085); }
.explore-page .featured-entry { display: block; position: relative; padding: 24px 24px 15px; color: var(--text); min-height: 142px; }
.explore-page .featured-entry:focus-visible { outline-offset: -5px; border-radius: 23px; }
.explore-page .featured-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.explore-page .featured-label { display: flex; align-items: center; gap: 14px; min-width: 0; }
.explore-page .featured-title { font-size: 20px; font-weight: 650; letter-spacing: -.4px; color: var(--text); }
.explore-page .featured-sub { margin: 0; padding-left: 62px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.explore-page .chevron { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f0f2f0; color: #72898d; flex: none; }
.explore-page .chevron .ios-symbol { width: 15px; height: 15px; }
.explore-page .chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; max-width: none; padding: 0 24px 22px; }
.explore-page .chip {
  font: inherit; font-size: 12px; font-weight: 400; min-height: 36px; padding: 8px 12px;
  background: #ecf2f3; border: 1px solid transparent; border-radius: 999px; color: #416d78;
  gap: 6px; white-space: normal; line-height: 1.3; text-align: left; max-width: 100%;
}
.explore-page .chip:hover { color: var(--primary); border-color: transparent; background: #e0ecef; }
.explore-page .chip-count { color: #5e6f6b; font-size: 11px; }
.explore-page .chip-skeleton { display: block; color: var(--text-secondary); font-size: 12px; padding: 8px 0; min-height: 36px; }
.explore-page .boards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0 0 22px; }
.explore-page.ios-app .board-card {
  display: block; min-width: 0; min-height: 186px; padding: 24px; border-radius: 24px;
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.96);
  background: rgba(255,253,249,.94); color: var(--text); box-shadow: var(--ios-shadow);
  user-select: auto; transition: background .18s, box-shadow .18s;
}
.explore-page.ios-app .board-card:hover { background: #fffdfa; transform: none; box-shadow: 0 10px 32px rgba(40,66,72,.085); border-color: rgba(65,109,120,.13); }
.explore-page.ios-app .board-card .board-icon { display: inline-flex; position: static; margin: 0 0 14px; }
.explore-page.ios-app .board-card:hover .board-icon { animation: none; background: var(--ios-tint); box-shadow: inset 0 1px 0 #ffffff80; }
.explore-page.ios-app .board-card .board-icon .ios-symbol { width: 24px; height: 24px; }
.explore-page .board-name { display: block; font-size: 17px; font-weight: 630; line-height: 1.45; letter-spacing: -.3px; }
.explore-page .board-desc { display: block; margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.explore-page .board-arrow { opacity: 1; position: absolute; top: 24px; right: 22px; font-size: inherit; }
.explore-page.ios-app .board-card:not(.ai-card) { display: flex; flex-direction: column; align-items: flex-start; }
.explore-page.ios-app .ai-card { padding: 0; }
.explore-page .board-launch { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; position: relative; width: 100%; min-height: 184px; padding: 24px; margin: 0; border: 0; border-radius: inherit; background: transparent; text-align: left; color: inherit; font: inherit; }
.explore-page .board-launch:focus-visible { outline-offset: -5px; }
.explore-page .ai-card .board-icon { color: var(--primary); }
.explore-page .hall-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 5px; color: var(--text-secondary); font-size: 12px; }
.explore-page .hall-note a { color: var(--primary); display: inline-flex; min-height: 44px; align-items: center; gap: 8px; }
.explore-page .hall-note .ios-symbol { width: 15px; height: 15px; }
.explore-page .ask-ai-fab { min-height: 48px; padding: 10px 20px; background: rgba(65,109,120,.95); border: 1px solid #ffffff40; color: #fff; box-shadow: 0 7px 24px #28424a24; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; bottom: max(16px,env(safe-area-inset-bottom)); }
.explore-page .ask-ai-fab .ios-symbol { width: 20px; height: 20px; }
.explore-page.ios-ai-open { overflow: hidden; }
.explore-page.ios-ai-open .ask-ai-fab { display: none !important; }
.explore-page .ai-overlay { background: rgba(34,51,54,.30); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.explore-page.ios-app .board-card.ai-card.expanded {
  position: fixed !important; inset: 5vh 0 auto !important; margin: 0 auto !important;
  width: min(920px,92vw) !important; height: 90vh !important; height: 90dvh !important;
  min-height: 0 !important; max-height: 820px !important; max-width: 920px !important;
  padding: 0 !important; border-radius: 28px !important; transform: none !important;
  background: #fffcf7 !important; border: 1px solid #ffffffd0 !important;
  box-shadow: 0 30px 120px rgba(37,58,62,.24) !important; cursor: default !important;
}
.explore-page .ai-card.expanded .board-launch { display: none; }
.explore-page .ai-card-content { height: 100%; min-height: 0; }
.explore-page .ai-card-header { min-height: 78px; padding: 16px 24px; background: #fbf1e8; border-bottom: 1px solid var(--ios-line); gap: 12px; }
.explore-page .ai-header-title { display: flex; align-items: center; gap: 12px; }
.explore-page .ai-header-title .app-icon { width: 40px; height: 40px; border-radius: 13px; }
.explore-page .ai-card-brand { display: block; font-size: 16px; font-weight: 650; color: var(--text); background: none; -webkit-text-fill-color: currentColor; }
.explore-page .ai-header-caption { font-size: 11px; color: var(--text-secondary); }
.explore-page .ai-minimize-btn { min-width: 44px; width: 44px; height: 44px; background: #eef1ef; color: #647873; font-size: 22px; }
.explore-page .ai-minimize-btn:hover { background: #e1edef; color: var(--primary); transform: none; }
.explore-page .ai-chat-container { padding: 18px 24px 22px; gap: 0; min-height: 0; }
.explore-page .ai-greeting { padding: 24px; animation: none; }
.explore-page .ai-greeting .app-icon { width: 64px; height: 64px; border-radius: 21px; margin-bottom: 20px; }
.explore-page .ai-greeting .app-icon .ios-symbol { width: 32px; height: 32px; }
.explore-page .ai-greeting h4 { font-size: 26px; letter-spacing: -.6px; color: var(--text); background: none; -webkit-text-fill-color: currentColor; margin-bottom: 8px; }
.explore-page .ai-greeting p { font-size: 14px; color: var(--text-secondary); }
.explore-page .ai-chat-box { min-height: 0; padding: 0 0 20px; }
.explore-page .ai-input-area {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px;
  padding: 12px 0 0; align-items: end; border-top: 1px solid var(--ios-line);
}
.explore-page .ai-notch-btn {
  position: static; grid-column: 1 / -1; justify-self: start; transform: none;
  min-height: 36px; padding: 7px 12px; border-radius: 10px; border: 0;
  background: #e9f0f2; color: var(--primary); box-shadow: none; font-size: 12px;
}
.explore-page .ai-input-area textarea { min-height: 48px; max-height: 150px; overflow-y: auto; background: #f4f3f0; border: 1px solid transparent; border-radius: 16px; padding: 13px 16px; }
.explore-page .ai-send-btn { min-height: 48px; border-radius: 16px; background: var(--ios-action); padding: 12px 22px; font-size: 14px; box-shadow: none; }
.explore-page .ai-send-btn:hover { transform: none; box-shadow: none; background: var(--ios-action-hover); }
@media(max-width:900px) {
  .explore-page .boards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .explore-page.ios-app .container { padding-top: 20px; }
  .explore-page.ios-app .hero { min-height: 182px; padding: 25px 22px; border-radius: 24px; margin-bottom: 24px; }
  .explore-page .hero-kicker { font-size: 10px; letter-spacing: .6px; margin-bottom: 9px; }
  .explore-page.ios-app .hero h1 { font-size: 30px; max-width: 75%; letter-spacing: -.7px; margin-bottom: 8px; }
  .explore-page.ios-app .hero p { font-size: 12px; max-width: 68%; line-height: 1.75; }
  .explore-page .campus-cover { width: 100%; opacity: .88; object-position: 62% 50%; }
  .explore-page .hero::before { background: linear-gradient(90deg,#f8ede1 0%,rgba(248,237,225,.94) 28%,rgba(248,237,225,.72) 50%,rgba(248,237,225,.14) 85%); }
  .explore-page .campus-caption { right: 12px; bottom: 13px; font-size: 9px; padding: 4px 8px; }
  .explore-page .section-heading { margin-bottom: 11px; }
  .explore-page .section-heading h2 { font-size: 17px; }
  .explore-page .section-heading p { font-size: 11px; }
  /* Retain original phone layout: featured cards stack, community cards are TWO columns. */
  .explore-page .featured-row { grid-template-columns: minmax(0,1fr); gap: 12px; margin-bottom: 25px; }
  .explore-page .featured-entry { min-height: 0; padding: 19px 20px 13px; }
  .explore-page .featured-label { gap: 12px; }
  .explore-page .featured-label .app-icon { width: 42px; height: 42px; border-radius: 14px; }
  .explore-page .featured-title { font-size: 18px; }
  .explore-page .featured-sub { padding-left: 54px; font-size: 12px; }
  .explore-page .chip-wrap { padding: 0 20px 16px; gap: 5px; }
  .explore-page .chip { min-height: 44px; font-size: 11px; padding: 9px 11px; }
  .explore-page .chip-count { font-size: 10px; }
  .explore-page .chip-skeleton { min-height: 36px; font-size: 11px; }
  .explore-page .boards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
  .explore-page.ios-app .board-card { min-height: 176px; padding: 18px 16px; border-radius: 22px; }
  .explore-page.ios-app .ai-card { padding: 0; }
  .explore-page .board-launch { min-height: 174px; padding: 18px 16px; }
  .explore-page.ios-app .board-card .board-icon { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px; }
  .explore-page .board-name { font-size: 15px; }
  .explore-page .board-desc { font-size: 12px; line-height: 1.6; }
  .explore-page .board-arrow { top: 18px; right: 13px; width: 24px; height: 24px; background: transparent; }
  .explore-page .hall-note { align-items: flex-start; flex-direction: column; gap: 0; padding: 4px; }
  .explore-page.ios-app .board-card.ai-card.expanded {
    inset: 4dvh 0 0 !important; width: 100vw !important; height: 96dvh !important;
    max-height: none !important; border-radius: 26px 26px 0 0 !important;
  }
  .explore-page .ai-card-header { padding: 15px 20px; min-height: 76px; }
  .explore-page .ai-chat-container { padding: 14px 16px max(18px,env(safe-area-inset-bottom)); }
  .explore-page .ai-greeting { padding: 20px 10px; }
  .explore-page .ai-greeting h4 { font-size: 22px; }
  .explore-page .ai-input-area textarea { font-size: 16px; }
}
@media(max-width:350px) {
  .explore-page .boards { gap: 8px; }
  .explore-page .board-name { font-size: 14px; }
  .explore-page .board-desc { font-size: 11px; }
  .explore-page .featured-sub { padding-left: 0; margin-top: 8px; }
  .explore-page .section-heading p { display: none; }
}


/* AI's warm accent is shared with its dialog. All other entry icons remain mist-blue. */
body.ios-app.explore-page .feature-ai .board-icon,
body.ios-app.explore-page .ai-header-title .app-icon,
body.ios-app.explore-page .ai-greeting .app-icon {
  background: var(--ios-action-soft); color: var(--ios-action);
}
body.ios-app.explore-page .feature-ratings .board-icon { color: #987346; background: #f6edda; }
.explore-page .feature-ratings .board-desc { padding-right: 0; }
@media(min-width:901px) {
  .explore-page.ios-app .board-card:not(.expanded) { min-height: 186px; padding: 22px 19px; }
  .explore-page.ios-app .ai-card:not(.expanded) { padding: 0; }
  .explore-page .board-launch { padding: 22px 19px; }
  .explore-page .board-arrow { right: 16px; }
}
