/* ==========================================================================
   feed-shell.css — featured-posts feed wrapper, heading and "Show more" row
   Loads after base.css. Tokens, .container, .text-center and the .g-btn
   system (including .m-border / .m-rounded / .m-sm / .m-reset-width and the
   full hover state) come from base.css and are NOT redefined here.
   ========================================================================== */

/* ---------- outer band: the site's tiled page texture ---------- */
.b-login-posts-outer {
  /* the hairline that separates the hero from the feed — easy to miss against
     the texture, but it is what draws the visible line under the blue panel */
  border-top: 1px solid var(--of-border-subtle);
}

.b-login-posts-outer.m-default-bg {
  min-height: 300px;
  background-image: url(../img/page-bg.png);
  background-size: cover;
  background-repeat: repeat;
  background-position: 50% 50%;
}

/* .b-login-posts-wrapper is a plain structural div — no styles of its own. */

/* ---------- container: pinned to 888px at every width ---------- */
/* Two-class selector, so it wins over the global .container max-widths. */
.container.m-container-login {
  max-width: 888px;
  margin: 0 auto;
  padding: 24px 16px 26px;
}

/* .b-login-posts is a plain block container — no box styles. */

/* ---------- header ---------- */
.b-login-posts__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* no fixed height — the header sizes to its title, which is 40px tall at
     desktop but 60px below 1004px (28/36 type plus 12px vertical padding) */
  margin: 0 0 30px;
}

.b-login-posts__title {
  flex: 2 0 auto;
  max-width: 100%;
  margin: 0 16px 0 0;
  padding: 12px 0;
  font: 400 28px/36px var(--of-font);
  color: var(--of-text);
  word-break: break-word;
}

/* ---------- the feed's loading spinner (js/app.js) ----------
   The same 24px 8-step spinner the signed-in pages use (notifications.css),
   which this page does not link. */
.b-login-posts .b-posts_preloader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  color: var(--of-muted);
}
.b-login-posts .b-posts_preloader[hidden] { display: none; }
.b-login-posts .b-posts_preloader .g-icon { display: block; width: 24px; height: 24px; }
.b-login-posts .b-posts_preloader .g-icon use { transform-origin: 12px 12px; animation: feed-rotation 1s steps(8) infinite; }
@keyframes feed-rotation { 0% { transform: rotate(0deg); } to { transform: rotate(1turn); } }
.b-login-posts .g-btn.m-border[hidden] { display: none; }

/* ---------- "Show more" row ---------- */
.b-login-posts .text-center {
  min-height: 36px;
}

/* base.css .g-btn is display:block and .m-reset-width only resets width,
   so the outlined button needs the inline-block + positioning context here. */
.b-login-posts .g-btn.m-border {
  display: inline-block;
  position: relative;
  height: 36px;
}

/* ---------- >=1004px (desktop) ---------- */
@media (min-width: 1004px) {
  .container.m-container-login {
    padding: 32px 16px 26px;
  }

  .b-login-posts__header {
    flex-wrap: nowrap;
  }

  .b-login-posts__title {
    max-width: calc(100% - 360px);
    padding-top: 0;
    padding-bottom: 0;
    font-size: 32px;
    line-height: 40px;
  }
}
