/* Canonical READMADE navigation and footer shared by non-home pages. */

.publishing-app:not(.rm-home) .site-header.rm-header {
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  box-shadow: none;
}

.publishing-app:not(.rm-home) .site-header.rm-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(32, 27, 47, 0.08);
}

.publishing-app:not(.rm-home) .header-inner.rm-header-inner {
  width: min(1320px, calc(100% - 52px));
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  max-width: none;
}

.publishing-app:not(.rm-home) .rm-brand {
  z-index: 101;
  flex: 0 0 auto;
  width: 173px;
}

.publishing-app:not(.rm-home) .brand-logo.rm-brand-logo {
  width: 157px;
  max-width: none;
  max-height: 53px;
  object-fit: contain;
  object-position: left center;
}

.publishing-app:not(.rm-home) .site-nav.rm-nav {
  position: static;
  display: flex;
  gap: 0;
  align-items: center;
  justify-self: end;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.publishing-app:not(.rm-home) .rm-nav-kicker {
  display: none;
}

.publishing-app:not(.rm-home) .site-nav.rm-nav a,
.publishing-app:not(.rm-home) .site-nav.rm-nav button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 7px 11px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(calc(0.78rem + 0.167rem), calc(1.12vw + 0.167rem), calc(0.94rem + 0.167rem));
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.publishing-app:not(.rm-home) .site-nav.rm-nav > a + a,
.publishing-app:not(.rm-home) .site-nav.rm-nav > a + button,
.publishing-app:not(.rm-home) .site-nav.rm-nav > button + button:not(.theme-toggle) {
  border-left: 1px solid var(--line);
}

.publishing-app:not(.rm-home) .site-nav.rm-nav a::after {
  display: none;
}

.publishing-app:not(.rm-home) .site-nav.rm-nav a:hover,
.publishing-app:not(.rm-home) .site-nav.rm-nav a[aria-current="page"],
.publishing-app:not(.rm-home) .site-nav.rm-nav button:hover {
  color: var(--brand);
}

.publishing-app:not(.rm-home) .site-nav.rm-nav .theme-toggle.rm-theme-icon-button {
  display: inline-grid;
  align-self: flex-start;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: calc(1rem + 0.167rem);
  line-height: 1;
}

.publishing-app:not(.rm-home) .site-nav.rm-nav .theme-toggle.rm-theme-icon-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.publishing-app:not(.rm-home) .workspace-title h1,
.publishing-app:not(.rm-home) .project-app-title h1 {
  font-family: var(--font-ui);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.publishing-app:not(.rm-home) .rm-page-tag {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin: 0 0 12px;
  padding: 0 7px 10px 2px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(calc(0.72rem + 0.167rem), calc(1.1vw + 0.167rem), calc(0.88rem + 0.167rem));
  font-weight: 900;
  isolation: isolate;
  letter-spacing: -0.04em;
  text-transform: none;
  transform: rotate(-2deg);
}

.publishing-app:not(.rm-home) .rm-page-tag::before {
  position: absolute;
  z-index: -1;
  right: -8px;
  bottom: 2px;
  left: -5px;
  height: 12px;
  border-radius: 55% 37% 52% 44% / 57% 48% 60% 41%;
  background: linear-gradient(90deg, #f42c8d 0 48%, #6439e8 48% 71%, #08bdb9 71% 100%);
  clip-path: polygon(0 31%, 13% 7%, 29% 28%, 48% 0, 65% 35%, 82% 9%, 100% 38%, 96% 86%, 76% 67%, 59% 100%, 42% 68%, 21% 94%, 0 69%);
  content: "";
  transform: rotate(-1.6deg) skewX(-10deg);
}

.publishing-app:not(.rm-home) .rm-page-tag::after {
  position: absolute;
  z-index: -1;
  right: -4px;
  bottom: -4px;
  left: 12px;
  height: 7px;
  border-top: 3px solid var(--text);
  border-radius: 50%;
  content: "";
  transform: rotate(-1deg);
}

.publishing-app:not(.rm-home) .rm-page-note {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: calc(0.66rem + 0.167rem);
  font-weight: 700;
  line-height: 1.4;
}

.publishing-app:not(.rm-home) .rm-page-note i {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #08bdb9;
  box-shadow: 0 0 0 3px color-mix(in srgb, #08bdb9 23%, transparent);
}

.publishing-app:not(.rm-home) .rm-nav .is-live span {
  padding: 3px 5px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: calc(0.56rem + 0.167rem);
  letter-spacing: 0.05em;
}

.publishing-app:not(.rm-home) .rm-header-tools {
  display: flex;
  gap: 7px;
  align-items: center;
}

.publishing-app:not(.rm-home) .rm-tool,
.publishing-app:not(.rm-home) .nav-toggle.rm-menu-toggle {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: calc(1.15rem + 0.167rem);
  font-weight: 850;
  line-height: 1;
}

.publishing-app:not(.rm-home) .nav-toggle.rm-menu-toggle {
  display: none;
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
  font-size: calc(1rem + 0.167rem);
}

.publishing-app:not(.rm-home) .rm-tool:hover,
.publishing-app:not(.rm-home) .nav-toggle.rm-menu-toggle:hover {
  transform: translateY(-1px);
}

.publishing-app:not(.rm-home) .site-footer.rm-footer {
  padding: 0;
  border: 0;
  background: #111116;
  color: #fff;
}

.publishing-app:not(.rm-home) .rm-footer .shell {
  width: min(1320px, calc(100% - 52px));
}

.publishing-app:not(.rm-home) .rm-footer-top {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr;
  gap: clamp(28px, 5vw, 88px);
  padding: 62px 0 46px;
}

.publishing-app:not(.rm-home) .rm-footer-brand {
  display: grid;
  align-content: start;
}

.publishing-app:not(.rm-home) .rm-footer-logo {
  width: 182px;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28));
}

.publishing-app:not(.rm-home) .rm-footer-brand > span {
  margin-top: 15px;
  max-width: 266px;
  color: #bbb7c5;
  font-size: calc(0.72rem + 0.167rem);
  font-weight: 600;
  line-height: 1.55;
}

.publishing-app:not(.rm-home) .rm-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
}

.publishing-app:not(.rm-home) .rm-footer-links > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.publishing-app:not(.rm-home) .rm-footer-links b,
.publishing-app:not(.rm-home) .rm-footer-news > b {
  margin-bottom: 4px;
  color: #ffc223;
  font-size: calc(0.68rem + 0.167rem);
  font-weight: 950;
  letter-spacing: 0.1em;
}

.publishing-app:not(.rm-home) .rm-footer-links a,
.publishing-app:not(.rm-home) .rm-footer-links button {
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-size: calc(0.74rem + 0.167rem);
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.publishing-app:not(.rm-home) .rm-footer-links a:hover,
.publishing-app:not(.rm-home) .rm-footer-links button:hover {
  color: #08bdb9;
}

.publishing-app:not(.rm-home) .rm-footer-links em {
  margin-left: 3px;
  color: #08bdb9;
  font-size: calc(0.55rem + 0.167rem);
  font-style: normal;
  font-weight: 950;
}

.publishing-app:not(.rm-home) .rm-footer-news {
  display: grid;
  align-content: start;
}

.publishing-app:not(.rm-home) .rm-footer-news > b {
  color: #fff;
  font-size: calc(0.91rem + 0.167rem);
  letter-spacing: -0.04em;
}

.publishing-app:not(.rm-home) .rm-footer-news > p {
  margin: 4px 0 13px;
  color: #bbb7c5;
  font-size: calc(0.68rem + 0.167rem);
}

.publishing-app:not(.rm-home) .rm-footer-news form {
  display: flex;
  max-width: 360px;
  overflow: hidden;
  border: 1px solid #5b5667;
  border-radius: 999px;
}

.publishing-app:not(.rm-home) .rm-footer-news input {
  width: min(100%, 232px);
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-size: calc(0.7rem + 0.167rem);
}

.publishing-app:not(.rm-home) .rm-footer-news input::placeholder {
  color: #8f899c;
}

.publishing-app:not(.rm-home) .rm-footer-news button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: #ffc223;
  color: #111116;
  font-family: var(--font-ui);
  font-size: calc(0.68rem + 0.167rem);
  font-weight: 900;
}

.publishing-app:not(.rm-home) .rm-footer-bottom {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 17px 0 21px;
  border-top: 1px solid #3f3b47;
}

.publishing-app:not(.rm-home) .rm-footer-bottom p {
  margin: 0;
  color: #938d9f;
  font-size: calc(0.64rem + 0.167rem);
}

.publishing-app:not(.rm-home) .rm-footer-bottom p:last-child {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #d7d3df;
  text-align: right;
}

.publishing-app:not(.rm-home) .rm-footer-bottom i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #08bdb9;
}

