/* Homepage boxes (src/features/home/widgets/). Class names follow the 2018 Enjin modules. */

/* HTML / image box */
.m_html {
  padding: 11px;
  overflow-wrap: break-word;
  line-height: 140%;
}

.m_html img {
  max-width: 100%;
  border-style: solid;
  border-width: 0;
}

.m_html p {
  min-height: 1.25em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.m_html .center {
  text-align: center;
}

/* Links (vertical menu) */
.m_vmenu {
  padding: 5px 0 0;
  background-color: transparent;
}

.m_vmenu .button {
  position: relative;
  isolation: isolate;
  display: block;
  height: 25px;
  margin-bottom: -1px;
  border: 0 transparent;
  line-height: 17px;
  background-color: transparent;
}

.m_vmenu .button.last {
  margin-bottom: 0;
}

.m_vmenu .button::before,
.m_vmenu .button::after {
  content: '';
  position: absolute;
  top: 0;
  z-index: -1;
  width: 50.004%;
  height: 100%;
  background-image: url('/img/theme/link-button.png');
}

.m_vmenu .button::before {
  left: 0;
  background-position: left top;
}

.m_vmenu .button::after {
  right: 0;
  background-position: right top;
}

.m_vmenu .button .title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.m_vmenu .button .mask {
  display: block;
  height: 100%;
  margin-right: 0;
  margin-left: 22px;
  overflow: hidden;
}

/* Login box */
.m_login {
  padding: 11px 11px 11px 10px;
}

.m_login .or {
  display: inline-block;
  margin-right: 2px;
  margin-left: 2px;
  padding-bottom: 7px;
  font-size: 11px;
}

/* News */
.m_news {
  position: relative;
}

.m_news .search-box {
  padding: 12px 0 8px 16px;
  border-bottom: 1px solid #0f0906;
}

.m_news .search-box-border-highlight {
  border-top: 1px solid #2b2b2b;
}

.m_news .search-container {
  display: inline-block;
}

.m_news .search-input {
  width: 200px;
}

.m_news .float-rss {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
  display: inline-block;
  width: 15px;
  height: 15px;
  background: url('/img/theme/rss.png') left top no-repeat;
}

.m_news .article {
  clear: both;
  border-top: 1px solid #2b2b2b;
  border-bottom: 1px solid #0f0906;
}

.m_news .article.first {
  border-top: 0;
}

.m_news .article.last {
  border-bottom: 0;
}

.m_news .article-body {
  position: relative;
  padding: 16px 20px 26px;
}

.m_news .article-body-content {
  position: relative;
}

.m_news .article .heading {
  margin-bottom: 0;
}

.m_news .article.first .heading {
  margin-right: 85px;
}

.m_news .article .heading .title {
  padding-top: 6px;
  padding-bottom: 5px;
  font-size: 22px;
  line-height: 26px;
}

.m_news .article .like-buttons {
  margin-top: 15px;
}

.m_news .article-content {
  margin-top: 10px;
  line-height: 18px;
}

.m_news .article-content p {
  display: block;
  min-height: 1.25em;
  margin-bottom: 12px;
}

.m_news .commentbox {
  margin-top: 18px;
  margin-bottom: 18px;
}

.m_news .commentbox-body {
  position: relative;
}

.m_news .commentbox .bubble {
  float: left;
  width: 92px;
  height: 82px;
  padding-right: 0;
  padding-left: 0;
  text-align: center;
  background-image: url('/img/theme/comment-bubble.png');
  background-position: left top;
  background-repeat: no-repeat;
}

.m_news .commentbox .bubble .big-number {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 30px;
  font-weight: normal;
  color: #fef092;
}

.m_news .commentbox .bubble .comment-text {
  color: #7d7869;
}

.m_news .commentbox .comments {
  font-size: 11px;
}

.m_news .commentbox .comments .comment {
  margin-left: 106px;
  padding-bottom: 8px;
  line-height: 15px;
  color: #858176;
}

.m_news .commentbox .comments .comment.last {
  padding-bottom: 0;
}

.m_news .entries {
  height: 24px;
  padding: 11px 20px 0;
  border-top: 1px solid #2b2b2b;
  font-size: 14px;
}

.m_news .entries .previous {
  float: left;
}

.m_news .entries .next {
  float: right;
}

.m_news .entries .rss {
  text-align: center;
}

.m_news .entries .rss a {
  font-size: 12px;
  text-align: center;
}

/* Live News (Phase 6): the opening post's own HTML in the 2018 article's 18px lines, its pictures
   inside the box, and its YouTube player at most 560 × 315 (16:9), as in the forums. */
.m_news .news-body {
  line-height: 18px;
}

.m_news .news-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 4px 0;
}

