@import url("/fx.css?v=1");
/* schem.beezzland.com: cards with author and likes, pages of authors' schematics */
.cardfoot { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.cardfoot .likes { margin-left: auto; color: var(--honey); white-space: nowrap; }
.cardfoot .likes i { font-style: normal; }
.cardfoot .price { color: var(--honey); font-weight: 700; white-space: nowrap; }
.cardfoot span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.likebtn { font: 700 15px var(--body); padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.likebtn:hover { border-color: var(--honey); }
.likebtn.on { color: var(--honey); border-color: var(--honey); }
.article { max-width: 860px; }
.byline { color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.byline b { color: var(--text); }
.byline .likebtn { margin-left: 4px; padding: 4px 12px; }
.mainshot { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--border); margin: 0 0 18px; }
.article .lead { max-width: none; }
.article .text { font-size: 17px; }
.article .text img { border-radius: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.pricebox { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 12px 16px; border: 1px solid var(--honey); border-radius: 10px; }
.pricebox b { color: var(--honey); font-size: 20px; }
.pricebox span { color: var(--muted); font-size: 14px; }
.big3d { text-align: center; margin: 34px 0 10px; padding: 28px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.big3d .btn { font-size: 18px; padding: 14px 28px; }
.big3d p { color: var(--muted); margin: 12px 0 0; font-size: 14px; }
.article table { display: block; overflow-x: auto; }

/* the older pages on a phone, and the look of the catalogue */
.card img { filter: brightness(1.14) saturate(1.06); }  /* the older pictures are dark on a dark background */
@media (min-width: 900px) { #builds .grid { grid-template-columns: repeat(3, 1fr); } }
main.wrap > h1:first-child { margin-top: 30px; }
main code, main .note a { overflow-wrap: anywhere; }
.facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) {
  main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main td, main th { white-space: normal; }
}
.likebtn { transition: border-color .15s ease, color .15s ease; }
.likebtn.beat { animation: fx-beat .32s ease; }
@keyframes fx-beat { 40% { transform: scale(1.14); } }

/* the page of a building */
.sheet { max-width: 1040px; }
.sheet h1 { margin: 12px 0 6px; }
.sheet .byline { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 16px; }
.sheet .byline .likebtn { margin: 0; padding: 7px 14px; }
.sheet .top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sheet .mainshot { aspect-ratio: 4 / 3; object-fit: cover; margin: 0; filter: brightness(1.14) saturate(1.06); }
.sheet .side .lead { font-size: 17px; margin: 0 0 18px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.stats div { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.stats span { display: block; color: var(--muted); font-size: 13px; }
.stats b { font-size: 17px; overflow-wrap: anywhere; }
.sheet .actions { margin: 0; }
.sheet .actions .btn { flex: 1 1 170px; justify-content: center; text-align: center; }
.mathead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mathead h2 { margin: 0; }
.units { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.units button { padding: 7px 13px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 700 14px var(--body); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.units button.on { background: var(--honey); color: #1a1300; }
.mats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.mats li { display: flex; align-items: center; gap: 12px; padding: 7px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.mats img { flex: none; width: 32px; height: 32px; image-rendering: pixelated; }
.mats span { flex: 1 1 auto; min-width: 0; }
.mats b { flex: none; color: var(--honey); text-align: right; }
@media (max-width: 760px) {
  .sheet .top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mats { grid-template-columns: minmax(0, 1fr); }
  .units { width: 100%; }
  .units button { flex: 1; padding: 9px 6px; }
}
.sheet > section { margin-top: 38px; }
.sheet .byline { max-width: none; }
.stats { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); }
.stats b { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 760px) { .stats b { font-size: 15px; } .stats div { padding: 10px 11px; } .sheet > section { margin-top: 30px; } }

/* pictures in the text, the swipeable slider, materials nine per page */
.sheet .text figure { margin: 18px 0; }
.sheet .text figure img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.sheet .text figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.slider { position: relative; margin: 18px 0; }
.slider .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; border-radius: 12px; }
.slider .slides::-webkit-scrollbar { display: none; }
.slider figure { flex: 0 0 100%; margin: 0 !important; scroll-snap-align: center; }
.slider .arrow, .pager button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(6,10,19,.72); color: var(--text); font: 700 20px/1 var(--body); cursor: pointer; }
.slider .arrow { position: absolute; top: calc(50% - 34px); z-index: 2; }
.slider .arrow.prev { left: 10px; }
.slider .arrow.next { right: 10px; }
.slider .arrow:disabled, .pager button:disabled { opacity: .3; cursor: default; }
.slider .dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.slider .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.slider .dots i.on { background: var(--honey); }
.mats[data-paged] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mats li[hidden] { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.pager button { background: var(--surface); }
.endactions { margin-top: 26px; }
.endactions .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.credit { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); }
.credit b { color: var(--text); }
@media (max-width: 760px) { .mats[data-paged] { grid-template-columns: minmax(0, 1fr); } .slider .arrow { display: none; } }
