/* ʻŌlelo Online – Help hub
   Brand tokens follow the OleloOnline_2026 child theme (section 01). */

.oo-hub {
  --hub-ink: #222222;
  --hub-muted: #5b5566;
  --hub-body: #3d3846;
  --hub-line: #dfe6e4;
  --hub-line-soft: #e6ecea;
  --hub-field: #c9d3d1;
  --hub-mint: #f7fcfa;
  --hub-card: #ffffff;
  --hub-purple: #793195;
  --hub-purple-dark: #4B0A65;
  --hub-green: #0a6b00;
  --hub-orange: #974E08;
  --hub-tone: var(--hub-purple);
  --hub-tone-dark: var(--hub-purple-dark);
  --hub-tone-tint: #f3e9f7;

  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--hub-ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.oo-hub *, .oo-hub *::before, .oo-hub *::after { box-sizing: border-box; }
.oo-hub p { margin: 0; }

/* Tone per path ------------------------------------------------------- */
.oo-tone-purple { --hub-tone: #793195; --hub-tone-dark: #4B0A65; --hub-tone-tint: #f3e9f7; }
.oo-tone-green  { --hub-tone: #0a6b00; --hub-tone-dark: #0a5400; --hub-tone-tint: #e6f5df; }
.oo-tone-orange { --hub-tone: #974E08; --hub-tone-dark: #7a3d05; --hub-tone-tint: #fdf0e3; }
.oo-tone-slate  { --hub-tone: #2f4a4a; --hub-tone-dark: #233838; --hub-tone-tint: #eaf0f0; }
.oo-tone-gold   { --hub-tone: #7a4a00; --hub-tone-dark: #5e3900; --hub-tone-tint: #fff3d6; }

/* Header ------------------------------------------------------------- */
.oo-hub-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 12px; }
.oo-hub-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hub-green); }
.oo-hub .oo-hub-title { margin: 0; font-family: Vollkorn, Georgia, serif; font-weight: 600; font-size: clamp(34px, 5vw, 46px); line-height: 1.15; color: var(--hub-purple); }
.oo-hub-lede { max-width: 560px; font-size: 18px; color: #4f4a57; }

.oo-hub-hello {
  align-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; background: #f3e9f7; color: var(--hub-purple-dark); font-size: 15px; text-align: center;
}

/* Tiles -------------------------------------------------------------- */
.oo-hub-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }

.oo-hub .oo-hub-tile {
  display: flex; flex-direction: column; gap: 10px; min-height: 168px; padding: 20px;
  background: var(--hub-card); border: 2px solid var(--hub-line); border-radius: 14px;
  color: var(--hub-ink); text-decoration: none !important; transition: border-color .15s, transform .15s;
}
.oo-hub .oo-hub-tile span { text-decoration: none !important; }
.oo-hub .oo-hub-tile:hover { border-color: var(--hub-tone); color: var(--hub-ink); transform: translateY(-2px); }
.oo-hub .oo-hub-tile:focus-visible { outline: 3px solid var(--hub-tone); outline-offset: 2px; }
.oo-hub .oo-hub-tile.is-active { border-color: var(--hub-purple); box-shadow: inset 0 0 0 1px var(--hub-purple); }

.oo-hub-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--hub-tone-tint); color: var(--hub-tone);
}
.oo-hub-tile-title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.oo-hub-tile-sub { font-size: 14px; line-height: 1.45; color: var(--hub-muted); }

/* Panels ------------------------------------------------------------- */
.oo-hub-panels { display: flex; flex-direction: column; gap: 24px; }

.oo-hub-panel {
  width: 100%; max-width: 860px; align-self: center; padding: 32px;
  background: var(--hub-card); border: 1px solid var(--hub-line); border-radius: 18px;
  display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px;
}
.oo-hub .oo-hub-panel-title { margin: 0; font-family: Vollkorn, Georgia, serif; font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--hub-tone-dark); outline: none; }
.oo-hub-panel-intro { margin-top: -14px !important; color: var(--hub-muted); }