.m_news .video-embed {
  max-width: 560px;
  margin: 0 0 12px;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.m_news .video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.m_news .news-empty {
  margin: 0;
  padding: 16px 20px;
  color: #858176;
}

/* YouTube's "Video unavailable" panel, drawn for videos that no longer exist (as in 2018). */
.fo43-yt-dead {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  font-family: Roboto, Arial, sans-serif;
  color: #fff;
  background: #212121;
}

.fo43-yt-msg {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1.35;
  transform: translateY(-50%);
}

.fo43-yt-msg b {
  font-weight: 500;
}

.fo43-yt-msg span span {
  font-size: 14px;
  text-decoration: underline;
  color: #fff;
}

.fo43-yt-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 20px !important;
  font-weight: 700;
  text-decoration: none !important;
}

.fo43-yt-logo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 20px;
  border-radius: 5px;
  background: #fff;
  opacity: 0.85;
}

.fo43-yt-logo::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 11px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #212121;
}

/* Archive by month ("Video Of The Week Archive") */
.m_newsarchive li {
  padding: 5px 8px;
  border-top: 1px solid #2b2b2b;
  border-bottom: 1px solid #0f0906;
}

.m_newsarchive .count {
  float: right;
}

.m_newsarchive .newsarchive-empty {
  color: #858176;
}

/* Members online */
.m_membersonline {
  padding: 5px 8px 8px 10px;
}

.m_membersonline .element_smalltitle {
  margin-top: 4px;
  margin-bottom: 9px;
}

.m_membersonline .members-list {
  padding-left: 5px;
}

.m_membersonline .featured {
  margin-bottom: 5px;
}

/* Hit counter (2018). Its graph box rendered empty in the capture. */
.m_hitcounter {
  padding: 10px;
}

.m_hitcounter .graph {
  height: 36px;
  border: 1px solid #3d3936;
  box-shadow: #000 1px 1px 2px;
}

.m_hitcounter .spacer {
  height: 7px;
}

.m_hitcounter .info .right {
  float: right;
}

/* Group Pay (2018) */
.m_grouppay .content-info {
  padding: 11px 10px 10px;
  border-bottom: 1px solid #0f0906;
}

.m_grouppay .panel-top {
  padding-bottom: 12px;
}

.m_grouppay .panel-top .mtitle {
  padding-bottom: 6px;
  font-weight: bold;
  color: #fff;
}

.m_grouppay .panel-top .mdesc {
  font-size: 11px;
  line-height: 15px;
}

.m_grouppay .panel-stats {
  padding: 10px 10px 18px;
}

.m_grouppay .panel-stats table td {
  padding-bottom: 7px;
}

.m_grouppay .panel-stats table .label {
  width: 100px;
}

.m_grouppay .panel-stats table .content {
  color: #fff;
}

.m_grouppay .panel-stats .element_progressbar {
  margin-top: 6px;
}

.m_grouppay .panel-stats .element_progressbar .clabel {
  font-size: 12px;
}

.m_grouppay .items-days {
  padding: 9px 5px 0;
}

.m_grouppay .items-days .user {
  margin-bottom: 10px;
}

.m_grouppay .items-days .user .element_avatar {
  float: left;
}

.m_grouppay .items-days .user .username {
  position: relative;
  bottom: 1px;
  margin-left: 37px;
}

.m_grouppay .items-days .user .order {
  margin-left: 37px;
  padding-top: 2px;
  font-size: 11px;
}

.m_grouppay .items-days .amount {
  color: #8bed80;
}

.m_grouppay .pagination {
  padding-top: 5px;
  font-size: 11px;
}

.m_grouppay .pagination .controls {
  float: right;
}

.m_grouppay .buttons {
  padding: 10px 0 10px 10px;
  border-top: 1px solid #2b2b2b;
  background-color: transparent;
}

/* The welcome panel (Phase 6, David's call 2): Group Pay's 2018 look, its title and description
   over the dark rule (as much room under them as above: no plan table follows), then medbuttons
   side by side (the 2018 box had one). */
