@charset "UTF-8";
/* CE SSRU Patents & Utility Models Registry — UI Motion & Editorial Stylesheet */

@keyframes cePatentCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cePatentBodyReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ce-patent-wrap {
  --ce-p-ink: #1f2937;
  --ce-p-muted: #52606d;
  --ce-p-primary: #b83214;
  --ce-p-accent: #d84315;
  --ce-p-link: #0277bd;
  --ce-p-link-hover: #01579b;
  --ce-p-tint: #fff8f4;
  --ce-p-tint-hover: #ffefe6;
  --ce-p-badge-bg: #fde3d6;
  --ce-p-border: #efd7ca;
  --ce-p-border-hover: #e3b7a0;
  --ce-p-border-open: #d98e6b;

  font-family: "IBM Plex Sans Thai", "Sarabun", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 12px 24px;
  color: var(--ce-p-ink);
  line-height: 1.65;
  text-align: left;
  box-sizing: border-box;
  interpolate-size: allow-keywords;
}

.ce-patent-wrap *,
.ce-patent-wrap *::before,
.ce-patent-wrap *::after {
  box-sizing: border-box;
}

/* Cohort Accordion Card */
.ce-patent-wrap .ce-patent-year {
  margin-bottom: 14px;
  border: 1px solid var(--ce-p-border);
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(184, 50, 20, 0.05);
  transition: border-color 0.24s ease, box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  animation: cePatentCardIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-patent-wrap .ce-patent-year:nth-of-type(1) { animation-delay: 0.03s; }
.ce-patent-wrap .ce-patent-year:nth-of-type(2) { animation-delay: 0.08s; }
.ce-patent-wrap .ce-patent-year:nth-of-type(3) { animation-delay: 0.13s; }
.ce-patent-wrap .ce-patent-year:nth-of-type(4) { animation-delay: 0.18s; }
.ce-patent-wrap .ce-patent-year:nth-of-type(5) { animation-delay: 0.23s; }

.ce-patent-wrap .ce-patent-year:hover {
  border-color: var(--ce-p-border-hover);
  box-shadow: 0 6px 18px rgba(184, 50, 20, 0.09);
}

.ce-patent-wrap .ce-patent-year[open] {
  border-color: var(--ce-p-border-open);
  box-shadow: 0 8px 24px rgba(184, 50, 20, 0.11);
}

/* Smooth modern <details> content height & opacity transition */
.ce-patent-wrap .ce-patent-year::details-content {
  block-size: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    block-size 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    content-visibility 0.34s allow-discrete;
}

.ce-patent-wrap .ce-patent-year[open]::details-content {
  block-size: auto;
  opacity: 1;
}

/* Summary Header */
.ce-patent-wrap .ce-patent-summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background-color: var(--ce-p-tint);
  padding: 14px 18px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ce-p-primary);
  outline: none;
  list-style: none;
  user-select: none;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.15s ease;
}

.ce-patent-wrap .ce-patent-summary::-webkit-details-marker {
  display: none;
}

.ce-patent-wrap .ce-patent-summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--ce-p-accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-patent-wrap .ce-patent-summary:hover {
  background-color: var(--ce-p-tint-hover);
}

.ce-patent-wrap .ce-patent-summary:hover::before,
.ce-patent-wrap .ce-patent-year[open] > .ce-patent-summary::before {
  transform: scaleY(1);
}

.ce-patent-wrap .ce-patent-summary:active {
  transform: scale(0.996);
}

.ce-patent-wrap .ce-patent-summary:focus-visible {
  outline: 2px solid var(--ce-p-accent);
  outline-offset: -2px;
}

.ce-patent-wrap .ce-patent-summary-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ce-patent-wrap .ce-patent-count {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ce-p-primary);
  background-color: var(--ce-p-badge-bg);
  padding: 2px 9px;
  border-radius: 999px;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.ce-patent-wrap .ce-patent-year[open] > .ce-patent-summary .ce-patent-count {
  background-color: var(--ce-p-primary);
  color: #ffffff;
}

.ce-patent-wrap .ce-patent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ce-p-accent);
  flex-shrink: 0;
}

.ce-patent-wrap .ce-patent-toggle::before {
  content: "คลิกเพื่อขยาย";
}