/* Quick answers */
.oo-hub-answers { border-top: 1px solid var(--hub-line-soft); }
.oo-hub .oo-hub-qa { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--hub-line-soft); background: none; }
.oo-hub.is-enhanced .oo-hub-panel.has-qa.is-asking .oo-hub-panel-intro { display: none; }
.oo-hub-qa > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 14px 0; font-weight: 600; font-size: 17px; line-height: 1.4;
}
.oo-hub-qa > summary::-webkit-details-marker { display: none; }
.oo-hub-qa > summary:focus-visible { outline: 3px solid var(--hub-tone); outline-offset: 2px; border-radius: 4px; }
.oo-hub-qa > summary .oo-hub-svg { flex: none; width: 20px; height: 20px; color: var(--hub-tone); transition: transform .2s; margin-top: 2px; }
.oo-hub-qa[open] > summary .oo-hub-svg { transform: rotate(180deg); }
.oo-hub-a { padding: 0 0 16px; color: var(--hub-body); max-width: 68ch; }
.oo-hub-a a, .oo-hub-way a { color: var(--hub-purple-dark); text-decoration: underline; text-underline-offset: 2px; }

.oo-hub-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: var(--hub-mint); border-radius: 12px; font-weight: 500;
}

.oo-hub .oo-hub-btn {
  min-height: 44px; padding: 12px 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--hub-tone); color: #ffffff; font: inherit; font-weight: 600; line-height: 1.2;
}
.oo-hub .oo-hub-btn:hover { background: var(--hub-tone-dark); color: #ffffff; }
.oo-hub .oo-hub-btn:focus-visible { outline: 3px solid var(--hub-tone); outline-offset: 2px; }

.oo-hub .oo-hub-back {
  align-self: flex-start; min-height: 44px; padding: 10px 0; border: 0; background: none; box-shadow: none; cursor: pointer;
  color: var(--hub-tone-dark); font: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.oo-hub .oo-hub-back:hover { background: none; color: var(--hub-tone); }

/* Staff cards */
.oo-hub-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.oo-hub .oo-hub-person {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; text-align: left; cursor: pointer;
  background: var(--hub-card); border: 2px solid var(--hub-line); border-radius: 14px; color: var(--hub-ink); font: inherit;
}
.oo-hub .oo-hub-person:hover { border-color: var(--hub-tone); background: var(--hub-card); color: var(--hub-ink); }
.oo-hub .oo-hub-person:focus-visible { outline: 3px solid var(--hub-purple); outline-offset: 2px; }
.oo-hub .oo-hub-person[aria-pressed="true"] { border-color: var(--hub-purple); box-shadow: inset 0 0 0 1px var(--hub-purple); }
.oo-hub-avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--hub-tone-tint); color: var(--hub-tone-dark); font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 18px;
}
.oo-hub-person-text { display: flex; flex-direction: column; gap: 2px; }
.oo-hub-person-name { font-weight: 600; font-size: 17px; }
.oo-hub-person-role { font-size: 14px; font-weight: 500; color: var(--hub-purple-dark); line-height: 1.4; }
.oo-hub-person-helps { font-size: 14px; color: var(--hub-muted); line-height: 1.45; }

