/* THE OWNER'S PAGES ("My minerals"): the owner's menu, the plan card, the happening list, the standing facts, the
   other owners' fold. Only the variables of style.css :root are used (and rgba tints of their -rgb triples), so every
   rule follows the dark and the light theme. Every class here starts with om-. */

/* ---------------------------------------------------------------- the owner's menu */
.om-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin: 12px 0 4px; padding: 6px; background: var(--surface-1); border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.om-tabs { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.om-tabs li { margin: 0; }
.om-tab { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: var(--r);
  color: var(--text-2); font-weight: 600; font-size: .92rem; text-decoration: none; }
.om-tab:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.om-tab[aria-current="page"] { background: rgba(var(--accent-rgb), .12); color: var(--accent-text);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35); }
.om-signout { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 8px; min-width: 0; }
.om-who { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- the overview */
/* this sheet is linked BEFORE style.css (base.html's head block), so a rule that changes a class of the site's own
   (statrow, card) names both classes to win */
.statrow.om-stats { grid-template-columns: repeat(2, 1fr); }
.card.om-plan { border-left: 3px solid var(--accent); background: rgba(var(--accent-rgb), .05); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 14px; padding-bottom: 14px; }
.card.om-plan p { margin: 0; }
.om-plan-lead { font-size: 1.04rem; color: var(--text); }
.om-happening { list-style: none; margin: 0; padding: 0; }
.om-happening li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.om-happening li:last-child { border-bottom: 0; }
.om-happening a { color: var(--text); }
.om-happening a:hover { color: var(--accent-text); }

/* ---------------------------------------------------------------- a unit, for its owner */
.om-facts { margin: 0; padding-left: 1.2em; color: var(--text); }
.om-facts li { margin: 4px 0; }
.om-others > summary { cursor: pointer; list-style: none; }
.om-others > summary::-webkit-details-marker { display: none; }
.om-others > summary h2 { display: inline; font-size: 1.15rem; margin: 0; }
.om-others > summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--muted); font-weight: 600; }
.om-others[open] > summary::before { content: "\2212"; }
.om-others[open] > summary { margin-bottom: 12px; }

/* ---------------------------------------------------------------- settings */
.om-offers-marketing h3 { margin-top: 20px; }
.om-offers-marketing h3:first-child { margin-top: 0; }

@media (min-width: 720px) {
  .statrow.om-stats { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 560px) {
  .om-menu { flex-direction: column; align-items: stretch; }
  .om-tab { padding: 6px 10px; font-size: .88rem; }
  .om-signout { justify-content: space-between; padding: 0 6px 4px; }
}