.m_welcome .panel-top {
  padding-bottom: 0;
}

.m_welcome .buttons .element_button {
  margin-right: 6px;
}

/* The site stats (Phase 6): the 2018 hit counter's box and lines, one per number, the label on the
   left and the value on the right; a long newest name wraps under itself. The rows sit 7px apart
   (four of the counter's tight lines read cramped), with as much room under the last as above
   the first. */
.m_sitestats {
  padding-bottom: 5px;
}

.m_sitestats .info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.m_sitestats .info + .info {
  margin-top: 7px;
}

.m_sitestats .info .right {
  float: none;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.m_sitestats .site-stats-unavailable {
  margin: 0;
  color: #858176;
}

/* Showcase slideshow */
.m_showcase {
  width: 100%;
}

.m_showcase .m_showcase_view {
  position: relative;
  width: auto;
  overflow: hidden;
}

.m_showcase div.m_showcase_img {
  position: relative;
}

.m_showcase img.m_showcase_img {
  position: absolute;
  z-index: 2;
  display: none;
}

.m_showcase img.m_showcase_img.is-active {
  display: block;
}

.m_showcase .m_showcase_bar {
  position: absolute;
  bottom: 0;
  z-index: 10;
  width: 100%;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0.7;
}

.m_showcase .m_showcase_bar h3 {
  padding: 8px 8px 3px;
  font-size: 12px;
}

.m_showcase .m_showcase_bar p {
  padding-left: 8px;
  font-size: 11px;
}

.m_showcase .m_showcase_description {
  color: white;
}

/* Admins' slides: the 2018 bar holds one line of title and one of text (every 2018 caption fitted),
   so a longer caption ends in "…" instead of running out of the bar. */
.m_showcase[data-admin-slides] .m_showcase_bar h3,
.m_showcase[data-admin-slides] .m_showcase_bar p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.m_showcase[data-admin-slides] .m_showcase_bar p {
  padding-right: 8px;
}

.m_showcase .m_showcase_view a.button {
  position: absolute;
  top: 95px;
  z-index: 10;
  width: 21px;
  height: 30px;
  padding: 15px;
  background: url('/img/theme/showcase-arrows.png') no-repeat transparent;
  opacity: 0.5;
  visibility: hidden;
}

.m_showcase .m_showcase_view:hover a.button {
  visibility: visible;
}

.m_showcase .m_showcase_view a.button:hover {
  opacity: 1;
}

.m_showcase .m_showcase_view a.m_showcase_prev {
  padding-right: 0;
  background-position: 15px 15px;
}

.m_showcase .m_showcase_view a.m_showcase_next {
  right: 0;
  padding-left: 0;
  background-position: -21px 15px;
}

/*
 * The built-in panels (David, 2026-10-13, DECISIONS 142): How to Play and the 1943 World Map, text
 * where a slide's picture would be, above the 50px bar. Headings in the module titles' cream, the
 * codes in the forum's code block (pages.css), selected whole with one click. They don't turn by
 * themselves, so the arrows sit in the bar, always shown, and the caption leaves them room.
 */
.m_showcase .m_showcase_panel {
  display: none;
  box-sizing: border-box;
  height: 100%;
  padding: 9px 9px 50px;
}

.m_showcase .m_showcase_panel.is-active {
  display: block;
}

.m_showcase .howto p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 14px;
}

.m_showcase .howto-heading {
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  line-height: 15px;
  color: #fff8c9;
}

.m_showcase .howto-code + .howto-heading {
  margin-top: 10px;
}

.howto-code {
  display: block;
  margin-top: 4px;
  padding: 3px 5px;
  border: 1px solid #363224;
  background-color: #0f0f0d;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11px;
  line-height: 14px;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

.howto-code span {
  white-space: nowrap;
}

.m_showcase .howto .howto-thanks {
  margin-top: 9px;
  color: #858176;
}

.m_showcase .showcase-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  color: #858176;
}

.m_showcase[data-panels] .m_showcase_bar h3,
.m_showcase[data-panels] .m_showcase_bar p {
  padding-right: 58px;
}

/* A panel without a link (the World Map): its caption keeps its colour and no underline on hover. */
.m_showcase[data-panels] .m_showcase_bar a:not([href]) {
  color: #e9bd7f;
  text-decoration: none;
}

.m_showcase[data-panels] .m_showcase_view a.button {
  top: auto;
  bottom: 10px;
  padding: 0;
  visibility: visible;
  opacity: 0.7;
}

