/* ════════════════════════════════════════════════════════════
   PATENT — Virtual Patent Marking
   Used by: single-patent.php, archive-patent.php
   ════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.patent-hero {
  background: #1A1A1A;
  border-bottom: 5px solid #EE3A43;
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}

.patent-hero::after {
  content: 'PATENT';
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 160px;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  white-space: nowrap;
}

.patent-hero .wrapper { position: relative; }

.patent-hero .breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
}

.patent-hero .breadcrumb a { color: #EE3A43; text-decoration: none; }

.patent-hero h1 {
  font-family: 'Futura', 'Trebuchet MS', Arial, sans-serif;
  font-weight: bold;
  font-size: 42px;
  color: #ffffff;
  line-height: 1.2;
  max-width: 800px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.patent-hero .hero-sub {
  font-size: 18px;
  color: #aaaaaa;
  max-width: 660px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 16px;
  font-size: 12px;
  color: #cccccc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EE3A43;
  flex-shrink: 0;
  display: inline-block;
}

/* ── LEGAL NOTICE BANNER ── */
.patent-legal-banner {
  background: #FFF8E1;
  border-top: 4px solid #F9A825;
  border-bottom: 4px solid #F9A825;
  padding: 26px 0;
}

.patent-notice-inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.patent-notice-icon {
  width: 42px;
  height: 42px;
  background: #F9A825;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'Futura', sans-serif;
}

.patent-notice-text strong {
  display: block;
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5D4037;
  margin-bottom: 6px;
}

.patent-notice-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #4E342E;
  margin-bottom: 0;
}

.patent-notice-text p a { color: #195DAA; font-weight: bold; }

/* ── PAGE LAYOUT ── */
.patent-page-content { padding: 60px 0 80px; background: #fff; }

.patent-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
}

/* ── SECTIONS ── */
.patent-section {
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #E1E1E1;
}

.patent-section:last-child { border-bottom: none; margin-bottom: 0; }

.patent-section-label {
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #EE3A43;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.patent-section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #EE3A43;
  opacity: 0.2;
}

.patent-section h2 {
  font-size: 28px !important;
  color: #666666 !important;
  font-family: 'Futura', 'Trebuchet MS', Arial, sans-serif !important;
  margin: 0 0 15px !important;
  text-transform: uppercase;
}

.patent-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #28303D;
  margin-bottom: 14px;
}

/* ── PRODUCT TABLE ── */
.patent-table-wrap { overflow-x: auto; margin-top: 10px; }

.patent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-family: 'CartoGothic', 'Trebuchet MS', sans-serif;
}

