/* BimsPins: same family as bims.blue. Simple, phone and desktop friendly. */

@font-face { font-family: "Lilita One"; src: url("fonts/lilita-one-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --blue: #5070e1;          /* bims.blue titles */
  --heading: #6ec1e4;       /* bims.blue section headings */
  --menu: #6584ef;          /* bims.blue menu boxes */
  --text: #2d3748;
  --body: #444;
  --muted: #718096;
  --line: #edf2f7;
  --discord: #5865f2;
  --kc-boxed-width: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #fff; color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- Header (bims.blue: logo left, blue box menu right) ---- */
.top__inner { max-width: 1140px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.top__name { display: inline-flex; align-items: center; gap: 12px; color: #1a202c; text-decoration: none; font-size: 24px; font-weight: 700; }
.top__name img { width: 76px; height: 76px; object-fit: contain; }
.top__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.top__menu a { display: block; background: var(--menu); color: #fff; text-decoration: none; font-size: 14px; line-height: 40px; padding: 0 14px; }
.top__menu a:hover, .top__menu a[aria-current="page"] { background: linear-gradient(to bottom, #0d3583, #092cb1); color: #fff; }

/* ---- Pages ---- */
.page { max-width: 1140px; margin: 0 auto; padding: 4px 20px 56px; width: 100%; }
.page__title { margin: 12px 0 28px; font: 400 64px/1.1 "Lilita One", sans-serif; color: var(--blue); text-align: center; overflow-wrap: anywhere; }
.page__content { display: grid; gap: 28px; }
.kc-heading { font-family: Roboto, sans-serif; font-weight: 600; color: var(--heading); line-height: 1.25; margin: 0; }
h1.kc-heading { font: 400 64px/1.1 "Lilita One", sans-serif; color: var(--blue); }
h2.kc-heading { font-size: 28px; }
h3.kc-heading { font-size: 22px; }
.kc-text { font-family: Roboto, sans-serif; color: var(--body); font-size: 17px; line-height: 1.7; }
.kc-text p { margin: 0 0 .9em; }
.kc-text > :last-child { margin-bottom: 0; }
.kc-image img { border-radius: 0; }
.kc-image figcaption { text-align: right; font-size: 13px; color: var(--muted); margin-top: 4px; }
.kc-con { padding: 0; }
.kc-con__inner { gap: 28px; }

/* ---- Buttons ---- */
.button { display: inline-block; border: 0; border-radius: 3px; background: var(--discord); color: #fff; font: 600 17px/1 Roboto, sans-serif; padding: 15px 26px; cursor: pointer; }
.button:hover { filter: brightness(.93); }
.discord { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.discord[style*="center"] { justify-content: center; }
.discord[style*="right"] { justify-content: flex-end; }
.discord__handle { color: var(--muted); font-size: 15px; }

/* ---- Pins ---- */
.pins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 20px; }
.pins a { display: block; color: #222; text-decoration: none; text-align: center; }
.pins img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f4f4f4; }
.pins a:hover img { opacity: .88; }
.pins__label { display: block; margin-top: 8px; font: 500 15px/1.3 Roboto, sans-serif; }
.pins__label small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* ---- Reviews (bims.blue testimonial boxes) ---- */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
.reviews .kc-testimonial { height: 100%; font-family: Roboto, sans-serif; }
.review__stars { margin: 0 0 6px; text-align: center; color: #f5b301; font-size: 18px; letter-spacing: 2px; }
.review__stars span { color: #d5d9e0; }

/* ---- Design guide ---- */
.guide table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.guide th, .guide td { border-bottom: 1px solid var(--line); padding: 7px 6px; text-align: left; }
.guide .rec { color: #3e9a3e; }
.guide .min { color: #d2691e; }

/* ---- Single pin ---- */
.pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pin__photos > img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f4f4f4; }
.pin__thumbs { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pin__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; width: 72px; height: 72px; overflow: hidden; }
.pin__thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.pin__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pin__info .page__title { text-align: left; font-size: 48px; margin: 0 0 16px; }
.pin__facts { border-collapse: collapse; margin: 0 0 18px; font-family: Roboto, sans-serif; }
.pin__facts th { text-align: left; font-weight: 400; color: var(--muted); padding: 4px 22px 4px 0; }
.pin__facts td { padding: 4px 0; }
.pin__info .discord { margin: 20px 0; }

/* ---- Footer ---- */
.bottom { padding: 28px 20px 34px; text-align: center; color: var(--text); font-size: 14px; }
.bottom p { margin: 0; }
.bottom ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 16px; justify-content: center; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; background: #1a202c; color: #fff; padding: 10px 16px; border-radius: 4px; font: 15px/1.4 Roboto, sans-serif; max-width: calc(100vw - 32px); }

/* ---- Tablets ---- */
@media (max-width: 1024px) {
  .pins { grid-template-columns: repeat(min(var(--cols, 4), 3), minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page__title, h1.kc-heading { font-size: 52px; }
}

/* ---- Phones ---- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .top__inner { flex-direction: column; align-items: center; padding: 12px 12px 6px; }
  .top__name img { width: 52px; height: 52px; }
  .top__menu { width: 100%; }
  .top__menu ul { justify-content: center; }
  .top__menu li { flex: 1 1 auto; }
  .top__menu a { text-align: center; line-height: 44px; font-size: 15px; }
  .page { padding: 0 16px 40px; }
  .page__title, h1.kc-heading { font-size: 40px; margin-bottom: 18px; }
  h2.kc-heading { font-size: 24px; }
  .page__content, .kc-con__inner { gap: 20px; }
  .pins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .reviews { grid-template-columns: 1fr; gap: 24px; }
  .pin { grid-template-columns: 1fr; gap: 20px; }
  .pin__info .page__title { font-size: 36px; }
  .button { width: 100%; text-align: center; padding: 16px; }
  .discord { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Like bims.blue: plain, square testimonial boxes and a centred intro under the big picture. */
.reviews .kc-testimonial__content { border-radius: 0; }
.page__content > .kc-el--text .kc-text { text-align: center; max-width: 720px; margin-inline: auto; }