.m_showcase[data-panels] .m_showcase_view a.button:hover {
  opacity: 1;
}

.m_showcase[data-panels] .m_showcase_view a.m_showcase_prev {
  right: 31px;
  background-position: 0 0;
}

.m_showcase[data-panels] .m_showcase_view a.m_showcase_next {
  right: 6px;
  background-position: -21px 0;
}

/* The slideshow when its slides can't load (Phase 6): a muted line, as the other boxes say it. */
.m_showcase .showcase-unavailable {
  margin: 0;
  padding: 10px 7px 10px 12px;
  color: #858176;
}

/* Upcoming events */
.m_eventsupcoming {
  padding: 10px 7px 10px 12px;
}

/* Upcoming events, live (Phase 6): each title, then its time on a muted line (the 2018 news
   comments' 11px #858176); a muted line when there are none. The 2018 box was empty, so none of
   this draws on the fixture page. */
.m_eventsupcoming .event {
  line-height: 18px;
  overflow-wrap: anywhere;
}

.m_eventsupcoming .event + .event {
  margin-top: 8px;
}

.m_eventsupcoming .event-time {
  font-size: 11px;
  line-height: 15px;
  color: #858176;
}

.m_eventsupcoming .events-empty {
  margin: 0;
  color: #858176;
}

/* Servers (DECISIONS 141): under construction, one muted line, the size of Upcoming Events with
   nothing scheduled. */
.m_servers {
  padding: 10px 7px 10px 12px;
}

.m_servers .servers-note {
  margin: 0;
  color: #858176;
}

/* Latest threads. "Pending" keeps the height of the 2018 box, whose list never loaded. */
.m_forumlatestthreads .threads-pending {
  position: relative;
  display: block;
  width: 37px;
  height: 13px;
  margin: auto;
  padding: 50px 0;
}

/*
 * Shout Box (Phase 6; the 2018 theme had none). Rows like the news box's comments and the
 * archive's months: the gold name, a muted time, the text below, split by the archive's rules.
 * The newest shout is at the bottom of a box with its own scroll, which opens at the bottom
 * (column-reverse, so it does without JavaScript too). Then the theme's field and medbutton.
 */
.m_shoutbox {
  padding-bottom: 11px;
}

.m_shoutbox .shout-scroll {
  display: flex;
  flex-direction: column-reverse;
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
}

.m_shoutbox .shout {
  padding: 7px 12px 8px;
  border-top: 1px solid #2b2b2b;
  border-bottom: 1px solid #0f0906;
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.m_shoutbox .shout-meta {
  display: block;
  font-size: 11px;
  line-height: 16px;
  color: #858176;
}

.m_shoutbox .shout-meta .element_username {
  margin-right: 4px;
  font-size: 12px;
  font-weight: bold;
}

.m_shoutbox .shout-moderate {
  float: right;
}

/* A shout written right to left (or with direction marks) can't turn its name and time around. */
.m_shoutbox .shout-text {
  display: block;
  unicode-bidi: isolate;
}

.m_shoutbox .shout-empty,
.m_shoutbox .shout-note,
.m_shoutbox .shout-status {
  padding: 10px 12px 0;
  font-size: 13px;
  line-height: 18px;
  color: #858176;
}

.m_shoutbox .shout-status {
  color: #b8b19c;
}

.m_shoutbox .shout-status:empty {
  display: none;
}

.m_shoutbox .shout-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px 0;
}

.m_shoutbox .shout-field {
  flex: 1 1 auto;
  min-width: 0;
}

