/* cl_section/cl_section.css */

.clsec {
  padding: 28px 14px;
}

.clsec__container {
  max-width: 1280px;
  margin: 0 auto;
}

.clsec__header {
  text-align: center;
  margin-bottom: 16px;
}

.clsec__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.clsec__subtitle {
  margin: 8px auto 0;
  max-width: 820px;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.45;
}

.clsec__empty {
  margin: 16px auto 0;
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  color: #6b7280;
  text-align: center;
}

/* ✅ Responsive grid */
.clsec__grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .clsec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .clsec__grid { grid-template-columns: 1fr; }
}

/* ✅ Card */
.clsec__card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  padding: 14px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.clsec__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  border-color: #d1d5db;
}

.clsec__card.is-featured {
  border-left: 4px solid #D32F2F;
}

/* top block */
.clsec__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.clsec__logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #eef0f3;
  background: #fafafa;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.clsec__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.clsec__meta {
  min-width: 0;
}

.clsec__cardtitle {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-top: 2px;
}

.clsec__desc {
  margin-top: 6px;
  font-size: 13px;
  color: #374151;
  line-height: 1.35;
}

/* contacts */
.clsec__contacts {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  display: grid;
  gap: 6px;
}

.clsec__contact {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}

.clsec__contactlbl {
  color: #6b7280;
  font-weight: 700;
  white-space: nowrap;
}

.clsec__contactval {
  color: #111827;
  font-weight: 600;
  word-break: break-word;
}

/* footer */
.clsec__footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.clsec__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  background: #f9fafb;
  color: #1f2937;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background .12s ease, transform .12s ease;
}

.clsec__btn:hover {
  background: #eef2f7;
  transform: translateY(-1px);
}

/* =========================================================
   cl_section — Instructions page
   ========================================================= */

.clins {
  padding: 28px 14px;
}

.clins__container {
  max-width: 980px;
  margin: 0 auto;
}

.clins__card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  padding: 18px;
}

/* header */
.clins__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.clins__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clins__brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  padding: 6px;
}

.clins__brand-title {
  font-weight: 800;
  font-size: 16px;
  color: #111827;
}

.clins__brand-sub {
  font-size: 13px;
  color: #6b7280;
}

.clins__back {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  text-decoration: none;
  font-weight: 700;
  color: #111827;
}

.clins__back:hover {
  background: #eef2f7;
}

/* titles */
.clins__title {
  font-size: 20px;
  font-weight: 900;
  margin: 8px 0;
}

.clins__lead {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

/* separator */
.clins__sep {
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0),
    rgba(211,47,47,.35),
    rgba(0,0,0,0)
  );
}

/* grid */
.clins__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================
   Clickable contact links
   ========================= */

/* Make value area align nicely */
.clsec__contactval {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Style ONLY links inside contacts */
.clsec__contactval a {
  color: inherit;                 /* no default blue */
  text-decoration: none;          /* remove underline */
  font-weight: 600;

  display: inline-flex;
  align-items: center;

  padding: 2px 10px;
  border-radius: 999px;           /* pill */
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);

  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

/* Hover */
.clsec__contactval a:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.18);
}

/* Active click feel */
.clsec__contactval a:active {
  transform: translateY(1px);
}

/* Keyboard focus (important for accessibility) */
.clsec__contactval a:focus-visible {
  outline: 2px solid rgba(25, 118, 210, 0.35);
  outline-offset: 2px;
}

/* Optional: if you want phone links to be slightly more “action-like” */
.clsec__contactval a[href^="tel:"] {
  border-color: rgba(220, 0, 0, 0.22);
  background: rgba(220, 0, 0, 0.04);
}

/* Optional: external links look a bit different */
.clsec__contactval a[href^="http"] {
  border-color: rgba(0, 120, 80, 0.20);
  background: rgba(0, 120, 80, 0.04);
}

.clsec__contact-prefix {
  font-weight: 600;
  opacity: .85;
}


@media (max-width: 760px) {
  .clins__grid {
    grid-template-columns: 1fr;
  }
}

/* blocks */
.clins__block {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

.clins__block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 8px;
}

.clins__badge {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #FFEBEE;
  border: 1px solid #FFD1D6;
  display: grid;
  place-items: center;
}

/* lists & examples */
.clins__list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #374151;
}

.clins__example {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 13px;
  white-space: pre-line;
}

/* notes */
.clins__note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  color: #374151;
}

.clins__note--warn {
  background: #fff5f5;
  border-color: #fecaca;
  color: #7f1d1d;
}

/* final summary */
.clins__final {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #D32F2F;
  background: #fafafa;
}

.clins__final-title {
  font-weight: 900;
  margin-bottom: 6px;
}

/* Instruction link (styled, not default) */
.clsec__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #2563eb;              /* blue-600 */
  font-weight: 700;
  text-decoration: none;

  padding: 2px 6px;
  border-radius: 8px;

  background: rgba(37, 99, 235, 0.08);
  border-bottom: 2px solid rgba(37, 99, 235, 0.35);

  transition: 
    color .15s ease,
    background .15s ease,
    border-color .15s ease,
    transform .12s ease;
}

.clsec__link:hover {
  color: #1e40af;              /* blue-800 */
  background: rgba(37, 99, 235, 0.14);
  border-bottom-color: #1e40af;
  transform: translateY(-1px);
}

.clsec__link:active {
  transform: translateY(0);
}

/* Contacts links inside instructions */
.clsec__contact-link {
  display: inline-flex;
  align-items: center;

  margin: 0 2px;
  padding: 2px 8px;

  font-weight: 700;
  font-size: 13px;
  color: #7f1d1d; /* emerald-800 */

  text-decoration: none;
  border-radius: 8px;

  background: rgba(185, 53, 16, 0.1);
  border-bottom: 2px solid rgba(185, 24, 16, 0.35);

  transition:
    background .15s ease,
    color .15s ease,
    transform .12s ease,
    border-color .15s ease;
}

.clsec__contact-link:hover {
  background: #fff5f5;
  color: #7f1d1d;
  border-bottom-color: #7f1d1d;
  transform: translateY(-1px);
}

.clsec__contact-link:active {
  transform: translateY(0);
}