﻿/*
Theme Name: Patent Arcade
Theme URI: https://patentarcade.com/
Author: Kirk Sigmon
Author URI: https://kelldann.com/team/kirk-a-sigmon/
Description: WordPress theme for Patent Arcade.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: patentarcade
*/

@font-face {
  font-family: "Bungee";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/bungee-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-400-900.woff2") format("woff2");
}

:root {
  --bg: #050b07;
  --bg-panel: #071108;
  --ink: #172018;
  --ink-soft: #4d5d53;
  --text: #f4fff6;
  --muted: rgba(231, 255, 236, 0.74);
  --green: #95ffb1;
  --green-2: #5fe184;
  --gold: #ffe28a;
  --red: #ff7f8a;
  --blue: #7db9ff;
  --paper: #f6f8f3;
  --paper-2: #e9efe9;
  --line: rgba(149, 255, 177, 0.18);
  --font-logo: "Bungee", "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --content: 1180px;
  --rotated-title-inset: clamp(14px, 1.5vw, 24px);
  --focus: 0 0 0 3px rgba(244, 255, 246, 0.95), 0 0 0 6px rgba(94, 231, 136, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(143, 246, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 246, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #071108 0%, #0b1b10 48%, #111724 100%);
  background-size: 32px 32px, 32px 32px, auto;
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 4px);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.site-main,
.content-area,
.entry,
.hentry,
.widget,
.widget-area,
.main-navigation,
.custom-logo-link,
.site-title,
.entry-header,
.archive-header,
.page-header,
.entry-meta,
.entry-related,
.post-thumbnail,
.search-field,
.search-submit {
  min-width: 0;
}

.site-main {
  display: block;
}

.entry-content,
.entry-summary {
  overflow-wrap: break-word;
}

.entry-title,
.page-title {
  overflow-wrap: anywhere;
}

.search-form {
  margin: 0;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 12px 14px;
  color: #071108;
  background: #f8fff9;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 800;
}

.shell {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 13, 8, 0.88);
  border-bottom: 1px solid rgba(149, 255, 177, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 2px 0 rgba(255, 226, 138, 0.08);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 4px;
  background:
    linear-gradient(90deg,
      var(--green) 0 18%,
      var(--gold) 18% 34%,
      var(--blue) 34% 55%,
      var(--red) 55% 72%,
      var(--green) 72% 100%);
  box-shadow:
    0 0 18px rgba(149, 255, 177, 0.22),
    0 0 12px rgba(125, 185, 255, 0.18);
}

.header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}

.brand {
  display: grid;
  gap: 1px;
  width: clamp(12.4rem, 16vw, 14.8rem);
  max-width: 14.8rem;
  transform-origin: left center;
  transition: transform 180ms ease, filter 180ms ease;
}

.brand-name {
  color: #ffffff;
  font-family: var(--font-logo);
  font-size: 1.56rem;
  font-weight: 400;
  line-height: 0.98;
  white-space: nowrap;
  transition: text-shadow 180ms ease;
}

.brand-subtitle {
  color: var(--green);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px) scale(1.06);
  filter:
    drop-shadow(3px 0 0 rgba(125, 185, 255, 0.38))
    drop-shadow(-3px 0 0 rgba(255, 127, 138, 0.32))
    drop-shadow(0 0 22px rgba(149, 255, 177, 0.34));
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  text-shadow:
    4px 0 0 rgba(125, 185, 255, 0.5),
    -4px 0 0 rgba(255, 127, 138, 0.42),
    0 2px 0 rgba(255, 226, 138, 0.18),
    0 0 34px rgba(149, 255, 177, 0.44);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.site-nav a {
  position: relative;
  padding: 10px 8px;
  color: rgba(244, 255, 246, 0.78);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav a::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 5px;
  left: 8px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  transform: scaleX(1);
}

.header-tools {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-search {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(130px, 190px) 44px;
  min-height: 40px;
  overflow: visible;
  border: 2px solid rgba(255, 226, 138, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(38, 29, 18, 0.92), rgba(13, 14, 13, 0.94)),
    #11100d;
  box-shadow:
    inset 0 0 0 2px rgba(5, 8, 6, 0.9),
    0 0 20px rgba(255, 226, 138, 0.1);
}

.header-search:focus-within {
  z-index: 40;
}

.header-search input {
  min-width: 0;
  border: 0;
  padding: 0 12px;
  color: #fff8ee;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(255, 248, 238, 0.58);
}

.header-search button {
  border: 0;
  color: #1f1600;
  background: linear-gradient(180deg, #fff2b0, #d9b84f);
  font-weight: 900;
  cursor: pointer;
}

.external-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid rgba(149, 255, 177, 0.24);
  border-radius: 8px;
  padding: 0 12px;
  color: #defee5;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.external-link::after {
  content: "\2197";
  width: 0.9em;
  display: inline-block;
  color: var(--gold);
  font-size: 0.86em;
  line-height: 1;
  text-align: center;
  transition: transform 160ms ease, color 160ms ease;
}

.external-link:hover,
.external-link:focus-visible {
  transform: translateY(-2px);
  color: #fff8ee;
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(38, 29, 18, 0.98), rgba(12, 14, 12, 0.98));
  box-shadow:
    inset 0 0 0 2px rgba(5, 8, 6, 0.92),
    0 0 24px rgba(255, 226, 138, 0.18);
}

.external-link:hover::after,
.external-link:focus-visible::after {
  color: #ffffff;
  transform: translate(2px, -2px);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(300px, 40vh, 430px);
  overflow: hidden;
  background: #050b07;
}

.hero-media,
.hero-media video,
.hero-fallback,
.screen-grid,
.scanlines {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  pointer-events: none;
}

.hero-media video {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.38) contrast(1.08) hue-rotate(-18deg);
}

.hero-video {
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero-video.is-active {
  opacity: 0.34;
}

.hero-fallback {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(6, 24, 12, 0.78), rgba(9, 12, 23, 0.68)),
    linear-gradient(135deg, #071108, #111724);
}

.screen-grid {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(143, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 246, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: screen;
  opacity: 0.8;
}

.scanlines {
  z-index: 3;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 4px);
  opacity: 0.22;
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: clamp(300px, 40vh, 430px);
  display: flex;
  align-items: center;
  padding: 58px 0 44px;
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -32px -36px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(149, 255, 177, 0.1);
  background:
    linear-gradient(180deg, rgba(5, 12, 8, 0.36), rgba(5, 12, 8, 0.08)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px);
  box-shadow: 0 0 60px rgba(149, 255, 177, 0.08);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 {
  display: inline-block;
  width: min(100%, 15.8ch);
  max-width: 15.8ch;
  color: #f4fff6;
  font-size: clamp(3.5rem, 7vw, 6.2rem);
  line-height: 0.95;
  overflow-wrap: normal;
  word-break: normal;
  text-shadow:
    4px 0 0 rgba(125, 185, 255, 0.36),
    -4px 0 0 rgba(255, 127, 138, 0.3),
    0 2px 0 rgba(255, 226, 138, 0.14),
    0 0 34px rgba(149, 255, 177, 0.34);
  filter:
    drop-shadow(0 0 16px rgba(125, 185, 255, 0.16))
    drop-shadow(0 0 24px rgba(149, 255, 177, 0.1));
  animation: heroCrtPulse 3.6s steps(2, end) infinite;
}

.hero h1:hover {
  text-shadow:
    6px 0 0 rgba(125, 185, 255, 0.46),
    -6px 0 0 rgba(255, 127, 138, 0.38),
    0 3px 0 rgba(255, 226, 138, 0.2),
    0 0 42px rgba(149, 255, 177, 0.42);
}

.hero-lede {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.62;
}

.hero-lede a {
  position: relative;
  z-index: 3;
  color: var(--gold);
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-shadow 160ms ease, text-decoration-color 160ms ease;
}

.hero-lede a:hover,
.hero-lede a:focus-visible {
  color: var(--green);
  text-decoration-color: var(--green);
  text-shadow: 0 0 18px rgba(149, 255, 177, 0.42);
}

/* Latest posts */
.content-band {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  background-size: 28px 28px, 28px 28px, auto;
}

.section-heading {
  padding: 64px 0 28px;
}

.section-heading h2 {
  max-width: 760px;
  color: inherit;
  font-size: clamp(2.35rem, 4.8vw, 3.35rem);
  line-height: 1;
}

.latest-heading {
  position: absolute;
  top: 84px;
  left: max(calc(20px + var(--rotated-title-inset)), calc((100vw - var(--content)) / 2 + var(--rotated-title-inset)));
  z-index: 2;
  width: max-content;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.latest-heading h2,
.writing-intro h2 {
  padding: 12px 14px;
  color: #f4fff6;
  background:
    linear-gradient(90deg, rgba(8, 13, 20, 0.96), rgba(12, 24, 36, 0.92)),
    #070c12;
  border: 2px solid rgba(244, 255, 246, 0.8);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 2px rgba(4, 8, 14, 0.92),
    0 0 24px rgba(149, 255, 177, 0.18);
  text-shadow:
    2px 0 0 rgba(125, 185, 255, 0.22),
    -2px 0 0 rgba(255, 127, 138, 0.18);
  transform: rotate(90deg);
  transform-origin: left top;
  white-space: nowrap;
}

.latest-heading h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.45rem);
}

.recent-posts {
  padding: 84px 0 68px 70px;
}

.featured-row,
.compact-row {
  display: grid;
  gap: 16px;
}

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

.compact-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 16px;
}