.m_shoutbox .shout-field input {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.m_shoutbox .shout-form .element_button {
  flex: none;
}

.m_shoutbox .shout-older {
  padding: 10px 12px 0;
  font-size: 12px;
}

/* Keyboard focus stays inside the link bars. */
.m_vmenu .button:focus-visible {
  outline-offset: -2px;
}

/*
 * Phones (below 768px; DECISIONS 84): every box fills the single column. The news video panel
 * shrinks to the box in its 16:9 shape, the showcase arrows always show (a phone has no hover),
 * links in lists and action rows grow to finger size, and small print is at least 12px.
 */
@media (max-width: 767.98px) {
  /* Links: 38px bars, the arrow centred beside the text; a name too long for the bar ends in "…". */
  .m_vmenu .button {
    height: 38px;
    line-height: 38px;
  }

  .m_vmenu .button::before,
  .m_vmenu .button::after {
    background-repeat: no-repeat;
  }

  .m_vmenu .button::before {
    background-position: left 10px;
  }

  .m_vmenu .button::after {
    background-position: right 10px;
  }

  .m_vmenu .button .mask {
    margin-right: 8px;
    text-overflow: ellipsis;
  }

  /* Login box (logged out) */
  .m_login .or {
    font-size: 12px;
  }

  /* News: the search field takes the row up to the RSS icon, whose tap area grows around it. */
  .m_news .search-box {
    display: flex;
    align-items: center;
    padding: 12px 48px 8px 12px;
  }

  /* The field's padding moves onto the input, so a tap anywhere in the black box focuses it. */
  .m_news .search-container {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 400px;
    padding: 0;
  }

  .m_news .search-input {
    box-sizing: border-box;
    width: 100%;
    height: 28px;
    padding: 0 4px;
  }

  .m_news .search-box .element_button {
    flex: none;
  }

  .m_news .float-rss {
    top: 3px;
    right: 3px;
    padding: 12px;
    background-position: center;
  }

  .m_news .article-body {
    padding: 14px 12px 20px;
  }

  .m_news .search-box ~ .article.first .heading {
    margin-right: 0;
  }

  /* A title is a finger-sized link (44px tall at one line), as in the homepage's phone News. */
  .m_news .article .heading .title {
    padding: 0;
    overflow-wrap: anywhere;
  }

  .m_news .article .heading .title a {
    display: block;
    padding: 9px 0;
  }

  .m_news .article .heading .info {
    line-height: 18px;
  }

  /* The "Video unavailable" panel's size is inline (560x315 in 2018): on a phone it takes the
     box's width and keeps the 16:9 shape, its message centred as before. */
  .m_news .fo43-yt-dead {
    display: block;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  /* Live News: long words and addresses wrap, and the player takes the box's width (16:9). */
  .m_news .news-body {
    overflow-wrap: anywhere;
  }

  .m_news .video-embed {
    max-width: none;
  }

  .m_news .news-empty {
    padding: 14px 12px;
    font-size: 14px;
  }

  .m_news .commentbox .comments {
    font-size: 14px;
  }

  .m_news .commentbox .comments .comment {
    margin-left: 104px;
    line-height: 19px;
    overflow-wrap: anywhere;
  }

  /* « Older, Subscribe to RSS, Newer » in one row of 40px tap targets. */
  .m_news .entries {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: auto;
    padding: 0 12px;
  }

  .m_news .entries .previous {
    order: 1;
  }

  .m_news .entries .rss {
    order: 2;
  }

  .m_news .entries .next {
    order: 3;
  }

  .m_news .entries a {
    display: inline-block;
    padding: 12px 0;
  }

  /* Archive by month: each month is a full-width row and one tap target (the month's link). */
  .m_newsarchive li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px;
  }

  .m_newsarchive li a {
    padding: 11px 0;
    overflow-wrap: anywhere;
  }

  .m_newsarchive li a::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .m_newsarchive .count {
    flex: none;
  }

  /* Members online: names spaced for fingers, long ones wrap. */
  .m_membersonline .members-list {
    line-height: 20px;
    overflow-wrap: anywhere;
  }

  .m_membersonline .members-list a {
    display: inline-block;
    padding: 9px 0;
  }

  /* Hit counter: the two figures wrap under each other if they ever outgrow the row. */
  .m_hitcounter .info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
  }

  /* Group Pay: small print at 12px; each "Days Added By" row is one tap target (the name's link). */
  .m_grouppay .panel-top .mdesc {
    font-size: 12px;
    line-height: 16px;
  }

  .m_grouppay .items-days .user {
    position: relative;
  }

  .m_grouppay .items-days .user .username {
    position: static;
  }

  .m_grouppay .items-days .user .username a::after {
    content: '';
    position: absolute;
    top: -5px;
    right: 0;
    bottom: -5px;
    left: 0;
  }

  .m_grouppay .items-days .user .order {
    font-size: 12px;
  }

  .m_grouppay .pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    font-size: 12px;
  }

  .m_grouppay .pagination .controls {
    order: 2;
  }

  .m_grouppay .pagination .controls a {
    display: inline-block;
    padding: 12px 0 12px 24px;
  }

  /* Showcase: slides centred and never wider than the box; the arrows always visible when there
     are two slides or more. With one (or none) they stay hidden, even after a tap leaves :hover
     on, since they would lead nowhere; a browser without :has keeps the desktop behaviour. */
  .m_showcase img.m_showcase_img {
    right: 0;
    left: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  .m_showcase .m_showcase_bar p {
    font-size: 12px;
  }

  .m_showcase .m_showcase_view a.button {
    opacity: 0.7;
  }

  .m_showcase .m_showcase_view:has(div.m_showcase_img > a + a) a.button {
    visibility: visible;
  }

  .m_showcase .m_showcase_view:not(:has(div.m_showcase_img > a + a)) a.button {
    visibility: hidden;
  }

  /* Upcoming events: one row per event. */
  .m_eventsupcoming .event a {
    display: block;
    padding: 9px 0;
    line-height: 18px;
    overflow-wrap: anywhere;
  }

  .m_eventsupcoming .event + .event {
    margin-top: 0;
  }

  .m_eventsupcoming .event-time {
    margin-top: -6px;
    padding-bottom: 6px;
    font-size: 12px;
  }

  .m_eventsupcoming .events-empty,
  .m_servers .servers-note {
    font-size: 14px;
  }

  /*
   * The homepage's phone column (DECISIONS 85): the mockup's layout in the 2018 skin. Each box
   * keeps the module chrome; inside, rows are split by the forum's #363224 rules, every tap target
   * is at least 44px tall, and nothing has rounded corners or shadows.
   */

  /* News: the title, one muted line, the video at the box's width (16:9), then « Older / Newer ». */
  .phone-news-article {
    padding: 2px 12px 0;
  }

  .phone-news-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .phone-news-title a {
    display: block;
    padding: 10px 0 9px;
  }

  .phone-news-meta {
    margin: 1px 0 0;
    font-size: 13px;
    line-height: 16px;
    color: #858176;
  }

  .phone-news-video {
    margin-top: 10px;
  }

  .phone-news .fo43-yt-dead {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  /* A live article's first YouTube player (a piece of the post's own HTML). */
  .phone-news .video-embed {
    aspect-ratio: 16 / 9;
    background-color: #000;
  }

  .phone-news .video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .phone-news-empty {
    margin: 0;
    padding: 12px;
    font-size: 14px;
    color: #858176;
  }

  .phone-news-pager {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    padding: 0 12px;
    font-size: 14px;
  }

  .phone-news-pager a,
  .phone-news-off {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .phone-news-off {
    color: #858176;
  }

  /* Upcoming events: one row per event, or a muted line when there are none. */
  .phone-event-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .phone-event-list li + li {
    border-top: 1px solid #363224;
  }

  .phone-event {
    display: block;
    padding: 13px 12px;
    font-size: 14px;
    line-height: 18px;
    overflow-wrap: anywhere;
  }

  /* Each event's time: a muted line under its title, inside the row's link. */
  .phone-event-time {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 16px;
    color: #858176;
  }

  .phone-events-none,
  .phone-servers-note {
    margin: 0;
    padding: 12px;
    font-size: 14px;
    line-height: 20px;
    color: #858176;
  }

  /* Members online: one 48px row, a square dot (green when someone is online), the label, then
     the names. It's one line of text, so a long list wraps under the label; every line is 44px,
     each name a tap target. */
  .phone-online {
    padding: 2px 12px;
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
  }

  .phone-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    vertical-align: 1px;
    background-color: #858176;
  }

  .phone-online.is-online .phone-online-dot {
    background-color: #8bed80;
  }

  .phone-online-label {
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff8c9;
  }

  .phone-online-none,
  .phone-online-names a {
    display: inline-block;
    padding: 12px 0;
  }

  .phone-online-none {
    color: #858176;
  }

  /* Showcase: the start slide's title as a green label over its line; "Sign up" (visitors) on
     the right, in the shared phone button (menu.css). */
  .phone-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
  }

  .phone-showcase-text {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .phone-showcase-title {
    font-size: 12px;
    font-weight: bold;
    line-height: 15px;
    text-transform: uppercase;
    color: #8bed80;
  }

  .phone-showcase-description {
    margin-top: 4px;
    font-size: 14px;
    line-height: 18px;
  }

  .phone-showcase .phone-btn {
    flex: none;
  }

  /* How to Play on phones (DECISIONS 142): the label and line, then the steps at phone sizes. */
  .phone-showcase-panel {
    padding-bottom: 0;
  }

  .phone-showcase-body {
    padding: 10px 12px 14px;
  }

  .phone-showcase-body .howto p {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 20px;
  }

  .phone-showcase-body .howto-heading {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
    color: #fff8c9;
  }

  .phone-showcase-body .howto-code + .howto-heading {
    margin-top: 14px;
  }

  .phone-showcase-body .howto-code {
    margin-top: 6px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 20px;
  }

  .phone-showcase-body .howto .howto-thanks {
    margin-top: 14px;
    font-size: 12px;
    line-height: 18px;
    color: #858176;
  }

  /* The label's link (beachmod.net) and the thanks line's: 44px tap areas around 12px words, the
     line itself unmoved (as the Shout Box's note links). */
  .phone-showcase-title a,
  .phone-showcase-body .howto-thanks a {
    padding: 15px 0;
  }

  /* Links and the video archive open in their collapsed rows (home.njk) with their own templates:
     44px rows, the archive's months lined up with the row labels. */
  .phone-collapsed-body .m_vmenu .button {
    height: 44px;
    line-height: 44px;
  }

  .phone-collapsed-body .m_vmenu .button::before {
    background-position: left 12px;
  }

  .phone-collapsed-body .m_vmenu .button::after {
    background-position: right 12px;
  }

  .phone-collapsed-body .m_newsarchive li {
    min-height: 44px;
    padding: 0 12px;
  }

  /* Group Pay ("Support the site"): the plan in one line, then the Donate Days link. */
  .phone-grouppay {
    padding: 0 12px;
  }

  .phone-grouppay-plan {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .phone-grouppay-donate {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }

  /* The hit counter as a footer line, muted like the mockup's. The frame's phone footer (frame.css)
     decides where it sits: it wraps under the left text and the © line when they fill the row. */
  .hit-counter-line {
    font-size: 12px;
    color: #858176;
  }

  /* Shout Box: 14px rows (12px times), a 16px field and a 44px Shout button side by side, and
     finger-size Moderate and Older shouts links. */
  .m_shoutbox .shout-scroll {
    max-height: 360px;
  }

  .m_shoutbox .shout {
    padding: 9px 12px 10px;
    font-size: 14px;
    line-height: 20px;
  }

  .m_shoutbox .shout-meta {
    font-size: 12px;
    line-height: 18px;
  }

  .m_shoutbox .shout-meta .element_username {
    font-size: 14px;
  }

  .m_shoutbox .shout-moderate {
    margin: -13px -12px -13px 0;
    padding: 13px 12px;
  }

  .m_shoutbox .shout-empty,
  .m_shoutbox .shout-note,
  .m_shoutbox .shout-status {
    font-size: 14px;
    line-height: 20px;
  }

  .m_shoutbox .shout-form {
    padding-top: 12px;
  }

  .m_shoutbox .shout-field {
    padding: 0;
  }

  .m_shoutbox .shout-field input {
    height: 42px;
    padding: 0 8px;
  }

  .m_shoutbox .shout-form .element_button input {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 44px;
  }

  .m_shoutbox .shout-form .element_button::before,
  .m_shoutbox .shout-form .element_button::after {
    background-size: auto 100%;
  }

  .m_shoutbox .shout-older {
    padding-top: 0;
  }

  /* 44px: the p keeps its 12px desktop size, so the link sets its own line height. */
  .m_shoutbox .shout-older a {
    display: inline-block;
    padding: 12px 0;
    font-size: 14px;
    line-height: 20px;
  }

  /* Log in / join: the tap area grows to 44px around the words without moving the line. */
  .m_shoutbox .shout-note a {
    padding: 14px 0;
  }

  /* The welcome panel on phones (compact): its title, its text, then its buttons (44px, the shared
     phone buttons: Join in gold for visitors, the Discord outlined). */
  .phone-welcome {
    padding: 12px;
  }

  .phone-welcome-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 20px;
    color: #fff;
    overflow-wrap: anywhere;
  }

  .phone-welcome-text {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
  }

  .phone-welcome-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .phone-welcome-buttons:empty {
    display: none;
  }

  /* The site stats as a footer line, muted (as the 2018 hit counter's was). The frame's phone
     footer (frame.css) gives it a row of its own. */
  .site-stats-line {
    font-size: 12px;
    color: #858176;
  }
}
