/* ============================================================
   FLITZEN - Trade mark page
   Loads after legal.css; only adds the certificate viewer
   ============================================================ */

.tm-doc {
  margin: clamp(20px, 2.4vw, 30px) 0 0;
}

/* toolbar above the embedded document */
.tm-doc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 13px clamp(14px, 1.6vw, 20px);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--paper-2);
}
.tm-doc-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: clamp(14.5px, 1vw, 16px);
  font-weight: 600;
  color: var(--ink);
}
.tm-doc-icon { width: 18px; height: 18px; flex: none; color: var(--gray-2); }
.tm-doc-size {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.tm-doc-actions { display: inline-flex; align-items: center; gap: 18px; }
.tm-doc-actions a {
  font-size: clamp(13px, 1vw, 14.5px);
  font-weight: 600;
  color: var(--gray-1);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tm-doc-actions a:hover { color: var(--ink); border-color: var(--ink); }

/* the document itself */
.tm-doc-frame {
  display: block;
  width: 100%;
  /* A4 is 1:1.414; cap the height so the page still scrolls comfortably */
  height: clamp(460px, 116vw, 980px);
  border: 1px solid var(--line-strong);
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--paper-3);
}

/* shown when the browser has no PDF plug-in (common on mobile) */
.tm-doc-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 100%;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
}
.tm-doc-fallback p {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--gray-1);
  margin: 0;
}

.tm-doc-cap {
  margin-top: 14px;
  font-size: clamp(13px, 1vw, 14.5px);
  line-height: 1.6;
  color: var(--gray-2);
}

@media (max-width: 600px) {
  .tm-doc-bar { flex-direction: column; align-items: flex-start; }
  .tm-doc-frame { height: 78vh; }
}