.post-card {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(149, 255, 177, 0.14) 0 7px, transparent 7px),
    linear-gradient(180deg, #ffffff, #f4f7f4);
  border: 2px solid rgba(9, 18, 13, 0.28);
  border-radius: 8px;
  box-shadow:
    0 22px 46px rgba(9, 18, 13, 0.16),
    inset 0 0 0 2px rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(23, 32, 24, 0.35);
  box-shadow:
    0 34px 70px rgba(8, 15, 10, 0.24),
    0 18px 34px rgba(8, 15, 10, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.62) inset;
}

.post-card-featured {
  min-height: 360px;
}

.post-card-compact {
  min-height: 285px;
}

.post-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #dfe8df;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 220ms ease, filter 220ms ease;
}

.post-card-featured .post-image {
  height: 190px;
}

.post-card:hover .post-image,
.post-card:focus-visible .post-image {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
}

.post-body {
  display: grid;
  gap: 9px;
  padding: 14px 16px 18px;
}

.post-card-compact .post-body {
  padding: 12px;
}

.tag {
  width: fit-content;
  border: 1px solid rgba(7, 17, 8, 0.52);
  border-radius: 3px;
  padding: 3px 7px;
  color: #071108;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag-red {
  background: var(--red);
}

.tag-blue {
  background: var(--blue);
}

.tag-gold {
  background: var(--gold);
}

.post-card time {
  color: #53665a;
  font-size: 0.82rem;
  font-weight: 800;
}

.post-card h3 {
  margin: 0;
  color: #111914;
  font-size: 1.05rem;
  line-height: 1.17;
}

.post-card-featured h3 {
  font-size: 1.28rem;
}

.post-card-compact h3 {
  font-size: 0.93rem;
}

.post-card p {
  margin: 0;
  color: #4d5d53;
  line-height: 1.42;
}

.readmore-pills,
.writing-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.readmore-pills span,
.writing-pills span {
  color: rgba(18, 36, 24, 0.86);
  font-family: var(--font-ui);
  font-weight: 900;
}

.readmore-pills a,
.writing-pills a,
.about-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(244, 255, 246, 0.68);
  border-radius: 999px;
  padding: 0 14px;
  color: #f4fff6;
  background: linear-gradient(180deg, rgba(18, 28, 42, 0.96), rgba(6, 11, 18, 0.96));
  box-shadow:
    inset 0 0 0 2px rgba(4, 8, 14, 0.92),
    0 12px 24px rgba(0, 0, 0, 0.16);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.readmore-pills a:hover,
.readmore-pills a:focus-visible,
.writing-pills a:hover,
.writing-pills a:focus-visible,
.about-actions a:hover,
.about-actions a:focus-visible {
  transform: translateY(-2px);
  border-color: #ffffff;
  background: linear-gradient(180deg, rgba(22, 52, 104, 0.98), rgba(8, 24, 70, 0.98));
  box-shadow:
    inset 0 0 0 2px rgba(4, 8, 30, 0.94),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(125, 185, 255, 0.16);
}

.readmore-pills a {
  color: #06120b;
  background: linear-gradient(180deg, #ffffff, #c9fbd8);
  border-color: rgba(30, 68, 43, 0.52);
}

.readmore-pills a:hover,
.readmore-pills a:focus-visible {
  color: #06120b;
  background: linear-gradient(180deg, #ffffff, #adffc1);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.8),
    0 18px 36px rgba(17, 48, 28, 0.2),
    0 0 22px rgba(95, 225, 132, 0.2);
}

/* Gaming patents database */
.database-section {
  color: #f4fff6;
  background:
    radial-gradient(circle at 18% 10%, rgba(149, 255, 177, 0.18), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(143, 246, 255, 0.12), transparent 22%),
    linear-gradient(90deg, rgba(149, 255, 177, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 246, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #071108 0%, #0d1b16 46%, #071520 100%);
  background-size: 100% 100%, 100% 100%, 22px 22px, 22px 22px, auto;
  border-top: 1px solid rgba(149, 255, 177, 0.16);
  border-bottom: 1px solid rgba(149, 255, 177, 0.14);
}

.database-shell {
  padding-bottom: 70px;
}

#database-title,
#about-title {
  display: inline-block;
  color: #f4fff6;
  text-shadow:
    4px 0 0 rgba(125, 185, 255, 0.36),
    -4px 0 0 rgba(255, 127, 138, 0.3),
    0 2px 0 rgba(255, 226, 138, 0.14),
    0 0 34px rgba(149, 255, 177, 0.34);
  filter:
    drop-shadow(0 0 16px rgba(125, 185, 255, 0.16))
    drop-shadow(0 0 24px rgba(149, 255, 177, 0.1));
}

#database-title:hover,
#about-title:hover {
  text-shadow:
    6px 0 0 rgba(125, 185, 255, 0.46),
    -6px 0 0 rgba(255, 127, 138, 0.38),
    0 3px 0 rgba(255, 226, 138, 0.2),
    0 0 42px rgba(149, 255, 177, 0.42);
}

.database-toolbar,
.patent-table-wrap {
  border: 3px solid rgba(244, 255, 246, 0.82);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 28, 58, 0.96), rgba(8, 15, 32, 0.96));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.32),
    inset 0 0 0 2px rgba(4, 8, 20, 0.96);
}

.database-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.filter-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 2px solid rgba(244, 255, 246, 0.66);
  border-radius: 4px;
  padding: 0 12px;
  color: #f4fff6;
  background: #060b14;
  box-shadow: inset 0 0 0 2px rgba(12, 34, 92, 0.72);
}

.filter-field input::placeholder {
  color: rgba(244, 255, 246, 0.52);
}

.database-search-button {
  min-height: 44px;
  border: 2px solid rgba(255, 226, 138, 0.82);
  border-radius: 4px;
  padding: 0 18px;
  color: #1f1600;
  background: linear-gradient(180deg, #fff2b0, #d9b84f);
  box-shadow:
    inset 0 0 0 2px rgba(99, 72, 0, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.22);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.database-search-button:hover,
.database-search-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 0 0 2px rgba(99, 72, 0, 0.16),
    0 16px 34px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(255, 226, 138, 0.18);
}

.patent-table-wrap {
  overflow-x: auto;
}

.daily-patents-title {
  margin: 0;
  padding: 15px 16px 13px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(244, 255, 246, 0.12);
  font-family: var(--font-logo);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    2px 0 0 rgba(125, 185, 255, 0.24),
    -2px 0 0 rgba(255, 127, 138, 0.18),
    0 0 24px rgba(255, 226, 138, 0.22);
}

.patent-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.patent-table th,
.patent-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(244, 255, 246, 0.1);
  text-align: left;
  vertical-align: top;
}

.patent-table th {
  color: rgba(244, 255, 246, 0.7);
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.patent-table td {
  color: rgba(231, 255, 236, 0.82);
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.45;
}

.patent-table tbody tr:nth-child(even) td {
  background: rgba(125, 185, 255, 0.045);
}

.patent-table tbody tr:hover td {
  background: rgba(125, 185, 255, 0.14);
  color: #ffffff;
}

.patent-table tbody td:first-child {
  border-left: 6px solid transparent;
}

.patent-table tbody tr:hover td:first-child {
  border-left-color: var(--gold);
}

.patent-table th:last-child,
.patent-table td:last-child {
  width: 170px;
  text-align: right;
}

.patent-table th:first-child,
.patent-table td:first-child {
  width: 104px;
  text-align: center;
}

.patent-table th:nth-child(2),
.patent-table td:nth-child(2) {
  width: 220px;
}

.patent-table th:nth-child(4),
.patent-table td:nth-child(4) {
  width: 155px;
}

.patent-table th:nth-child(5),
.patent-table td:nth-child(5) {
  width: 130px;
}

.patent-table td:last-child {
  vertical-align: middle;
}

.patent-table td strong {
  display: block;
  color: #ffffff;
}

.patent-table td span {
  display: block;
  margin-top: 4px;
  color: rgba(231, 255, 236, 0.58);
  font-size: 0.82rem;
}

.patent-table tr.is-hidden {
  display: none;
}

.patent-table td.patent-links {
  text-align: right;
  vertical-align: middle;
  white-space: normal;
}

.patent-table td.patent-links a {
  min-height: 32px;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 255, 246, 0.22);
  border-radius: 4px;
  margin: 6px 0 0 auto;
  padding: 0 7px;
  color: #f4fff6;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease, filter 150ms ease;
}

