/*
Theme Name: Root Child
Theme URI: https://minimalmass.net/
Template: root
Author: minimalmass.net
Description: Local child theme for Root style fixes.
Version: 1.0.1
Text Domain: root-child
*/

/* User account */
.mm-account-container {
  width: min(var(--mm-width), calc(100% - 48px));
  max-width: var(--mm-width);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 18px 0 24px;
}
.mm-account-page { width: 100%; max-width: none !important; margin: 0; }
.mm-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mm-account-grid .mm-account-card:first-child { grid-column: 2; }
.mm-account-grid .mm-account-card--register { grid-column: 1; grid-row: 1; }
.mm-account-grid .mm-account-card:only-child { grid-column: 2; max-width: 430px; justify-self: end; }
.mm-account-card { background: #fff; border: 0; border-radius: 8px; box-shadow: none; padding: 18px; }
.mm-account-card h1, .mm-account-card h2 { margin: 0 0 8px; color: #222; }
.mm-account-card h1 { font-size: 24px; line-height: 1.15; }
.mm-account-card h2 { font-size: 28px; }
.mm-account-eyebrow { margin: 0 0 12px; font-size: 11px; letter-spacing: .15em; color: #777; }
.mm-account-lead { margin: 0 0 22px; color: #686868; line-height: 1.55; }
.mm-account-form { display: grid; gap: 8px; }
.mm-account-form label { font-size: 13px; color: #555; }
.mm-account-form input[type=email], .mm-account-form input[type=password], .mm-account-form input[type=text] { width: 100%; box-sizing: border-box; border: 1px solid rgba(0,0,0,.14); border-radius: 9px; padding: 11px 12px; background: #f8f8f8; color: #222; margin: 0 0 8px; }
.mm-account-form input:focus { outline: 2px solid rgba(20,20,20,.18); outline-offset: 1px; }
.mm-account-button, .mm-account-google { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; box-sizing: border-box; border: 0; border-radius: 9px; padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.mm-account-button { background: #222; color: #fff; margin-top: 6px; }
.mm-account-button:hover { background: #444; color: #fff; }
.mm-account-button--quiet { background: #d7d7d7; color: #222; }
.mm-account-google { width: 100%; gap: 10px; background: #fff; border: 1px solid rgba(0,0,0,.14); color: #222; }
.mm-account-google:hover { background: #f7f7f7; color: #222; }
.mm-account-google-mark { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-weight: 700; color: #4285f4; }
.mm-account-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 16px; color: #888; font-size: 12px; }
.mm-account-divider::before, .mm-account-divider::after { content: ""; height: 1px; flex: 1; background: rgba(0,0,0,.12); }
.mm-account-check { display: flex; align-items: center; gap: 7px; margin: 2px 0 4px; }
.mm-account-check input { margin: 0; }
.mm-account-secondary-link { display: inline-block; margin-top: 16px; color: #555; font-size: 13px; }
.mm-account-secondary-link:hover { color: #111; }
.mm-account-readonly { padding: 11px 12px; border-radius: 9px; background: rgba(255,255,255,.42); color: #555; margin-bottom: 10px; overflow-wrap: anywhere; }
.mm-account-avatar { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 0 12px; }
.mm-account-profile-name { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: #222; }
.mm-account-status { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 13px; color: #4e6657; }
.mm-account-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5a9b70; }
.mm-account-notice { margin: 0 0 18px; padding: 12px 15px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.mm-account-notice--success { background: #e4f0e7; color: #31563c; }
.mm-account-notice--error { background: #f5e4e2; color: #713d37; }
.mm-account-resend { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.1); }
.mm-account-resend p { margin: 0 0 12px; font-size: 13px; color: #686868; }

/* Compact favorite action at the right edge of Download row */
.mm-favorite-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  width: 2.35em !important;
  min-width: 2.35em !important;
  max-width: 2.35em !important;
  height: 2.35em !important;
  min-height: 0 !important;
  flex: 0 0 2.35em !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #eb7f2d !important;
  color: #fff !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.mm-favorite-toggle:hover,
.mm-favorite-toggle:focus-visible { background: #eb7f2d !important; color: #fff !important; outline: none !important; }
.mm-favorite-toggle.is-saved { background: #3f9b68 !important; }
html.mm-dark .mm-favorite-toggle:not(.is-saved),
html.mm-dark .mm-favorite-toggle:not(.is-saved):hover,
html.mm-dark .mm-favorite-toggle:not(.is-saved):focus-visible { background: #f07b2a !important; }
.mm-favorite-toggle.is-saving .mm-favorite-icon {
  animation: mm-favorite-twinkle .72s cubic-bezier(.22, 1, .36, 1) 1;
}
@keyframes mm-favorite-twinkle {
  0% { transform: scale(.62) rotate(-10deg); filter: drop-shadow(0 0 0 transparent); }
  28% { transform: scale(1.38) rotate(4deg); filter: drop-shadow(0 0 7px rgba(255, 214, 74, .9)); }
  52% { transform: scale(.96) rotate(-3deg); filter: drop-shadow(0 0 3px rgba(255, 214, 74, .55)); }
  76% { transform: scale(1.16) rotate(1deg); filter: drop-shadow(0 0 5px rgba(255, 214, 74, .7)); }
  100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 0 transparent); }
}
.mm-favorite-icon {
  flex: 0 0 auto;
  font-size: 1.25em;
  text-align: center;
}
.release-detail__content .btn-box { position: relative !important; display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; align-items: center !important; width: 100% !important; min-height: 34px; }
.release-detail__content .btn-box .mm-secure-download-link { grid-column: 2; grid-row: 1; justify-self: center; margin: 0 !important; }
.release-detail__content .btn-box .mm-favorite-toggle { grid-column: 3; grid-row: 1; justify-self: end; position: static !important; transform: none; }
.mm-account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.mm-account-content { grid-column: 1; grid-row: 1; min-width: 0; }
.mm-account-sidebar { grid-column: 2; grid-row: 1; min-width: 0; }
.mm-account-favorites { margin-top: 0; }
.mm-account-favorites > h2 { margin: 0 0 14px; color: #222; font-size: 28px; }
.mm-account-empty-favorites { margin: 0; padding: 20px; border-radius: 12px; background: rgba(255,255,255,.42); color: #686868; }
.mm-account-favorite-posts { margin-top: 0; }
@media (max-width: 700px) {
  .mm-account-layout { grid-template-columns: 1fr; }
  .mm-account-content { grid-column: 1; grid-row: 2; }
  .mm-account-sidebar { grid-column: 1; grid-row: 1; }
  .mm-account-grid { grid-template-columns: 1fr; }
  .mm-account-grid .mm-account-card:first-child, .mm-account-grid .mm-account-card--register { grid-column: 1; grid-row: auto; }
  .mm-account-grid .mm-account-card:only-child { grid-column: 1; max-width: none; justify-self: stretch; }
  .mm-account-card { padding: 22px 18px; }
}

@media (max-width: 820px) {
  .mm-account-container { width: calc(100% - 28px); }
}

@media (max-width: 767px) and (orientation: portrait) {
  .mm-account-container { width: 100%; }
}

html.mm-dark .mm-account-card {
  background: #2b3036 !important;
  color: #e5e8ec !important;
}
html.mm-dark .mm-account-card h1,
html.mm-dark .mm-account-card h2,
html.mm-dark .mm-account-favorites > h2,
html.mm-dark .mm-account-profile-name { color: #f2f4f6 !important; }
html.mm-dark .mm-account-eyebrow,
html.mm-dark .mm-account-lead { color: #a8aeb6 !important; }
html.mm-dark .mm-account-readonly {
  background: #343a42 !important;
  color: #e5e8ec !important;
}
html.mm-dark .mm-account-status { color: #9fc8aa !important; }
html.mm-dark .mm-account-button { background: #f0f2f4 !important; color: #202328 !important; }
html.mm-dark .mm-account-button:hover { background: #fff !important; color: #202328 !important; }
html.mm-dark .mm-account-empty-favorites { background: #2b3036 !important; color: #a8aeb6 !important; }

.mm-account-preferences {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, .1);
}
.mm-account-preferences h2 {
  margin: 0 0 12px;
  color: #222;
  font-size: 18px;
}
.mm-account-theme-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.mm-account-theme-title { color: #222; font-size: 14px; font-weight: 600; }
.mm-account-theme-description { margin: 2px 0 0; color: #686868; font-size: 12px; line-height: 1.4; }
.mm-account-theme-control { display: flex; align-items: center; justify-content: flex-end; }
.mm-account-theme-control .mm-theme-toggle {
  position: relative;
  top: auto;
  right: auto;
  width: 58px;
  height: 38px;
  flex: 0 0 58px;
  transform: none;
  box-shadow: none;
}
.mm-account-downloads-row { margin-top: 14px; }
.mm-account-downloads-form { display: flex; align-items: center; justify-content: flex-end; margin: 0; }
.mm-account-pref-toggle {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 34px;
  flex: 0 0 58px;
  align-items: center;
  padding: 0;
  border: 1px solid #d1d6dc;
  border-radius: 999px;
  background: #e2e6eb;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 7%);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.mm-account-pref-toggle span {
  position: absolute;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
  transition: left .18s ease;
}
.mm-account-pref-toggle.is-enabled span { left: 28px; }
.mm-account-pref-toggle:focus-visible { outline: 2px solid #eb7f2d; outline-offset: 2px; }
html.mm-dark .mm-account-pref-toggle { border-color: #424953; background: #20252b; }
.mm-account-layout--guest {
  grid-template-columns: minmax(0, 430px);
  justify-content: center;
}
.mm-account-layout--guest .mm-account-sidebar { grid-column: 1; grid-row: 1; }
html.mm-dark .mm-account-preferences { border-color: rgba(255, 255, 255, .14); }
html.mm-dark .mm-account-preferences h2,
html.mm-dark .mm-account-theme-title { color: #f2f4f6; }
html.mm-dark .mm-account-theme-description { color: #a8aeb6; }