.patent-table thead tr { background: #1A1A1A; color: #fff; }

.patent-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.patent-table thead th:first-child { border-left: 4px solid #EE3A43; }

.patent-table tbody tr { border-bottom: 1px solid #E1E1E1; transition: background 0.15s; }
.patent-table tbody tr:hover { background: #F6F6F6; }
.patent-table tbody tr:last-child { border-bottom: 2px solid #1A1A1A; }

.patent-table tbody td { padding: 14px 18px; vertical-align: top; color: #28303D; }
.patent-table tbody td:first-child { border-left: 4px solid #E1E1E1; font-weight: bold; }
.patent-table tbody tr:hover td:first-child { border-left-color: #EE3A43; }

.patent-num-link {
  color: #195DAA;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

/* Scoped to anchors: the same class is also used on plain <span> patent numbers
   (single patent pages are unlinked), which must not get a hover affordance. */
a.patent-num-link:hover { color: #EE3A43; text-decoration: underline; }

/* Country / jurisdiction prefix badge — sits inline before the patent-num-link.
   The base class supplies layout + neutral colors; per-country modifier classes
   (e.g. .patent-country-badge--US) override the palette so the badge is
   recognizable at a glance. */
.patent-country-badge {
  display: inline-block;
  min-width: 28px;
  padding: 2px 6px;
  margin-right: 6px;
  border-radius: 3px;
  background: #ECEFF1;
  color: #37474F;
  border: 1px solid #CFD8DC;
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.4;
  vertical-align: middle;
}

.patent-country-badge--US { background: #E3F2FD; color: #0D47A1; border-color: #90CAF9; }
.patent-country-badge--EP { background: #E8EAF6; color: #283593; border-color: #9FA8DA; }
.patent-country-badge--GB { background: #FCE4EC; color: #AD1457; border-color: #F48FB1; }
.patent-country-badge--DE { background: #FFF3E0; color: #6D4C00; border-color: #FFCC80; }
.patent-country-badge--FR { background: #E1F5FE; color: #01579B; border-color: #81D4FA; }
.patent-country-badge--JP { background: #FFEBEE; color: #B71C1C; border-color: #EF9A9A; }
.patent-country-badge--CN { background: #FFF8E1; color: #BF360C; border-color: #FFCC80; }
.patent-country-badge--KR { background: #F3E5F5; color: #4A148C; border-color: #CE93D8; }
.patent-country-badge--CA { background: #FFEBEE; color: #B71C1C; border-color: #EF9A9A; }
.patent-country-badge--AU { background: #E8F5E9; color: #1B5E20; border-color: #A5D6A7; }
.patent-country-badge--BR { background: #E8F5E9; color: #1B5E20; border-color: #A5D6A7; }
.patent-country-badge--IN { background: #FFF3E0; color: #BF360C; border-color: #FFCC80; }
.patent-country-badge--MX { background: #E8F5E9; color: #1B5E20; border-color: #A5D6A7; }

.patent-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
}

.patent-status-badge.granted {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.patent-status-badge.pending {
  background: #FFF8E1;
  color: #8A6D00;
  border: 1px solid #FFE082;
}

.patent-status-badge.published {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #90CAF9;
}

.patent-status-badge.expired {
  background: #ECEFF1;
  color: #546E7A;
  border: 1px solid #CFD8DC;
}

.patent-table-note {
  font-size: 14px;
  color: #666;
  margin-top: 12px;
  font-style: italic;
  padding: 10px 14px;
  border-left: 3px solid #E1E1E1;
  background: #F6F6F6;
}

/* ── STATUTE BOX ── */
.patent-statute-box {
  background: #F6F6F6;
  border: 2px solid #E1E1E1;
  border-left: 6px solid #195DAA;
  padding: 28px 32px;
  margin: 8px 0 20px;
}

.patent-statute-box .statute-title {
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #195DAA;
  margin-bottom: 12px;
}

.patent-statute-box p { font-size: 16px; line-height: 1.85; font-style: italic; margin-bottom: 0; }

.statute-citation { margin-top: 12px; font-style: normal !important; font-size: 13px !important; color: #666 !important; font-weight: bold; }

/* ── CLAIMS ── */
.patent-claim-card {
  border: 2px solid #E1E1E1;
  border-left: 5px solid #EE3A43;
  border-radius: 0 8px 8px 0;
  padding: 22px 26px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: -2px 7px 5px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
}

.patent-claim-card:hover { box-shadow: -2px 10px 18px rgba(0,0,0,0.13); }
.patent-claim-card.blue { border-left-color: #195DAA; }

.claim-eyebrow {
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #195DAA;
  margin-bottom: 8px;
}

.patent-claim-card p { font-size: 16px; line-height: 1.8; margin-bottom: 0; }

.patent-claims-note {
  font-size: 14px;
  color: #666;
  margin-top: 12px;
  padding: 12px 18px;
  background: #F6F6F6;
  border-left: 3px solid #E1E1E1;
  font-style: italic;
}

/* ── CODE CHIPS ── */
.patent-code-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.patent-chip {
  background: #F6F6F6;
  border: 2px solid #E1E1E1;
  padding: 8px 18px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #28303D;
  font-weight: bold;
}

/* ── FIGURE GRID ── */
.patent-fig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.patent-fig-item { background: #F6F6F6; border: 1px solid #E1E1E1; padding: 0; margin: 0; display: flex; flex-direction: column; overflow: hidden; }

.patent-fig-link { display: block; background: #fff; }
.patent-fig-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }

.patent-fig-item figcaption { padding: 12px 14px; display: block; }

.patent-fig-item strong {
  display: block;
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #EE3A43;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.patent-fig-item span { font-size: 14px; color: #666; line-height: 1.4; }

/* ── INLINE LINK ── */
.patent-inline-link { color: #EE3A43; font-weight: bold; text-decoration: none; }
.patent-inline-link:hover { text-decoration: underline; }

/* ── SIDEBAR ── */
.patent-sidebar-col { padding-top: 0; }

.patent-updated-box {
  background: #F6F6F6;
  border: 1px solid #E1E1E1;
  padding: 14px 18px;
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.updated-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E7D32; flex-shrink: 0; }
.updated-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Futura', 'Trebuchet MS', sans-serif; font-weight: bold; color: #666; }
.updated-date { display: block; font-size: 14px; color: #28303D; font-weight: bold; }

.patent-sidebar-card {
  background: #fff;
  border: 2px solid #E1E1E1;
  box-shadow: -2px 7px 5px rgba(0,0,0,0.07);
  padding: 24px 26px;
  margin-bottom: 22px;
}

.patent-sidebar-card h3 {
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-size: 13px !important;
  font-weight: bold !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff !important;
  background: #1A1A1A;
  margin: -24px -26px 20px !important;
  padding: 12px 26px;
  border-bottom: 3px solid #EE3A43;
}

.patent-detail-table { width: 100%; border-collapse: collapse; }
.patent-detail-table tr { border-bottom: 1px solid #E1E1E1; }
.patent-detail-table tr:last-child { border-bottom: none; }
.patent-detail-table td { padding: 9px 0; vertical-align: top; }

.patent-detail-table td:first-child {
  width: 40%;
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: bold;
  padding-right: 10px;
}

.patent-detail-table td:last-child { color: #28303D; font-weight: bold; font-size: 14px; }

/* ── INVENTOR ROW ── */
.patent-inventor-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #E1E1E1; }
.patent-inventor-row:last-child { border-bottom: none; }

.inventor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #195DAA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Futura', 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.inventor-name { font-family: 'Futura', 'Trebuchet MS', sans-serif; font-size: 15px; font-weight: bold; color: #28303D; }
.inventor-loc  { font-size: 12px; color: #666; }

/* ── TIMELINE ── */
.patent-timeline { list-style: none; padding: 0; margin: 0; }

.patent-timeline li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #E1E1E1; }
.patent-timeline li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.pt-dot { width: 10px; height: 10px; border-radius: 50%; background: #EE3A43; flex-shrink: 0; margin-top: 5px; }
.pt-date { display: block; font-family: 'Futura', 'Trebuchet MS', sans-serif; font-size: 11px; font-weight: bold; color: #EE3A43; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.pt-event { font-size: 13px; color: #28303D; line-height: 1.4; }

.sidebar-ext-link { color: #195DAA !important; font-weight: bold; font-size: 13px !important; }
.sidebar-ext-link:hover { color: #EE3A43 !important; }

/* ── CTA BUTTON ROW ── */
.cta-buttons-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.cta-buttons-row a.cta_button { margin-top: 0; }

/* ── RESPONSIVE ──
   Breakpoints:
   - 960px: collapse 2-col grid to single column (tablet)
   - 767px: phone — shrink hero/section padding & type, single-col figures, stack nav
*/
@media (max-width: 960px) {
  .patent-content-grid { grid-template-columns: 1fr; gap: 36px; }
  .patent-hero { padding: 48px 0 40px; }
  .patent-hero h1 { font-size: 34px; }
  .patent-hero::after { font-size: 110px; }
  .patent-page-content { padding: 40px 0 56px; }
  .patent-section { margin-bottom: 36px; padding-bottom: 36px; }
  .patent-section h2 { font-size: 24px !important; }
  .patent-section p { font-size: 16px; }
  .patent-statute-box { padding: 22px 24px; }
  .patent-claim-card { padding: 20px 22px; }
}

@media (max-width: 767px) {
  /* Hero */
  .patent-hero { padding: 36px 0 28px; }
  .patent-hero::after { display: none; }
  .patent-hero h1 { font-size: 26px; }
  .patent-hero .hero-sub { font-size: 15px; margin-bottom: 20px; }
  .patent-hero .breadcrumb { font-size: 11px; margin-bottom: 14px; }
  .hero-badges { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Page + sections */
  .patent-page-content { padding: 28px 0 40px; }
  .patent-content-grid { gap: 28px; }
  .patent-section { margin-bottom: 28px; padding-bottom: 28px; }
  .patent-section h2 { font-size: 20px !important; }
  .patent-section p { font-size: 15px; line-height: 1.7; }

  /* Product/detail tables */
  .patent-table { font-size: 13px; }
  .patent-table tbody td, .patent-table thead th { padding: 10px 12px; }

  /* Statute + claim cards */
  .patent-statute-box { padding: 18px 18px; }
  .patent-statute-box p { font-size: 14px; line-height: 1.7; }
  .patent-claim-card { padding: 16px 18px; }
  .patent-claim-card p { font-size: 14px; line-height: 1.65; }

  /* Figure grid: one column on phones */
  .patent-fig-grid { grid-template-columns: 1fr; }

  /* Sidebar cards: tighten and re-align flush h3 */
  .patent-sidebar-card { padding: 20px 20px; }
  .patent-sidebar-card h3 { margin: -20px -20px 16px !important; padding: 12px 20px; }

  /* Patent-scoped prev/next nav stacks */
  .patent-post-navigation .nav-links { flex-direction: column; gap: 12px; }
  .patent-post-navigation .nav-previous,
  .patent-post-navigation .nav-next { width: 100%; text-align: left; }

  /* CTA + theme header */
  .cta-buttons-row { flex-direction: column; }
  .cta-buttons-row a.cta_button { min-width: auto; }
  .fake-header nav { display: none; }
}

/* ── PATENT-PAGE-ONLY: strip table rules/lines ──
   Scoped to #patent-page so the WC single-product "Protected by U.S. Patent"
   block keeps its full table styling. Parent TT1 sets a generic
   `table td, table th { border: 1px solid; }` rule — we zero all sides here. */
#patent-page .patent-table,
#patent-page .patent-detail-table { border: 0; }
#patent-page .patent-table th,
#patent-page .patent-table td,
#patent-page .patent-detail-table th,
#patent-page .patent-detail-table td { border: 0; }
#patent-page .patent-table tbody tr,
#patent-page .patent-table tbody tr:last-child,
#patent-page .patent-detail-table tr,
#patent-page .patent-detail-table tr:last-child { border: 0; }