.patent-table td.patent-links a:first-child {
  margin-top: 0;
}

.patent-table td.patent-links a:hover,
.patent-table td.patent-links a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: #fff8c8;
  background: rgba(255, 226, 138, 0.1);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.24),
    0 0 0 2px rgba(255, 226, 138, 0.12);
}

.patent-table td.patent-links .patent-arcade-link {
  color: var(--gold);
  border-color: rgba(255, 226, 138, 0.74);
  background: rgba(255, 226, 138, 0.12);
}

.patent-table td.patent-links .patent-arcade-link:hover,
.patent-table td.patent-links .patent-arcade-link:focus-visible {
  color: #fff8c8;
  border-color: #fff8c8;
  background: rgba(255, 226, 138, 0.2);
}

.patent-record-link,
.patent-title-link,
.patent-tax-link {
  color: inherit;
  text-decoration: none;
}

.patent-record-link {
  display: block;
  min-width: 0;
}

.patent-result-thumb {
  width: 72px;
  height: 72px;
  display: inline-block;
  overflow: hidden;
  border: 1px solid rgba(244, 255, 246, 0.28);
  border-radius: 6px;
  margin: 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.patent-result-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.patent-record-link .patent-record-text,
.patent-record-link .patent-record-number,
.patent-record-link .patent-record-application {
  display: block;
  min-width: 0;
  margin: 0;
}

.patent-record-link .patent-record-number {
  color: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.patent-record-link .patent-record-application {
  margin-top: 4px;
  color: rgba(231, 255, 236, 0.58);
  font-size: 0.78rem;
  line-height: 1.25;
}

.patent-title-link,
.patent-tax-link {
  color: #f4fff6;
  border-bottom: 1px solid rgba(255, 226, 138, 0.34);
}

.patent-title-link {
  font-weight: 800;
}

.patent-record-link:hover,
.patent-record-link:focus-visible,
.patent-title-link:hover,
.patent-title-link:focus-visible,
.patent-tax-link:hover,
.patent-tax-link:focus-visible {
  color: var(--gold);
}

.database-page-section {
  color: #172018;
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #f5f8f5, #e7eee7);
  background-size: 28px 28px, 28px 28px, auto;
}

.database-page-shell {
  padding-top: 0;
}

.patent-database-main {
  padding-top: 26px;
}

.database-full-toolbar {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.database-full-toolbar .filter-field {
  display: grid;
  gap: 7px;
  align-self: end;
}

.database-full-toolbar .database-query-field {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
}

.database-full-toolbar .filter-field:not(.database-query-field) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.database-full-toolbar .database-search-button {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.filter-field > span {
  color: rgba(231, 255, 236, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-field select {
  width: 100%;
  min-height: 44px;
  border: 2px solid rgba(244, 255, 246, 0.66);
  border-radius: 4px;
  padding: 0 34px 0 12px;
  color: #f4fff6;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) calc(100% - 17px) 19px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) calc(100% - 11px) 19px / 6px 6px no-repeat,
    #060b14;
  box-shadow: inset 0 0 0 2px rgba(12, 34, 92, 0.72);
  appearance: none;
}

.database-results-panel {
  overflow-x: auto;
}

.database-page-section .database-toolbar,
.database-page-section .patent-table-wrap {
  border: 2px solid rgba(23, 32, 24, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 24px 54px rgba(9, 18, 13, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.database-page-section .database-toolbar {
  align-items: end;
  margin-bottom: 16px;
  width: 100%;
}

.database-page-section .filter-field > span {
  color: var(--ink-soft);
  min-height: 14px;
  line-height: 1;
}

.database-page-section .filter-field input,
.database-page-section .filter-field select {
  height: 44px;
  min-height: 44px;
  color: #172018;
  border-color: rgba(23, 32, 24, 0.22);
  background:
    linear-gradient(45deg, transparent 50%, #0c6d35 50%) calc(100% - 17px) 19px / 6px 6px no-repeat,
    linear-gradient(135deg, #0c6d35 50%, transparent 50%) calc(100% - 11px) 19px / 6px 6px no-repeat,
    #ffffff;
  box-shadow: inset 0 0 0 2px rgba(12, 109, 53, 0.06);
}

.database-page-section .database-query-field input {
  background: #ffffff;
}

.database-page-section .database-query-field {
  gap: 7px;
}

.database-page-section .database-query-field .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.database-page-section .database-search-button {
  height: 44px;
  min-height: 44px;
  align-self: end;
}

.database-page-section .filter-field input::placeholder {
  color: rgba(23, 32, 24, 0.48);
}

.database-results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  border: 1px solid rgba(23, 32, 24, 0.1);
  border-bottom: 1px solid rgba(23, 32, 24, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.database-results-header .daily-patents-title {
  border-bottom: 0;
  color: #0d1710;
  background: transparent;
  text-shadow: none;
}

.database-results-header p {
  max-width: 470px;
  padding: 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.database-query-summary {
  margin-top: 6px !important;
}

.database-result-count {
  min-width: fit-content;
  border: 1px solid rgba(12, 109, 53, 0.18);
  border-radius: 999px;
  padding: 6px 10px !important;
  color: #0c4e27 !important;
  background: rgba(149, 255, 177, 0.16);
  font-size: 0.82rem !important;
  font-weight: 900;
}

.patent-data-disclaimer {
  margin-top: 18px;
  border: 1px solid rgba(101, 75, 0, 0.18);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  color: #314339;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 16px 34px rgba(9, 18, 13, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.patent-data-disclaimer p {
  margin: 0;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.48;
}

.database-page-section .patent-table td {
  color: #243328;
  background: rgba(255, 255, 255, 0.74);
  border-bottom-color: rgba(23, 32, 24, 0.1);
}

.database-page-section .patent-table th {
  color: var(--ink-soft);
  background: rgba(237, 244, 237, 0.88);
}

.database-page-section .patent-table tbody tr:nth-child(even) td {
  background: rgba(235, 243, 235, 0.7);
}

.database-page-section .patent-table tbody tr:hover td {
  color: #111914;
  background: rgba(149, 255, 177, 0.16);
}

.database-page-section .patent-table tbody td:first-child {
  border-left: 0;
  padding-left: 12px;
  padding-right: 12px;
}

.database-page-section .patent-table tbody tr:hover td:first-child {
  border-left-color: transparent;
}

.database-page-section .patent-table td strong,
.database-page-section .patent-record-link,
.database-page-section .patent-title-link,
.database-page-section .patent-tax-link {
  color: #111914;
}

.database-page-section .patent-table td span {
  color: rgba(36, 51, 40, 0.62);
}

.database-page-section .patent-result-thumb {
  border-color: rgba(23, 32, 24, 0.16);
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    0 8px 16px rgba(9, 18, 13, 0.08);
}

.database-page-section .patent-record-link .patent-record-number {
  color: #111914;
}

.database-page-section .patent-record-link .patent-record-application {
  color: rgba(36, 51, 40, 0.62);
}

.database-page-section .patent-title-link,
.database-page-section .patent-tax-link {
  border-bottom-color: rgba(12, 109, 53, 0.28);
}

.database-page-section .patent-record-link:hover,
.database-page-section .patent-record-link:focus-visible,
.database-page-section .patent-title-link:hover,
.database-page-section .patent-title-link:focus-visible,
.database-page-section .patent-tax-link:hover,
.database-page-section .patent-tax-link:focus-visible {
  color: #0c6d35;
}

.database-page-section .patent-table td.patent-links a {
  color: #172018;
  border-color: rgba(23, 32, 24, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.database-page-section .patent-table td.patent-links .patent-detail-action {
  color: #172018;
  border-color: rgba(12, 109, 53, 0.28);
  background: linear-gradient(180deg, #ffffff, #e9f2ea);
}

.database-page-section .patent-table td.patent-links a:not(.patent-arcade-link):hover,
.database-page-section .patent-table td.patent-links a:not(.patent-arcade-link):focus-visible {
  transform: translateY(-2px);
  color: #063f20;
  border-color: rgba(12, 109, 53, 0.74);
  background: linear-gradient(180deg, #ffffff, #e3ffe9);
  box-shadow:
    0 10px 18px rgba(6, 68, 31, 0.14),
    0 0 0 2px rgba(149, 255, 177, 0.2);
}

.database-page-section .patent-table td.patent-links .patent-arcade-link {
  color: #ffffff;
  border-color: rgba(4, 43, 23, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(180deg, #0f6b38, #06441f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(6, 68, 31, 0.18);
}

.database-page-section .patent-table td.patent-links .patent-arcade-link:hover,
.database-page-section .patent-table td.patent-links .patent-arcade-link:focus-visible {
  color: #ffffff;
  border-color: #95ffb1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(180deg, #148347, #075428);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 12px 24px rgba(6, 68, 31, 0.26),
    0 0 0 2px rgba(149, 255, 177, 0.14);
}

.database-page-section .database-pagination {
  border-top-color: rgba(23, 32, 24, 0.1);
  background: rgba(255, 255, 255, 0.68);
}

.database-page-section .database-pagination a,
.database-page-section .database-pagination span {
  color: #172018;
  border-color: rgba(23, 32, 24, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.database-page-section .database-pagination span {
  color: #1f1600;
  border-color: rgba(160, 117, 0, 0.45);
  background: linear-gradient(180deg, #fff2b0, #d9b84f);
}

.database-page-section .database-pagination a:hover,
.database-page-section .database-pagination a:focus-visible {
  color: #0c6d35;
  border-color: rgba(12, 109, 53, 0.34);
  background: rgba(149, 255, 177, 0.16);
}

.database-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px;
  border-top: 1px solid rgba(244, 255, 246, 0.1);
}

.database-pagination a,
.database-pagination span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 255, 246, 0.22);
  border-radius: 4px;
  padding: 0 12px;
  color: #f4fff6;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.database-pagination span {
  color: #1f1600;
  border-color: rgba(255, 226, 138, 0.86);
  background: var(--gold);
}

.database-pagination .database-page-gap {
  color: rgba(244, 255, 246, 0.72);
  border-color: rgba(244, 255, 246, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.database-pagination a:hover,
.database-pagination a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.patent-detail-section {
  background:
    linear-gradient(90deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #eef4ee, #dde8df);
  background-size: 28px 28px, 28px 28px, auto;
}

.patent-title-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.patent-title-meta div {
  border-top: 1px solid rgba(23, 32, 24, 0.12);
  padding-top: 8px;
}

.patent-title-meta div:first-child {
  border-top: 0;
  padding-top: 0;
}

.patent-title-meta dt {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.patent-title-meta dd {
  margin: 4px 0 0;
  color: #172018;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.patent-title-meta a {
  color: #0c6d35;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.patent-number-title {
  max-width: 760px;
}

.patent-detail-hero .patent-number-title {
  font-size: clamp(1.45rem, 2.55vw, 2.45rem);
  line-height: 1.02;
}

.patent-hero-subtitle {
  max-width: 820px;
  margin: 14px 0 0;
  color: rgba(244, 255, 246, 0.9);
  font-family: var(--font-ui);
  font-size: clamp(1.28rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.28;
}

.patent-hero-assignee {
  max-width: 820px;
  margin: 12px 0 0;
  color: rgba(231, 255, 236, 0.82);
  font-size: 1rem;
  line-height: 1.45;
}

.patent-hero-assignee span {
  margin-right: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.patent-hero-assignee a {
  color: rgba(244, 255, 246, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 226, 138, 0.48);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.patent-hero-assignee a:hover,
.patent-hero-assignee a:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.patent-hero-issue-date {
  margin-top: 6px;
}

.patent-hero-status {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  border: 1px solid rgba(255, 226, 138, 0.42);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(244, 255, 246, 0.9);
  background: rgba(255, 226, 138, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  line-height: 1;
}

.patent-hero-status span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.patent-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.patent-hero-actions .patent-hero-status {
  margin: 0;
}

.patent-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.patent-hero-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 226, 138, 0.74);
  border-radius: 5px;
  padding: 0 14px;
  color: #1f1600;
  background: linear-gradient(180deg, #fff2b0, #d9b84f);
  box-shadow:
    inset 0 0 0 2px rgba(99, 72, 0, 0.12),
    0 12px 26px rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.patent-hero-links a[href*="patents.google.com"]::after {
  content: "\2197";
  width: 0.9em;
  display: inline-block;
  margin-left: 7px;
  color: currentColor;
  font-size: 0.82em;
  line-height: 1;
  text-align: center;
}

.patent-hero-links a:hover,
.patent-hero-links a:focus-visible {
  transform: translateY(-2px);
  color: #1f1600;
  filter: brightness(1.06);
  box-shadow:
    inset 0 0 0 2px rgba(99, 72, 0, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(255, 226, 138, 0.18);
}

.patent-jump-nav {
  position: sticky;
  top: 72px;
  z-index: 9;
  border-top: 1px solid rgba(149, 255, 177, 0.12);
  border-bottom: 1px solid rgba(23, 32, 24, 0.12);
  background: rgba(245, 249, 245, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(9, 18, 13, 0.08);
}

.patent-jump-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.patent-jump-shell span {
  margin-right: 4px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.patent-jump-shell a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 32, 24, 0.14);
  border-radius: 999px;
  padding: 0 12px;
  color: #172018;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.patent-jump-shell a:hover,
.patent-jump-shell a:focus-visible {
  transform: translateY(-1px);
  color: #071108;
  border-color: rgba(12, 109, 53, 0.34);
  background: rgba(149, 255, 177, 0.2);
}

.patent-coverage-section {
  position: relative;
  color: #172018;
  border: 3px solid rgba(255, 226, 138, 0.95);
  border-left-width: 10px;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 24px);
  background:
    linear-gradient(180deg, rgba(255, 242, 176, 0.82), rgba(255, 255, 255, 0.82)),
    #fffdf2;
  box-shadow:
    0 22px 46px rgba(9, 18, 13, 0.12),
    0 0 0 5px rgba(255, 226, 138, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.patent-coverage-section::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(112, 82, 0, 0.22);
  border-radius: 4px;
  pointer-events: none;
}

.patent-coverage-heading {
  margin-bottom: 16px;
}

.patent-coverage-heading span {
  display: block;
  margin-bottom: 6px;
  color: #705200;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.patent-coverage-heading h2 {
  margin: 0;
}

.patent-coverage-section .patent-coverage-heading h2 {
  margin: 0;
}

.patent-coverage-heading a {
  color: #111914;
  font-family: var(--font-logo);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.08;
}

.patent-coverage-heading .patent-coverage-full-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin: 0 0 12px;
  border: 1px solid rgba(112, 82, 0, 0.24);
  border-radius: 4px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.54);
  color: #1f1600;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.patent-coverage-heading .patent-coverage-full-link::after {
  content: "\2192";
  margin-left: 7px;
  font-size: 0.9em;
}

.patent-coverage-heading a:hover,
.patent-coverage-heading a:focus-visible {
  color: #0c6d35;
}

.patent-coverage-heading .patent-coverage-full-link:hover,
.patent-coverage-heading .patent-coverage-full-link:focus-visible {
  border-color: rgba(12, 109, 53, 0.34);
  background: rgba(255, 255, 255, 0.78);
}

.patent-coverage-body {
  color: #334237;
  font-size: 1.03rem;
  line-height: 1.68;
}

.patent-coverage-body p {
  margin: 0 0 1rem;
  color: #4b573f;
}

.patent-coverage-body p:last-child {
  margin-bottom: 0;
}

.patent-coverage-body h3 {
  margin: 1.35rem 0 0.45rem;
  color: #172018;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.patent-document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.patent-document {
  display: grid;
  gap: 18px;
}

.patent-document-section {
  padding: clamp(18px, 3vw, 26px);
  color: #172018;
  border: 2px solid rgba(23, 32, 24, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 22px 46px rgba(9, 18, 13, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.patent-side-links {
  padding: 16px;
  color: #172018;
  border: 1px solid rgba(23, 32, 24, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 16px 34px rgba(9, 18, 13, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.patent-document-section h2 {
  margin: 0 0 14px;
  color: #0d1710;
  font-family: var(--font-logo);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.patent-side-links h2 {
  margin: 0 0 10px;
  color: #263229;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.patent-document-section h3 {
  margin: 1.4rem 0 0.45rem;
  color: #172018;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.patent-document-section p {
  margin: 0 0 1rem;
  color: #334237;
  font-size: 1.05rem;
  line-height: 1.7;
}

.patent-document-section p:last-child {
  margin-bottom: 0;
}

.patent-figure {
  margin: 0;
}

.patent-figure svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(23, 32, 24, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.patent-figure text {
  fill: #172018;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 900;
}

.patent-figure figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.claims-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.3rem;
}

.claims-list li {
  padding-left: 0.2rem;
  color: #334237;
  line-height: 1.65;
}

.claim-segments {
  display: grid;
  gap: 0.38rem;
}

.claim-segment {
  display: block;
}

.patent-expandable-text {
  display: grid;
  gap: 12px;
}

.patent-text-full {
  display: none;
}

.patent-expand-toggle:checked ~ .patent-text-excerpt {
  display: none;
}

.patent-claims-expandable .patent-expand-toggle:checked ~ .patent-text-excerpt {
  display: block;
}

.patent-expand-toggle:checked ~ .patent-text-full {
  display: block;
}

.patent-read-more-label {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(12, 109, 53, 0.24);
  border-radius: 4px;
  padding: 0 11px;
  color: #063f20;
  background: rgba(149, 255, 177, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.patent-read-more-label:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 109, 53, 0.58);
  background: rgba(149, 255, 177, 0.34);
  box-shadow: 0 10px 20px rgba(9, 18, 13, 0.1);
}

.patent-read-more-close {
  display: none;
}

.patent-expand-toggle:checked ~ .patent-read-more-label .patent-read-more-open {
  display: none;
}

.patent-expand-toggle:checked ~ .patent-read-more-label .patent-read-more-close {
  display: inline;
}

.patent-section-rail {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.patent-meta-card {
  border-top-color: rgba(255, 226, 138, 0.58);
}

.patent-assignee-card {
  border-top-color: rgba(149, 255, 177, 0.58);
}

.patent-side-links > a {
  min-height: 36px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(23, 32, 24, 0.12);
  border-radius: 6px;
  margin-top: 7px;
  padding: 0 11px 0 18px;
  color: #172018;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.92rem;
  font-weight: 450;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.patent-side-links > a.patent-assignee-link {
  min-height: 0;
  display: inline;
  border: 0;
  margin-top: 0;
  padding: 0;
  color: #0c6d35;
  background: transparent;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.patent-side-links > a.patent-meta-google-link {
  justify-content: space-between;
  margin-top: 12px;
  padding-right: 12px;
  font-weight: 800;
}

.patent-side-links > a.patent-meta-google-link::after {
  content: "\2197";
  margin-left: 10px;
  color: currentColor;
  font-size: 0.86em;
  line-height: 1;
}

.patent-side-links > a:hover,
.patent-side-links > a:focus-visible {
  transform: translateX(3px);
  border-color: rgba(12, 109, 53, 0.32);
  color: #0c6d35;
  background: rgba(149, 255, 177, 0.16);
  box-shadow: inset 4px 0 0 var(--green);
}

.patent-side-links > a.patent-assignee-link:hover,
.patent-side-links > a.patent-assignee-link:focus-visible {
  transform: none;
  border-color: transparent;
  color: #071108;
  background: transparent;
  box-shadow: none;
}

.patent-side-links .tag-list {
  margin-top: 2px;
}

/* Scholarship */
.writing-section {
  position: relative;
  overflow: hidden;
  color: #fff8ee;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 226, 138, 0.1), transparent 24%),
    radial-gradient(circle at 76% 18%, rgba(125, 185, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #070b10, #12171b 54%, #07090d);
  background-size: 100% 100%, 100% 100%, auto;
}

.writing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: 0.34;
}

.writing-section::after {
  content: "";
  position: absolute;
  top: 18px;
  left: -18px;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: rgba(255, 226, 138, 0.15);
  box-shadow:
    46px 82px 0 4px rgba(125, 185, 255, 0.12),
    118px 34px 0 7px rgba(149, 255, 177, 0.1),
    186px 156px 0 3px rgba(255, 127, 138, 0.12),
    268px 92px 0 8px rgba(255, 226, 138, 0.12),
    356px 214px 0 5px rgba(125, 185, 255, 0.12),
    444px 48px 0 2px rgba(149, 255, 177, 0.12),
    536px 178px 0 9px rgba(255, 127, 138, 0.1),
    642px 106px 0 4px rgba(255, 226, 138, 0.12),
    728px 246px 0 7px rgba(125, 185, 255, 0.12),
    824px 66px 0 3px rgba(149, 255, 177, 0.11),
    918px 190px 0 8px rgba(255, 127, 138, 0.1),
    1024px 126px 0 5px rgba(255, 226, 138, 0.12),
    1130px 274px 0 2px rgba(125, 185, 255, 0.13),
    1238px 88px 0 7px rgba(149, 255, 177, 0.1),
    1346px 228px 0 4px rgba(255, 127, 138, 0.1),
    1458px 146px 0 8px rgba(255, 226, 138, 0.11),
    72px 336px 0 3px rgba(125, 185, 255, 0.13),
    224px 386px 0 7px rgba(149, 255, 177, 0.11),
    392px 318px 0 5px rgba(255, 127, 138, 0.1),
    572px 424px 0 8px rgba(255, 226, 138, 0.1),
    758px 342px 0 4px rgba(125, 185, 255, 0.12),
    940px 456px 0 7px rgba(149, 255, 177, 0.1),
    1142px 368px 0 3px rgba(255, 127, 138, 0.1),
    1316px 486px 0 6px rgba(255, 226, 138, 0.1);
  opacity: 0.85;
}

.writing-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(90px, 130px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
  padding: 72px 0 78px;
}

.writing-intro {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.writing-intro h2 {
  position: absolute;
  top: 72px;
  left: var(--rotated-title-inset);
  width: max-content;
  margin: 0;
  max-width: none;
  font-family: var(--font-logo);
  font-size: clamp(1.65rem, 2vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
}

.writing-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
}

.writing-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.5rem;
  min-height: 320px;
  overflow: hidden;
  padding: 10px;
  color: #f6f8f3;
  background: linear-gradient(180deg, #171d24, #080b10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 6px solid rgba(255, 226, 138, 0.84);
  border-radius: 3px;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.writing-card:hover,
.writing-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.34);
  border-left-color: #ffffff;
  background: linear-gradient(180deg, #222a33, #0b1016);
  box-shadow:
    0 30px 64px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 226, 138, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.writing-card img {
  width: 100%;
  height: clamp(150px, 18vw, 230px);
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  background: #080b0f;
  filter: saturate(0.92) contrast(1.03) brightness(0.9);
}

.writing-meta {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 2px;
  padding: 0 7px;
  color: #071108;
  background: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.writing-meta::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  background: #071108;
}

.writing-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #f6f8f3;
  font-size: 0.96rem;
  line-height: 1.16;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.writing-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgba(230, 236, 230, 0.72);
  font-size: 0.76rem;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.writing-pills {
  grid-column: 2;
  justify-content: flex-start;
  gap: 8px;
}

.writing-pills span {
  color: rgba(255, 248, 238, 0.8);
}

.writing-pills a {
  min-width: auto;
  min-height: 34px;
  padding: 0 9px;
  color: #f6f8f3;
  background: linear-gradient(180deg, rgba(58, 65, 72, 0.96), rgba(18, 22, 28, 0.96));
  border-color: rgba(255, 226, 138, 0.42);
  font-size: 0.76rem;
}

.writing-pills a:hover,
.writing-pills a:focus-visible {
  background: linear-gradient(180deg, rgba(86, 96, 106, 0.98), rgba(26, 32, 40, 0.98));
  border-color: rgba(255, 226, 138, 0.78);
}

/* About */
.about-section {
  position: relative;
  overflow: hidden;
  color: #f4fff6;
  background:
    radial-gradient(circle at 12% 18%, rgba(125, 185, 255, 0.14), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(255, 127, 138, 0.12), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #060912 0%, #0a0f19 46%, #16101d 100%);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px, auto;
}

.about-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 68px 0 76px;
}

.about-copy {
  max-width: 34rem;
}

.about-copy h2 {
  margin: 0;
  font-family: var(--font-logo);
  font-size: clamp(2.45rem, 5vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-copy p {
  margin: 18px 0 0;
  color: rgba(231, 255, 236, 0.76);
  line-height: 1.66;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-actions a {
  border-radius: 8px;
}

.about-actions a:first-child {
  color: #071108;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  border-color: rgba(149, 255, 177, 0.82);
}

.about-actions a:first-child:hover,
.about-actions a:first-child:focus-visible {
  color: #071108;
  background: linear-gradient(180deg, #adffc1, #74ee95);
  border-color: rgba(149, 255, 177, 0.82);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    0 18px 36px rgba(17, 48, 28, 0.2),
    0 0 24px rgba(95, 225, 132, 0.24);
}

.about-actions a:last-child {
  border-color: rgba(149, 255, 177, 0.24);
  color: #defee5;
  background: rgba(255, 255, 255, 0.06);
}

.about-mosaic {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: clamp(58px, 6vw, 86px);
  grid-auto-flow: dense;
  gap: 4px;
  align-self: start;
  background: #050709;
  border: 4px solid #050709;
  outline: 2px solid rgba(244, 255, 246, 0.22);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(149, 255, 177, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.about-game {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #030506;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.about-game:nth-child(1),
.about-game:nth-child(4),
.about-game:nth-child(9),
.about-game:nth-child(11) {
  grid-column: span 2;
  grid-row: span 2;
}

.about-game-wide {
  grid-column: span 2;
}

.about-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--tile-position, center);
  filter: saturate(0.9) brightness(0.78);
  transform: scale(var(--tile-scale, 1.06));
  transition: transform 220ms ease, filter 220ms ease;
}

.about-game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 2px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.about-game::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(180deg, transparent 35%, rgba(3, 5, 8, 0.88) 100%);
}

.about-game span {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  z-index: 3;
  color: #f7faf8;
  font-family: var(--font-ui);
  font-size: clamp(0.72rem, 0.62rem + 0.22vw, 0.92rem);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.about-game:hover,
.about-game:focus-visible {
  z-index: 3;
  transform: translateY(-4px);
  filter: saturate(1.06);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(149, 255, 177, 0.24);
}

.about-game:hover::before,
.about-game:focus-visible::before {
  border-color: #ffffff;
  box-shadow:
    inset 0 0 0 2px rgba(255, 226, 138, 0.88),
    0 0 26px rgba(255, 226, 138, 0.24);
}

.about-game:hover img,
.about-game:focus-visible img {
  transform: scale(var(--tile-hover-scale, 1.12));
  filter: saturate(1.05) brightness(0.9);
}

.about-game:nth-child(1) {
  --tile-scale: 1.18;
  --tile-hover-scale: 1.24;
}

.about-game:nth-child(2) {
  --tile-scale: 1.14;
  --tile-hover-scale: 1.2;
  --tile-position: center 46%;
}

.about-game:nth-child(4) {
  --tile-scale: 1.12;
  --tile-hover-scale: 1.18;
}

.about-game:nth-child(7) {
  --tile-scale: 1.13;
  --tile-hover-scale: 1.19;
}

.about-game:nth-child(9) {
  --tile-scale: 1.24;
  --tile-hover-scale: 1.3;
}

.about-game:nth-child(11) {
  --tile-scale: 1.16;
  --tile-hover-scale: 1.22;
  --tile-position: center 42%;
}

.about-game:nth-child(13),
.about-game:nth-child(15),
.about-game:nth-child(16) {
  --tile-scale: 1.14;
  --tile-hover-scale: 1.2;
}

/* Interior pages */
.interior-main {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  background-size: 28px 28px, 28px 28px, auto;
}

.interior-hero {
  color: #f4fff6;
  background:
    radial-gradient(circle at 18% 12%, rgba(149, 255, 177, 0.16), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(125, 185, 255, 0.14), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #060912, #0b111c);
  background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px, auto;
  border-bottom: 1px solid rgba(149, 255, 177, 0.16);
}

.interior-hero-shell {
  padding: 46px 0 42px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(231, 255, 236, 0.72);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--green);
}

.breadcrumbs span[aria-current="page"] {
  color: rgba(244, 255, 246, 0.78);
}

.breadcrumbs .crumb-separator {
  color: rgba(244, 255, 246, 0.36);
}

.interior-title {
  max-width: 900px;
  margin: 0;
  color: #f4fff6;
  font-family: var(--font-logo);
  font-size: clamp(1.9rem, 3.75vw, 3.6rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow:
    3px 0 0 rgba(125, 185, 255, 0.32),
    -3px 0 0 rgba(255, 127, 138, 0.24),
    0 0 28px rgba(149, 255, 177, 0.24);
}

.interior-dek {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(231, 255, 236, 0.76);
  font-size: 1.08rem;
  line-height: 1.62;
}

.interior-section {
  padding: 54px 0 70px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.page-layout {
  max-width: 940px;
}

.page-content {
  margin-top: 0;
}

.article-media {
  overflow: hidden;
  border: 2px solid rgba(9, 18, 13, 0.28);
  border-radius: 8px;
  background: #dfe8df;
  box-shadow: 0 24px 52px rgba(9, 18, 13, 0.18);
}

.article-media img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
}

.content-prose {
  margin-top: 28px;
  color: #172018;
  font-size: 1.05rem;
  line-height: 1.72;
}

.article-content .content-prose {
  margin-top: 0;
  border: 2px solid rgba(23, 32, 24, 0.12);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  background: #ffffff;
  box-shadow:
    0 24px 54px rgba(9, 18, 13, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.86);
}

.article-media + .content-prose {
  margin-top: 22px;
}

.content-prose > :first-child {
  margin-top: 0;
}

.content-prose > :last-child {
  margin-bottom: 0;
}

.content-prose h2,
.content-prose h3,
.content-prose h4 {
  margin: 2.1rem 0 0.7rem;
  color: #0d1710;
  font-family: var(--font-logo);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.content-prose h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
}

.content-prose h3 {
  font-size: 1.3rem;
}

.content-prose h4 {
  font-size: 1.05rem;
}

.content-prose p {
  margin: 0 0 1.15rem;
}

.content-prose a {
  color: #0c6d35;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.content-prose ul,
.content-prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
}

.content-prose li + li {
  margin-top: 0.45rem;
}

.content-prose blockquote,
.content-prose .wp-block-quote {
  position: relative;
  margin: 1.7rem 0;
  border: 1px solid rgba(12, 109, 53, 0.16);
  border-left: 7px solid var(--green);
  border-radius: 8px;
  padding: 18px 20px 18px 22px;
  color: #243328;
  background:
    linear-gradient(90deg, rgba(149, 255, 177, 0.13), rgba(255, 255, 255, 0.92));
  box-shadow: 0 14px 30px rgba(9, 18, 13, 0.08);
}

.content-prose blockquote p,
.content-prose .wp-block-quote p {
  color: #243328;
  font-size: 1.08rem;
  line-height: 1.62;
}

.content-prose blockquote p:last-child,
.content-prose .wp-block-quote p:last-child {
  margin-bottom: 0;
}

.content-prose blockquote cite,
.content-prose .wp-block-quote cite {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 900;
}

.content-prose figure {
  margin: 1.6rem 0;
}

.content-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.content-prose figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.content-prose table {
  width: 100%;
  margin: 1.6rem 0;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.content-prose th,
.content-prose td {
  border: 1px solid rgba(23, 32, 24, 0.12);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.content-prose th {
  color: #0d1710;
  background: rgba(149, 255, 177, 0.16);
  font-weight: 900;
}

.content-prose pre {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(23, 32, 24, 0.14);
  border-radius: 8px;
  padding: 16px;
  color: #f4fff6;
  background: #071108;
}

.content-prose code {
  border-radius: 4px;
  padding: 0.12em 0.3em;
  color: #071108;
  background: rgba(255, 226, 138, 0.28);
  font-size: 0.92em;
}

.content-prose pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.content-callout,
.sidebar-panel {
  border: 2px solid rgba(23, 32, 24, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 22px 46px rgba(9, 18, 13, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.content-callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 7px solid var(--green);
}

.content-callout p:last-child {
  margin-bottom: 0;
}

.article-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 104px;
}

.sidebar-panel {
  padding: 18px;
}

.sidebar-panel h2,
.sidebar-panel h3 {
  margin: 0 0 12px;
  color: #101914;
  font-family: var(--font-logo);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.sidebar-meta-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-meta-list a {
  color: #0c6d35;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.sidebar-meta-list a:hover,
.sidebar-meta-list a:focus-visible {
  color: #071108;
}

.patent-record-links {
  display: grid;
  gap: 4px;
}

.sidebar-meta-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-date {
  display: block;
  color: #111914;
  font-size: 1.02rem;
  font-weight: 900;
}

.sidebar-info-stack,
.sidebar-info-block,
.author-list {
  display: grid;
}

.author-list {
  gap: 10px;
}

.sidebar-info-stack {
  gap: 18px;
}

.sidebar-info-block {
  gap: 9px;
}

.sidebar-info-block + .sidebar-info-block {
  border-top: 1px solid rgba(23, 32, 24, 0.12);
  padding-top: 16px;
}

.sidebar-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-image-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(23, 32, 24, 0.14);
  border-radius: 8px;
  padding: 8px;
  color: #111914;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.author-card {
  min-height: 0;
}

.author-card.sidebar-image-card {
  grid-template-columns: 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  text-align: center;
}

.author-card.sidebar-image-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.author-card-name {
  display: block;
}

.sidebar-image-card:hover,
.sidebar-image-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(12, 109, 53, 0.34);
  box-shadow: 0 14px 26px rgba(9, 18, 13, 0.12);
}

.sidebar-image-card img {
  width: 82px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(23, 32, 24, 0.12);
  background: #dfe8df;
}

.sidebar-image-card strong,
.sidebar-image-card small {
  display: block;
}

.sidebar-image-card strong {
  font-size: 0.92rem;
  line-height: 1.12;
}

.sidebar-image-card small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.taxonomy-groups {
  display: grid;
  gap: 16px;
}

.taxonomy-group > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list-sidebar {
  gap: 7px;
}

.tag-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 32, 24, 0.18);
  border-radius: 999px;
  padding: 0 9px;
  color: #172018;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tag-chip-category {
  background: rgba(149, 255, 177, 0.64);
}

.tag-chip:hover,
.tag-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(104, 77, 0, 0.3);
  background: var(--gold);
  box-shadow: 0 10px 20px rgba(9, 18, 13, 0.1);
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(24px, 3vw, 42px);
  align-items: start;
}

.archive-tools {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 104px;
}

.archive-tool-panel {
  border: 2px solid rgba(23, 32, 24, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 38px rgba(9, 18, 13, 0.1),
    inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.archive-tool-panel h2 {
  margin: 0 0 12px;
  color: #101914;
  font-family: var(--font-logo);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.archive-tool-panel .filter-pills,
.archive-tool-panel .tag-list {
  margin: 0;
}

.tag-chip.is-active {
  color: #071108;
  background: var(--gold);
  border-color: rgba(104, 77, 0, 0.26);
}

.archive-date-list li,
.archive-recent-list li {
  display: grid;
  gap: 3px;
}

.archive-recent-list time {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-results {
  grid-column: 1;
  grid-row: 1;
}

.archive-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: visible;
  border: 2px solid rgba(23, 32, 24, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.pa-autocomplete-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 60;
  max-height: min(520px, 70vh);
  overflow-y: auto;
  border: 2px solid rgba(23, 32, 24, 0.2);
  border-radius: 8px;
  padding: 8px;
  color: #172018;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 52px rgba(9, 18, 13, 0.24),
    inset 0 0 0 2px rgba(255, 255, 255, 0.74);
}

.pa-autocomplete-panel[hidden] {
  display: none;
}

.header-search .pa-autocomplete-panel {
  left: auto;
  width: min(430px, calc(100vw - 32px));
}

.database-toolbar .pa-autocomplete-panel {
  top: calc(100% + 10px);
}

.pa-autocomplete-group + .pa-autocomplete-group {
  margin-top: 8px;
  border-top: 1px solid rgba(23, 32, 24, 0.1);
  padding-top: 8px;
}

.pa-autocomplete-group-title {
  padding: 4px 6px 6px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pa-autocomplete-item {
  display: grid;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px;
  color: #172018;
  background: transparent;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.pa-autocomplete-item:hover,
.pa-autocomplete-item:focus-visible,
.pa-autocomplete-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(12, 109, 53, 0.22);
  background: rgba(149, 255, 177, 0.18);
}

.pa-autocomplete-title {
  color: #111914;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.15;
}

.pa-autocomplete-badge {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 32, 24, 0.14);
  border-radius: 999px;
  padding: 0 7px;
  color: #172018;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pa-autocomplete-badge-patent-detail {
  color: #063f20;
  border-color: rgba(12, 109, 53, 0.24);
  background: rgba(149, 255, 177, 0.22);
}

.pa-autocomplete-badge-patent-analysis {
  color: #4d3900;
  border-color: rgba(112, 82, 0, 0.24);
  background: rgba(255, 226, 138, 0.3);
}

.pa-autocomplete-meta {
  color: #415247;
  font-size: 0.77rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.pa-autocomplete-snippet {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.32;
}

.pa-autocomplete-message {
  padding: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.archive-search input {
  min-width: 0;
  border: 0;
  padding: 0 12px;
  color: var(--ink);
}

.archive-search button {
  min-height: 42px;
  border: 0;
  padding: 0 14px;
  color: #071108;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  font-weight: 900;
  cursor: pointer;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 32, 24, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  color: #172018;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-pills a:hover,
.filter-pills a:focus-visible,
.filter-pills a.is-active {
  color: #071108;
  background: var(--gold);
  border-color: rgba(104, 77, 0, 0.26);
}

.archive-list {
  display: grid;
  gap: 16px;
}

.archive-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  min-height: 190px;
  overflow: hidden;
  border: 2px solid rgba(9, 18, 13, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(149, 255, 177, 0.14) 0 7px, transparent 7px),
    linear-gradient(180deg, #ffffff, #f4f7f4);
  box-shadow: 0 20px 42px rgba(9, 18, 13, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.archive-card:hover,
.archive-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(23, 32, 24, 0.34);
  box-shadow: 0 30px 60px rgba(9, 18, 13, 0.18);
}

.archive-thumb {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: #dfe8df;
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.archive-card:hover .archive-thumb img,
.archive-card:focus-visible .archive-thumb img {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
}

.archive-card-body {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px 18px 18px 0;
}

.archive-card-topline,
.archive-meta-line,
.archive-taxonomy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.archive-card-topline {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  justify-content: flex-end;
  gap: 6px;
  max-width: calc(100% - 20px);
}

.archive-card-topline .tag {
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset;
}

.archive-card h2 {
  margin: 0;
  color: #111914;
  font-size: 1.35rem;
  line-height: 1.12;
}

.archive-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.46;
}

.archive-meta-line {
  gap: 8px;
  color: #53665a;
  font-size: 0.78rem;
  font-weight: 900;
}

.archive-meta-line time {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-meta-line span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(83, 102, 90, 0.42);
}

.archive-taxonomy {
  gap: 6px;
}

.archive-taxonomy span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 32, 24, 0.12);
  border-radius: 999px;
  padding: 0 8px;
  color: #314339;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
}

.archive-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.archive-pagination a,
.archive-pagination span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 32, 24, 0.18);
  border-radius: 6px;
  padding: 0 10px;
  color: #172018;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.archive-pagination span {
  color: #071108;
  background: var(--green);
}

.page-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.page-feature {
  border: 2px solid rgba(23, 32, 24, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 36px rgba(9, 18, 13, 0.1);
}

.page-feature h2,
.page-feature h3 {
  margin: 0 0 8px;
  color: #101914;
  font-family: var(--font-logo);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.page-feature p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.page-link-callout {
  display: grid;
  gap: 14px;
}

.page-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.page-link-row a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 32, 24, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  color: #071108;
  background: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.page-link-row a:hover,
.page-link-row a:focus-visible {
  transform: translateY(-2px);
  background: var(--green);
  box-shadow: 0 12px 24px rgba(9, 18, 13, 0.12);
}

.related-posts-section {
  padding: 62px 0 74px;
  color: #f4fff6;
  background:
    linear-gradient(90deg, rgba(255, 226, 138, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(125, 185, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 14% 22%, rgba(255, 226, 138, 0.15), transparent 24%),
    linear-gradient(135deg, #111018, #071108 46%, #101a2b);
  background-size: 26px 26px, 26px 26px, 100% 100%, auto;
  border-top: 1px solid rgba(255, 226, 138, 0.18);
}

.related-posts-heading {
  margin-bottom: 22px;
}

.related-posts-heading h2 {
  margin: 0;
  color: #f4fff6;
  font-family: var(--font-logo);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow:
    3px 0 0 rgba(125, 185, 255, 0.3),
    -3px 0 0 rgba(255, 127, 138, 0.22),
    0 0 24px rgba(149, 255, 177, 0.18);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-post-card {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
  border: 2px solid rgba(244, 255, 246, 0.16);
  border-radius: 8px;
  padding-bottom: 18px;
  color: #172018;
  background:
    linear-gradient(90deg, rgba(255, 226, 138, 0.16) 0 7px, transparent 7px),
    linear-gradient(180deg, #ffffff, #edf3ee);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.related-post-card:hover,
.related-post-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 226, 138, 0.48);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(255, 226, 138, 0.18);
}

.related-post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.related-post-card:hover img,
.related-post-card:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
}

.related-post-card .tag {
  margin: 4px 18px 0;
}

.related-post-card h3 {
  margin: 0 18px;
  color: #111914;
  font-size: 1.1rem;
  line-height: 1.16;
}

.related-post-card p {
  margin: 0 18px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #05080d, #030507);
  background-size: 30px 30px, auto;
  border-top: 2px solid rgba(149, 255, 177, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 226, 138, 0.18);
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0;
}

.footer-brand {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-family: var(--font-logo);
  font-size: 1.26rem;
  isolation: isolate;
  line-height: 1;
  text-decoration: none;
  text-shadow:
    3px 0 0 rgba(125, 185, 255, 0.32),
    -3px 0 0 rgba(255, 127, 138, 0.26),
    0 0 22px rgba(149, 255, 177, 0.26);
  animation: heroCrtPulse 4.8s steps(2, end) infinite;
}

.footer-brand::before,
.footer-brand::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.62;
}

.footer-brand::before {
  color: var(--blue);
  transform: translateX(2px);
}

.footer-brand::after {
  color: var(--red);
  transform: translateX(-2px);
}

.footer-brand:hover,
.footer-brand:focus-visible {
  color: #ffffff;
  text-shadow:
    5px 0 0 rgba(125, 185, 255, 0.45),
    -5px 0 0 rgba(255, 127, 138, 0.36),
    0 0 34px rgba(149, 255, 177, 0.38);
}

.footer-shell p {
  margin: 8px 0 0;
  color: rgba(231, 255, 236, 0.68);
}

.footer-kelldann {
  color: var(--gold);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(255, 226, 138, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease, text-shadow 160ms ease;
}

.footer-kelldann:hover,
.footer-kelldann:focus-visible {
  color: var(--green);
  text-decoration-color: var(--green);
  text-shadow: 0 0 18px rgba(149, 255, 177, 0.34);
}

.footer-shell nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  max-width: 760px;
}

.footer-shell nav a {
  color: rgba(244, 255, 246, 0.72);
  border-bottom: 1px solid transparent;
  font-weight: 400;
  white-space: nowrap;
}

.footer-shell nav a:hover,
.footer-shell nav a:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--gold);
}

/* WordPress template glue */
.screen-reader-text,
.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav li,
.footer-shell nav li {
  list-style: none;
}

.site-nav .menu-item,
.footer-shell nav .menu-item {
  margin: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-separator {
  color: rgba(244, 255, 246, 0.36);
}

.front-page-content > .writing-section:first-child {
  margin-top: 0;
}

.patent-detail-template {
  background:
    linear-gradient(90deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 33, 23, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #eef4ee, #dde8df);
  background-size: 28px 28px, 28px 28px, auto;
}

.patent-figure-section img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(23, 32, 24, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.patent-side-links dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.patent-side-links dt {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.patent-side-links dd {
  margin: -4px 0 6px;
  color: #172018;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.patent-cpc-list {
  display: grid;
  gap: 8px;
}

.patent-cpc-link {
  display: block;
  border: 1px solid rgba(23, 32, 24, 0.14);
  border-radius: 6px;
  padding: 9px 10px;
  color: #172018;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.34;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.patent-cpc-link:hover,
.patent-cpc-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(12, 109, 53, 0.32);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(9, 18, 13, 0.1);
}

.pa-contact-page {
  display: grid;
  gap: 28px;
}

.pa-contact-lede {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(23, 32, 24, 0.12);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  color: #172018;
  background:
    linear-gradient(90deg, rgba(149, 255, 177, 0.20), rgba(255, 226, 138, 0.14)),
    #ffffff;
  box-shadow: 0 18px 40px rgba(9, 18, 13, 0.09);
}

.pa-contact-kicker {
  margin: 0;
  color: #0c6d35;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pa-contact-lede p:last-child {
  max-width: 760px;
  margin: 0;
  color: #27392d;
  font-size: 1.08rem;
}

.pa-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pa-contact-card {
  overflow: hidden;
  display: grid;
  min-width: 0;
  min-height: 100%;
  border: 1px solid rgba(23, 32, 24, 0.14);
  border-radius: 8px;
  color: #172018;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(9, 18, 13, 0.10);
}

.pa-contact-card-current {
  grid-template-rows: auto 1fr;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.content-prose .pa-contact-card-current {
  color: #172018;
  text-decoration: none;
}

.pa-contact-card-current:hover,
.pa-contact-card-current:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(12, 109, 53, 0.36);
  box-shadow: 0 24px 52px rgba(9, 18, 13, 0.15);
}

.pa-contact-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: contain;
  background: #dfe8df;
}

.pa-contact-card-body {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 18px;
}

.pa-contact-role,
.pa-contact-link {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pa-contact-role {
  color: #0b5128;
  background: rgba(149, 255, 177, 0.25);
}

.pa-contact-name {
  color: #0d1710;
  font-family: var(--font-logo);
  font-size: clamp(1.12rem, 1.65vw, 1.48rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
}

.pa-contact-note {
  color: #45564a;
  font-size: 0.98rem;
  line-height: 1.45;
}

.pa-contact-link {
  margin-top: 3px;
  color: #071108;
  background: var(--gold);
}

.pa-contact-card-former {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 244, 0.96));
}

.pa-contact-card .pa-contact-former-photo {
  width: 100%;
  height: 100%;
  min-height: 152px;
  border-right: 1px solid rgba(23, 32, 24, 0.12);
  object-fit: cover;
}

.pa-contact-initials {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: #f4fff6;
  background:
    linear-gradient(135deg, #0b5128, #22314d);
  font-family: var(--font-logo);
  font-size: 1.42rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1180px) {
  .header-shell {
    grid-template-columns: auto 1fr;
  }

  .header-tools {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-bottom: 14px;
  }

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

@media (max-width: 900px) {
  .header-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-tools {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .featured-row,
  .writing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pa-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-heading {
    position: static;
    width: min(var(--content), calc(100% - 40px));
    margin-inline: auto;
    padding: 56px 0 24px;
    pointer-events: auto;
  }

  .latest-heading h2 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(2rem, 4.4vw, 2.75rem);
    text-shadow: none;
    white-space: normal;
    transform: none;
  }

  .recent-posts {
    padding-top: 0;
    padding-left: 0;
  }

  .writing-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 0;
  }

  .writing-intro {
    grid-row: auto;
  }

  .writing-intro h2 {
    position: static;
    width: auto;
    max-width: 11em;
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    line-height: 0.95;
    text-shadow: none;
    white-space: normal;
    pointer-events: auto;
    transform: none;
  }

  .writing-grid,
  .writing-pills {
    grid-column: 1;
  }

  .writing-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    justify-content: stretch;
  }

  .database-toolbar {
    grid-template-columns: 1fr;
  }

  .database-full-toolbar .database-query-field,
  .database-full-toolbar .filter-field:not(.database-query-field),
  .database-full-toolbar .database-search-button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .patent-document-layout {
    grid-template-columns: 1fr;
  }

  .patent-jump-nav {
    position: static;
  }

  .about-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-copy {
    max-width: 48rem;
  }

  .about-mosaic {
    grid-auto-rows: clamp(64px, 10vw, 86px);
    min-height: 0;
  }

  .article-layout,
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-tools,
  .archive-results {
    grid-column: auto;
    grid-row: auto;
  }

  .article-sidebar,
  .patent-section-rail,
  .archive-tools {
    position: static;
  }

  .archive-tools {
    order: -1;
  }

  .page-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, var(--content));
  }

  .hero,
  .hero-shell {
    min-height: 280px;
  }

  .hero-shell {
    padding: 52px 0 44px;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .header-tools,
  .readmore-pills {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-search {
    grid-template-columns: 1fr 44px;
  }

  .featured-row,
  .compact-row,
  .writing-grid,
  .pa-contact-grid {
    grid-template-columns: 1fr;
  }

  .pa-contact-card-former {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .database-results-header {
    display: block;
  }

  .database-results-header p {
    max-width: none;
    padding: 0 16px 14px;
  }

  .post-card-featured,
  .post-card-compact {
    min-height: auto;
  }

  .latest-heading {
    width: min(100% - 28px, var(--content));
  }

  .writing-layout {
    padding: 48px 0 56px;
  }

  .writing-pills {
    justify-content: flex-start;
  }

  .about-shell {
    padding: 52px 0 58px;
  }

  .about-actions {
    display: grid;
  }

  .about-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 76px;
    min-height: 0;
  }

  .footer-shell {
    display: grid;
  }

  .footer-shell nav {
    justify-content: flex-start;
  }

  .footer-shell nav a {
    white-space: normal;
  }

  .interior-hero-shell {
    padding: 38px 0 34px;
  }

  .interior-title {
    font-size: clamp(1.55rem, 8.25vw, 2.4rem);
  }

  .interior-dek {
    font-size: 1rem;
  }

  .archive-card {
    grid-template-columns: 1fr;
  }

  .archive-thumb,
  .archive-thumb img {
    min-height: 210px;
  }

  .archive-card-body {
    padding: 16px;
  }

  .page-feature-grid {
    grid-template-columns: 1fr;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .content-prose {
    font-size: 1rem;
  }
}

/* Motion */
@keyframes heroCrtPulse {
  0%,
  100% {
    transform: translate(0, 0);
    filter:
      drop-shadow(0 0 16px rgba(125, 185, 255, 0.16))
      drop-shadow(0 0 24px rgba(149, 255, 177, 0.1));
  }

  46% {
    transform: translate(0, 0);
  }

  48% {
    transform: translate(1px, 0);
    filter:
      drop-shadow(4px 0 0 rgba(125, 185, 255, 0.28))
      drop-shadow(-4px 0 0 rgba(255, 127, 138, 0.2))
      drop-shadow(0 0 28px rgba(149, 255, 177, 0.18));
  }

  50% {
    transform: translate(-1px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
