/* components.css
   Reusable UI components
*/

/* CARDS */

.card {
  background: var(--card);
  /*border: 1px solid var(--line);*/
  border-radius: 18px;
  padding: 18px;
  /* box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);*/
  align-items: center;
  justify-content: center;
}

.card-image {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  /* clips image corners */
  padding: 0;
}

.card-img {
  display: block;
  width: 100%;
  height: 100%;
  /*auto;*/
  object-fit: contain;
}

.card-download {
  background: #eef2f2;
  border-radius: 18px;
  padding: 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-media {
  aspect-ratio: 2 / 1;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  /*background: #eef2f2;*/
  margin-bottom: 12px;
}

.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*crop to fill; do not use: contain;*/
  object-position: top;
  /* keep top half */
  display: block;
}

.card-media-btm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*crop to fill; do not use: contain;*/
  object-position: bottom;
  /* keep top half */
  display: block;
}

/* BUTTONS */

.btn.secondary {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #5F7878;
  background: #eef2f2;
  color: #5F7878;
}

.btn.copy {
  display: inline-block;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #6b7280;
  background: #F2F6F4;
  color: #6B7280;
}

.btn.download {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #5F7878;
  background: #5F7878;
  color: #ffffff;
}

.btn.tertiary {
  border: 1px solid #5F7878;
  background: #5F7878;
  color: #f0fdfa;
}

.btn.four {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
}

.btn {
  display: inline;
  background: transparent;
  border: none;
  padding: 0;
  color: #000000;
  /*#5F7878;*/
  font-weight: 500;
  font-size: 16px;
  text-decoration: underline;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: #111827
}

/* CALLOUT */

.callout {
  /*border: 1px solid #d1fae5;*/
  background: #f3f5f9;
  /* #e6f0fe; #dfebfd; #d3e4fd*/
  border-radius: 18px;
  padding: 16px;
}

.callout-share {
  /*border: 1px solid #d1fae5;*/
  background: #eef2f2;
  /* #e6f0fe; #dfebfd; #d3e4fd*/
  border-radius: 18px;
  padding: 16px;
}

/* FOOTER */
.footer {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* LAYOUT */

.row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center
}

.section {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .section {
    grid-template-columns: 1fr;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
  align-items: start;

}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr
  }
}

.p {
  margin: 0 0 12px;
  color: #374151
}

.formline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 18px 24px;
  background: transparent !important;
}

.top {
  border-bottom: 1px solid var(--line);
  background: transparent !important;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.page-header {
  text-align: center;
}

/* MISCENLLANEOUS */

.badge {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.kicker {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.lede {
  max-width: 90ch;
  color: #374151;
  font-size: 14px;
  margin: 0
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}


.small {
  font-size: 14px;
  color: var(--muted)
}


.band {
  padding: 0px 0;
}

.band-muted {
  background-color: #f3f5f9;
  border-radius: 8px;
}

.band-muted-f {
  background-color: #FAEBEB;
  border-radius: 8px;
}


/* Scenario block helpers */
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px
}

@media(min-width:900px) {
  .scenario-grid {
    grid-template-columns: 1fr 1fr
  }
}

.scenario-card {
  /* border: 1px solid var(--line); */
  border-radius: 16px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 18px;
  padding-right: 18px;
  background: #fff;
}

.scenario-card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}

.scenario-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: center;
}

.hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, .06);
  margin: 14px 0
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
}

.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 14px;
}

.pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 13px;
}

/* QR code image component */
.c-qr-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.link {
  color: #A6A6A6;
}

.link:hover {
  text-decoration: #E3B6A2;
}