.ce-patent-wrap .ce-patent-year[open] > .ce-patent-summary .ce-patent-toggle::before {
  content: "คลิกเพื่อย่อ";
}

.ce-patent-wrap.ce-patent-en .ce-patent-toggle::before {
  content: "Click to expand";
}

.ce-patent-wrap.ce-patent-en .ce-patent-year[open] > .ce-patent-summary .ce-patent-toggle::before {
  content: "Click to collapse";
}

.ce-patent-wrap .ce-patent-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(216, 67, 21, 0.12);
  color: var(--ce-p-primary);
  font-size: 10px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, color 0.22s ease;
}

.ce-patent-wrap .ce-patent-year[open] > .ce-patent-summary .ce-patent-chevron {
  transform: rotate(180deg);
  background-color: var(--ce-p-primary);
  color: #ffffff;
}

/* Body Reveal */
.ce-patent-wrap .ce-patent-body {
  padding: 16px 18px;
  border-top: 1px solid #f5e5dc;
  background-color: #ffffff;
}

.ce-patent-wrap .ce-patent-year[open] > .ce-patent-body {
  animation: cePatentBodyReveal 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Patent Items List */
.ce-patent-wrap .ce-patent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ce-patent-wrap .ce-patent-item {
  position: relative;
  padding: 12px 14px 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, border-left-color 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-patent-wrap .ce-patent-item:last-child {
  margin-bottom: 0;
}

.ce-patent-wrap .ce-patent-item:hover {
  background-color: #fffaf7;
  border-left-color: var(--ce-p-accent);
  transform: translateX(3px);
}

.ce-patent-wrap .ce-patent-title {
  display: block;
  color: var(--ce-p-primary);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
}

.ce-patent-wrap .ce-patent-title-link {
  color: var(--ce-p-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: color 0.2s ease, background-size 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-patent-wrap .ce-patent-title-link:hover,
.ce-patent-wrap .ce-patent-title-link:focus-visible {
  color: var(--ce-p-accent);
  background-size: 100% 1.5px;
  text-decoration: none;
  outline: none;
}

.ce-patent-wrap .ce-patent-people {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ce-p-muted);
  line-height: 1.6;
}

.ce-patent-wrap .ce-patent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 9px;
}

.ce-patent-wrap .ce-patent-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #cce6f4;
  background-color: #f0f8fd;
  color: var(--ce-p-link);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.ce-patent-wrap .ce-patent-doc-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--ce-p-accent);
  transition: border-left-color 0.2s ease, transform 0.2s ease;
}

.ce-patent-wrap .ce-patent-doc-btn:hover,
.ce-patent-wrap .ce-patent-doc-btn:focus-visible {
  background-color: var(--ce-p-link);
  border-color: var(--ce-p-link);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(2, 119, 189, 0.2);
  outline: none;
}

.ce-patent-wrap .ce-patent-doc-btn:hover::before,
.ce-patent-wrap .ce-patent-doc-btn:focus-visible::before {
  border-left-color: #ffffff;
  transform: translateX(2px);
}

.ce-patent-wrap .ce-patent-doc-btn:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .ce-patent-wrap {
    padding: 10px 4px 18px;
  }

  .ce-patent-wrap .ce-patent-summary {
    padding: 12px 14px;
    font-size: 15px;
  }

  .ce-patent-wrap .ce-patent-toggle::before {
    display: none;
  }

  .ce-patent-wrap .ce-patent-body {
    padding: 12px 14px;
  }

  .ce-patent-wrap .ce-patent-item {
    padding: 10px 10px 10px 12px;
  }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .ce-patent-wrap .ce-patent-year,
  .ce-patent-wrap .ce-patent-year::details-content,
  .ce-patent-wrap .ce-patent-year[open] > .ce-patent-body,
  .ce-patent-wrap .ce-patent-summary,
  .ce-patent-wrap .ce-patent-summary::before,
  .ce-patent-wrap .ce-patent-chevron,
  .ce-patent-wrap .ce-patent-item,
  .ce-patent-wrap .ce-patent-title-link,
  .ce-patent-wrap .ce-patent-doc-btn,
  .ce-patent-wrap .ce-patent-doc-btn::before {
    animation: none !important;
    transition: none !important;
  }
}
