/* =========================================================
   PATENTS & REGISTERED DESIGNS
   File: assets/css/patents.css
   ========================================================= */


/* =========================================================
   INTRO
   ========================================================= */

.patent-intro {
  max-width: 855px;
  margin: 0 0 25px;
  color: #566273;
  font-size: 1.02em;
  line-height: 1.65;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.patent-section {
  max-width: 855px;
  margin: 0 0 30px;
}

.patent-section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0 0 9px;
  color: #263746;
  font-size: 1.16em;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 2px solid #d7dee6;
}

.patent-section-icon {
  font-size: 1.08em;
}


/* =========================================================
   GRID
   ========================================================= */

.patent-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* =========================================================
   PATENT CARD
   ========================================================= */

.patent-card {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 17px 18px;
  background: #ffffff;
  border: 1.5px solid #c7d0da;
  border-left: 5px solid #2457a7;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}

.patent-card:hover {
  transform: translateY(-3px);
  background: #fafcff;
  border-color: #86a9cc;
  border-left-color: #0b7a4b;
  box-shadow: 0 8px 20px rgba(36, 87, 167, .12);
}

.featured-patent {
  background: #fbfdff;
}

.patent-content {
  flex: 1;
  min-width: 0;
}


/* =========================================================
   JURISDICTION COLORS
   ========================================================= */

.uk-card {
  border-left-color: #2457a7;
}

.canada-card {
  border-left-color: #c53c3c;
}

.australia-card {
  border-left-color: #1e6f8d;
}

.india-card {
  border-left-color: #d87a16;
}


/* =========================================================
   CARD TOP
   ========================================================= */

.patent-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.patent-heading-content {
  flex: 1;
  min-width: 0;
}

.patent-title {
  color: #2457a7;
  font-size: 1.04em;
  font-weight: 700;
  line-height: 1.42;
  transition: color .2s ease;
}

.patent-card:hover .patent-title {
  color: #0b6b3a;
}

.patent-meta {
  margin-top: 6px;
  color: #68737e;
  font-size: .81em;
  line-height: 1.45;
}

.patent-meta strong {
  color: #4d5964;
  font-weight: 700;
}


/* =========================================================
   BADGES
   ========================================================= */

.patent-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 12px;
  font-size: .68em;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.uk-badge {
  color: #2457a7;
  background: #edf4fb;
  border: 1px solid #b7cee5;
}

.canada-badge {
  color: #a22f2f;
  background: #fff2f2;
  border: 1px solid #e2bcbc;
}

.australia-badge {
  color: #155c78;
  background: #eef8fb;
  border: 1px solid #b9d6e0;
}

.india-badge {
  color: #a35a11;
  background: #fff7eb;
  border: 1px solid #e4c89e;
}


/* =========================================================
   COMPACT DETAILS ROW
   Approx. 25-30% smaller than previous version
   ========================================================= */

.patent-details {
  display: grid;
  grid-template-columns: 175px 190px 125px;
  gap: 8px;
  margin: 12px 0 12px;
}

.patent-details > div {
  padding: 6px 9px;
  background: #f7f9fb;
  border: 1px solid #dde3e8;
  border-radius: 7px;
}

.patent-details span {
  display: block;
  margin-bottom: 1px;
  color: #78838d;
  font-size: .61em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.patent-details strong {
  display: block;
  color: #34404c;
  font-size: .75em;
  font-weight: 700;
  line-height: 1.3;
}


/* =========================================================
   OFFICE LOGO ON RIGHT
   ========================================================= */

.patent-logo-wrap {
  width: 120px;
  min-width: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 5px 4px 4px 13px;
  border-left: 1px solid #e2e7ec;
}

.patent-office-logo {
  display: block;
  width: 92px;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  margin: 0;
  border: 0;
  box-shadow: none;
}


/* UK crown logo generally looks better slightly smaller */
.uk-card .patent-office-logo {
  width: 78px;
}

/* Canadian copyright symbol */
.canada-card .patent-office-logo {
  width: 82px;
}

/* Australian logo */
.australia-card .patent-office-logo {
  width: 92px;
}

/* Indian IP logo */
.india-card .patent-office-logo {
  width: 92px;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.patent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.patent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 6px 10px;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: .71em;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    transform .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}


/* View Record */

.record-btn {
  color: #ffffff !important;
  background: #2457a7;
  border: 1.5px solid #1d488d;
}

.record-btn:hover,
.record-btn:focus {
  color: #ffffff !important;
  background: #0b6b3a;
  border-color: #0b6b3a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(11, 107, 58, .18);
}


/* Copy Citation */

.citation-btn {
  color: #6b5314 !important;
  background: #fff8e6 !important;
  border: 1.5px solid #c9a84c !important;
  cursor: pointer;
}

.citation-btn:hover,
.citation-btn:focus {
  color: #ffffff !important;
  background: #8a6815 !important;
  border-color: #8a6815 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(138, 104, 21, .16);
}

.citation-btn.citation-copied {
  color: #ffffff !important;
  background: #16814f !important;
  border-color: #16814f !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

  .patent-intro,
  .patent-section {
    max-width: 100%;
  }

  .patent-card:hover {
    transform: none;
  }

  .patent-card {
    padding: 15px 16px;
  }

  .patent-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .patent-logo-wrap {
    width: 100px;
    min-width: 100px;
  }

  .patent-office-logo {
    width: 80px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .patent-intro {
    margin-bottom: 20px;
    font-size: .96em;
  }

  .patent-section {
    margin-bottom: 25px;
  }

  .patent-section-heading {
    font-size: 1.08em;
  }

  .patent-card {
    flex-direction: column;
  }

  .patent-card-top {
    flex-direction: column;
    gap: 8px;
  }

  .patent-badge {
    align-self: flex-start;
  }

  .patent-title {
    font-size: .98em;
  }

  .patent-details {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .patent-logo-wrap {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid #e2e7ec;
    align-items: center;
    justify-content: flex-start;
  }

  .patent-office-logo {
    width: 78px;
    max-height: 82px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .patent-card {
    padding: 14px;
  }

  .patent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .patent-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

}