/* Form area */
.oo-hub-form { display: flex; flex-direction: column; gap: 12px; }
.oo-tone-gold .oo-hub-form { padding: 20px; background: var(--hub-mint); border-radius: 12px; }
.oo-hub .oo-hub-form-title { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 18px; font-weight: 600; color: var(--hub-ink); }
.oo-hub-setup-note { padding: 12px 16px; background: #fff3d6; border-radius: 8px; }

/* Fluent Forms inside the hub */
.oo-hub .fluentform fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.oo-hub .fluentform fieldset > * { grid-column: 1 / -1; }
.oo-hub .fluentform fieldset > .oo-half { grid-column: auto; }
.oo-hub .fluentform .ff-el-group { margin-bottom: 16px; }
.oo-hub .fluentform .ff-el-input--label label { font-weight: 500; font-size: 16px; color: var(--hub-ink); }
.oo-hub .fluentform .ff-el-help-message { font-size: 14px; color: var(--hub-muted); font-style: normal; }
.oo-hub .fluentform .ff-el-form-control {
  min-height: 46px; padding: 10px 12px; border: 1px solid var(--hub-field); border-radius: 8px;
  background: #ffffff; color: var(--hub-ink); font: inherit; font-size: 16px;
}
.oo-hub .fluentform textarea.ff-el-form-control { min-height: 120px; resize: vertical; }
.oo-hub .fluentform .ff-el-form-control:focus { border-color: var(--hub-tone); box-shadow: 0 0 0 3px var(--hub-tone-tint); outline: none; }
.oo-hub .fluentform .ff-el-is-error .ff-el-form-control { border-color: #b3261e; }
.oo-hub .fluentform .error, .oo-hub .fluentform .text-danger { color: #b3261e; font-size: 14px; }
.oo-hub .fluentform .ff_submit_btn_wrapper { margin: 4px 0 0; }
.oo-hub .fluentform .ff-btn-submit.oo-hub-submit,
.oo-hub .fluentform .ff-btn-submit {
  min-height: 46px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px;
  background: var(--hub-tone) !important; border-color: var(--hub-tone) !important; color: #ffffff !important;
}
.oo-hub .fluentform .ff-btn-submit:hover { background: var(--hub-tone-dark) !important; }
.oo-hub .ff-message-success {
  padding: 20px 22px; border: 0; border-radius: 12px; background: #e6f5df; color: #0a3d00; box-shadow: none; font-size: 16px;
}

/* Feedback kind as pills */
.oo-hub .oo-pills .ff-el-input--content { display: flex; flex-wrap: wrap; gap: 10px; }
.oo-hub .oo-pills .ff-el-form-check { margin: 0; }
.oo-hub .oo-pills .ff-el-form-check-label {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--hub-line); border-radius: 999px; cursor: pointer; font-weight: 500;
}
.oo-hub .oo-pills .ff-el-form-check.ff_item_selected .ff-el-form-check-label,
.oo-hub .oo-pills .ff-el-form-check-label:has(input:checked) { border-color: var(--hub-purple); background: #f3e9f7; color: var(--hub-purple-dark); }

/* Other ways */
.oo-hub-other { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.oo-hub-way { padding: 18px 20px; background: var(--hub-card); border: 1px solid var(--hub-line); border-radius: 14px; font-size: 15px; line-height: 1.5; color: var(--hub-body); }
.oo-hub-way-title { font-weight: 600; color: var(--hub-ink); font-size: 16px; }

/* ---------------------------------------------------------------------
   Enhanced (JavaScript) behaviour. Without JS every path stays visible,
   in order, so nothing is ever hidden from people or crawlers.
   ------------------------------------------------------------------- */
.oo-hub.is-enhanced .oo-hub-panel[hidden] { display: none; }
.oo-hub.is-enhanced:not(.has-panel) .oo-hub-panels { display: none; }
.oo-hub.is-enhanced .oo-hub-panel:not(.is-asking) .oo-hub-form { display: none; }
.oo-hub.is-enhanced .oo-hub-panel.is-asking .oo-hub-answers,
.oo-hub.is-enhanced .oo-hub-panel.is-asking .oo-hub-cta { display: none; }
.oo-hub:not(.is-enhanced) .oo-hub-back { display: none; }

/* Phones: tiles become compact rows */
@media (max-width: 640px) {
  .oo-hub { gap: 22px; }
  .oo-hub-lede { font-size: 16px; }
  .oo-hub-tiles { grid-template-columns: 1fr; gap: 10px; }
  .oo-hub .oo-hub-tile { flex-direction: row; align-items: center; min-height: 0; padding: 12px 14px; gap: 12px; border-radius: 12px; }
  .oo-hub .oo-hub-tile:hover { transform: none; }
  .oo-hub-icon { width: 38px; height: 38px; flex: none; }
  .oo-hub-icon .oo-hub-svg { width: 20px; height: 20px; }
  .oo-hub-tile-sub { display: none; }
  .oo-hub-panel { padding: 22px 18px; border-radius: 16px; }
  .oo-hub .oo-hub-panel-title { font-size: 24px; }
  .oo-hub-cta { flex-direction: column; align-items: stretch; }
  .oo-hub .oo-hub-cta .oo-hub-btn { width: 100%; }
  .oo-hub .fluentform fieldset { grid-template-columns: 1fr; }
  .oo-hub .fluentform fieldset > .oo-half { grid-column: 1 / -1; }
  .oo-hub .fluentform .ff_submit_btn_wrapper .ff-btn-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .oo-hub .oo-hub-tile, .oo-hub-qa > summary .oo-hub-svg { transition: none; }
}