@media (max-width: 1320px) {
  .publishing-app:not(.rm-home) .rm-nav .is-live span {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  .publishing-app:not(.rm-home) .header-inner.rm-header-inner {
    gap: 12px;
  }

  .publishing-app:not(.rm-home) .rm-brand {
    width: 160px;
  }

  .publishing-app:not(.rm-home) .brand-logo.rm-brand-logo {
    width: 144px;
    max-height: 48px;
  }

  .publishing-app:not(.rm-home) .site-nav.rm-nav {
    gap: 0;
  }

  .publishing-app:not(.rm-home) .rm-nav .is-live span {
    display: none;
  }

  .publishing-app:not(.rm-home) .rm-header-tools {
    gap: 5px;
  }

  .publishing-app:not(.rm-home) .rm-tool {
    width: 30px;
    height: 30px;
    font-size: calc(1rem + 0.167rem);
  }
}

@media (max-width: 900px) {
  .publishing-app:not(.rm-home) .site-header.rm-header {
    height: 61px;
  }

  .publishing-app:not(.rm-home) .header-inner.rm-header-inner,
  .publishing-app:not(.rm-home) .rm-footer .shell {
    width: min(100% - 30px, 1320px);
  }

  .publishing-app:not(.rm-home) .header-inner.rm-header-inner {
    grid-template-columns: 1fr auto;
    gap: 9px;
  }

  .publishing-app:not(.rm-home) .rm-brand {
    width: 147px;
  }

  .publishing-app:not(.rm-home) .brand-logo.rm-brand-logo {
    width: 133px;
    max-height: 45px;
  }

  .publishing-app:not(.rm-home) .site-nav.rm-nav {
    position: fixed;
    z-index: 99;
    top: 69px;
    right: 15px;
    left: auto;
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    justify-self: auto;
    width: min(296px, calc(100% - 30px));
    padding: 15px 18px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(32, 27, 47, 0.2);
  }

  .publishing-app:not(.rm-home) .site-nav.rm-nav.is-open {
    display: flex;
  }

  .publishing-app:not(.rm-home) .rm-nav-kicker {
    display: block;
    margin: 0 0 5px;
    color: var(--brand);
    font-size: calc(0.61rem + 0.167rem);
    font-weight: 950;
    letter-spacing: 0.11em;
  }

  .publishing-app:not(.rm-home) .site-nav.rm-nav a,
  .publishing-app:not(.rm-home) .site-nav.rm-nav button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
    font-size: calc(0.86rem + 0.5rem);
  }

  .publishing-app:not(.rm-home) .site-nav.rm-nav > a + a,
  .publishing-app:not(.rm-home) .site-nav.rm-nav > a + button,
  .publishing-app:not(.rm-home) .site-nav.rm-nav > button + button:not(.theme-toggle) {
    border-left: 0;
  }

  .publishing-app:not(.rm-home) .site-nav.rm-nav .theme-toggle {
    justify-content: flex-start;
    gap: 7px;
    border-bottom: 0;
    color: var(--muted);
    font-size: calc(0.75rem + 0.167rem);
  }

  .publishing-app:not(.rm-home) .rm-nav .is-live span {
    display: inline-block;
  }

  .publishing-app:not(.rm-home) .rm-header-tools {
    gap: 5px;
  }

  .publishing-app:not(.rm-home) .rm-tool {
    display: none;
  }

  .publishing-app:not(.rm-home) .nav-toggle.rm-menu-toggle {
    display: inline-grid;
  }

  .publishing-app:not(.rm-home) .rm-footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 47px 0 35px;
  }

  .publishing-app:not(.rm-home) .rm-footer-logo {
    width: 160px;
  }

  .publishing-app:not(.rm-home) .rm-footer-links {
    max-width: 360px;
  }

  .publishing-app:not(.rm-home) .rm-footer-bottom {
    display: grid;
    gap: 7px;
    padding: 15px 0 18px;
  }

  .publishing-app:not(.rm-home) .rm-footer-bottom p:last-child {
    justify-content: flex-start;
    text-align: left;
  }

  .publishing-app:not(.rm-home) .rm-footer-bottom span {
    display: none;
  }
}
