/* =====================================================================
   Tekarab Shell — shared platform header/footer + warm identity
   Loaded AFTER /style.css (or after each tool's inline <style>).
   Everything here is namespaced .tkrb-* so it never collides with the
   existing PDF Studio classes/IDs used by app.js. No existing tool
   markup, forms, IDs, or behaviour is changed by this file.
   ===================================================================== */

/* Warm off-white platform background shared across every Tekarab page. */
body {
  background: #f5f2ea;
}

/* =====================================================================
   PATCH 2 — single Tekarab identity
   Loaded last, so these win. Recolours the old blue palette to the
   Tekarab green/warm language and folds the old local PDF header into a
   clean page intro (no second header bar). Pure colour/visual changes;
   no layout structure, IDs, forms, or behaviour are altered.
   ===================================================================== */

/* ---- platform palette: blue identity -> Tekarab green/warm ---- */
:root {
  --bg: #f5f2ea;
  --bg-soft: #faf8f2;
  --panel-soft: #faf8f2;
  --border: #e6dfcf;
  --border-strong: #d8cfbb;
  --primary: #1f7a52;
  --primary-dark: #17603f;
  --primary-soft: #e9f2ec;
  --secondary: #3f6b54;
  --secondary-soft: #eef3ee;
  --ring: rgba(31, 122, 82, 0.12);
}

/* ---- self-contained pages (.page) : leftover blue accents -> green ----
   Scoped under .page (present only on edit-pdf / ocr-pdf / pdf-to-word)
   so standard tool pages are untouched. Colour only — no layout change. */
.page .dropzone.dragover {
  border-color: var(--primary);
  background: #e9f2ec;
}

.page .status.info {
  background: #e9f2ec;
  color: #17603f;
}

.page .overlay-item,
.page .overlay-item.image {
  border-color: #2f7d57;
}

.page .overlay-item.active {
  box-shadow: 0 0 0 3px rgba(31, 122, 82, 0.14);
}

/* green focus ring (was a blue tint) */
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #9fc7b2;
  box-shadow: 0 0 0 3px rgba(31, 122, 82, 0.12);
}

/* badges/pills -> warm green */
.section-badge,
.brand-badge {
  background: var(--primary-soft);
  border-color: #cfe5d8;
  color: var(--primary);
}

/* ---- fold the OLD local PDF header into a plain page intro ---- */
/* The Tekarab shell header above is now the only identity bar, so strip
   the old topbar's bar styling and its duplicated brand mark / nav /
   status. The tool title + description (.brand-copy) stays as the intro.
   #health-pill stays in the DOM (just hidden) so app.js is untouched. */
.topbar {
  background: transparent;
  border-bottom: 0;
}

.topbar .brand-mark,
.topbar .brand-badge,
.topbar-right,
.back-links {
  display: none;
}

.topbar-inner {
  padding-top: 20px;
  padding-bottom: 0;
  align-items: flex-start;
}

.brand {
  gap: 0;
}

/* the home page already has a hero intro -> drop the old header entirely */
.tkrb-home .topbar {
  display: none;
}

/* ---- Tekarab-style homepage cards (warm bg, soft border, green action) ---- */
.tkrb-home .home-tool-card,
.tkrb-home .home-pill-link,
.tkrb-home .home-stat-card {
  background: #fffdf7;
  border-color: var(--border);
}

.tkrb-home .home-tool-card:hover {
  border-color: #bcd8c8;
  background: #f8f5ec;
}

.tkrb-home .home-pill-link:hover {
  border-color: #bcd8c8;
  background: #f3efe4;
}

.tkrb-home .home-tool-icon {
  background: var(--primary-soft);
}

.tkrb-home .home-tool-meta {
  background: var(--primary-soft);
  border-color: #cfe5d8;
  color: var(--primary);
}

.tkrb-home .home-pill-link span:last-child {
  color: var(--primary);
}

/* ---- shared tokens (scoped, NOT in :root, to avoid touching tools) ---- */
.tkrb-header,
.tkrb-footer {
  --tkrb-green: #143d2c;
  --tkrb-green-deep: #0f2e21;
  --tkrb-green-soft: #1d5740;
  --tkrb-accent: #3fa776;
  --tkrb-cream: #f3f0e7;
  --tkrb-cream-dim: #b9c8bf;
  --tkrb-max: 1360px;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.tkrb-header *,
.tkrb-footer * {
  box-sizing: border-box;
}

/* ============================ HEADER ============================ */
.tkrb-header {
  background: linear-gradient(180deg, var(--tkrb-green) 0%, var(--tkrb-green-deep) 100%);
  color: var(--tkrb-cream);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tkrb-header-inner {
  max-width: var(--tkrb-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.tkrb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tkrb-cream);
  flex: 0 0 auto;
}

.tkrb-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--tkrb-accent);
  color: #06281b;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.tkrb-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tkrb-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.tkrb-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--tkrb-cream);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tkrb-nav-link:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.tkrb-nav-active {
  background: var(--tkrb-green-soft);
  border-color: rgba(63, 167, 118, 0.55);
  color: #fff;
}

/* ============================ FOOTER ============================ */
.tkrb-footer {
  margin-top: 32px;
  background: linear-gradient(180deg, var(--tkrb-green) 0%, var(--tkrb-green-deep) 100%);
  color: var(--tkrb-cream);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tkrb-footer-inner {
  max-width: var(--tkrb-max);
  margin: 0 auto;
  padding: 28px 20px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tkrb-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tkrb-footer-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tkrb-footer-tag {
  margin: 3px 0 0;
  color: var(--tkrb-cream-dim);
  font-size: 13px;
  line-height: 1.5;
  max-width: 320px;
}

.tkrb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.tkrb-footer-links a {
  color: var(--tkrb-cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tkrb-footer-links a:hover {
  color: var(--tkrb-accent);
}

.tkrb-footer-bottom {
  max-width: var(--tkrb-max);
  margin: 0 auto;
  padding: 14px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--tkrb-cream-dim);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 760px) {
  .tkrb-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tkrb-nav {
    width: 100%;
  }

  .tkrb-footer-inner {
    flex-direction: column;
    gap: 18px;
  }
}

/* =====================================================================
   VISUAL UNIFICATION PATCH - PDF Studio to current Tekarab theme
   CSS-only overrides loaded last. No IDs, JS hooks, routes, or markup
   are changed. Reference cues: warm #F7F5EF canvas, cream sticky header,
   #12372A / #1F6F4A greens, soft borders, compact tool cards.
   ===================================================================== */

:root {
  --bg: #f7f5ef;
  --bg-soft: #fbf9f2;
  --panel: #fffefa;
  --panel-soft: #fbf9f2;
  --border: rgba(18, 55, 42, 0.12);
  --border-strong: rgba(18, 55, 42, 0.20);
  --text: #12372a;
  --text-soft: #243b33;
  --muted: #5f6f68;
  --primary: #1f6f4a;
  --primary-dark: #12372a;
  --primary-soft: #eef7f1;
  --secondary: #395b49;
  --secondary-soft: #f2faf5;
  --success: #1f6f4a;
  --success-soft: #eef7f1;
  --ring: rgba(31, 111, 74, 0.14);
  --shadow: 0 8px 24px rgba(18, 55, 42, 0.06);
  --shadow-soft: 0 4px 14px rgba(18, 55, 42, 0.05);
  --radius-xl: 16px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

html,
body {
  background: #f7f5ef;
}

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

.app-shell {
  background: #f7f5ef;
}

/* Header: match the current Tekarab warm, translucent site header. */
.tkrb-header,
.tkrb-footer {
  --tkrb-green: #12372a;
  --tkrb-green-deep: #0f2f24;
  --tkrb-green-soft: #1f6f4a;
  --tkrb-accent: #1f6f4a;
  --tkrb-cream: #fbf9f2;
  --tkrb-cream-dim: #d7e0d8;
  --tkrb-text: #12372a;
  --tkrb-max: 1380px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

.tkrb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 242, 0.94);
  color: var(--tkrb-text);
  border-bottom: 1px solid rgba(18, 55, 42, 0.10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tkrb-header-inner {
  min-height: 76px;
  padding: 0 24px;
  gap: 26px;
}

.tkrb-brand {
  gap: 10px;
  color: #12372a;
}

.tkrb-brand:hover {
  color: #12372a;
}

.tkrb-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #12372a;
  color: #fbf9f2;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(18, 55, 42, 0.12);
}

.tkrb-brand-name {
  color: #12372a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.tkrb-nav {
  gap: 12px;
}

.tkrb-nav-link {
  min-height: 40px;
  padding: 0 2px;
  border-radius: 0;
  color: #2f3b4c;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 0;
  border-bottom: 2px solid transparent;
}

.tkrb-nav-link:hover {
  background: transparent;
  color: #111827;
  border-bottom-color: rgba(31, 111, 74, 0.28);
}

.tkrb-nav-active,
.tkrb-nav-active:hover {
  background: transparent;
  color: #1f6f4a;
  border-bottom-color: #1f6f4a;
}

/* Footer stays dark green like the reference lower site area. */
.tkrb-footer {
  margin-top: 40px;
  background: #12372a;
  color: #fbf9f2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tkrb-footer .tkrb-brand-mark {
  background: #fbf9f2;
  color: #12372a;
  box-shadow: none;
}

.tkrb-footer-links a:hover {
  color: #a7d8bb;
}

/* Local PDF intro: keep the title content, remove old app-bar feeling. */
.topbar {
  background: transparent;
  border-bottom: 0;
}

.topbar-inner {
  padding-top: 30px;
  padding-bottom: 8px;
}

.brand-copy h1 {
  color: #12372a;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.brand-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 760px;
}

.page-wrap {
  padding-top: 20px;
  padding-bottom: 34px;
}

/* Shared panels and workspace cards. */
.panel,
.summary-card,
.file-item,
.preview-card,
.action-card,
.result-card {
  background: #fffefa;
  border-color: rgba(18, 55, 42, 0.12);
  box-shadow: 0 4px 14px rgba(18, 55, 42, 0.05);
}

.panel {
  border-radius: 16px;
}

.upload-panel {
  background:
    linear-gradient(180deg, rgba(251, 249, 242, 0.92), rgba(255, 254, 250, 0.98)),
    #fffefa;
}

.workspace-grid {
  gap: 18px;
}

.panel-head h2,
.action-card h3,
.result-card-title,
.home-tool-title,
.subhead-title,
.summary-value,
.file-name,
.preview-title {
  color: #12372a;
}

.panel-head h2 {
  margin-top: 10px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.panel-head p,
.action-card p,
.result-line,
.preview-meta,
.file-meta,
.empty-block,
.message-box {
  color: var(--muted);
}

.section-badge,
.brand-badge,
.home-tool-meta,
.file-status {
  min-height: 28px;
  border-radius: 999px;
  background: #eef7f1;
  border-color: rgba(31, 111, 74, 0.16);
  color: #1f6f4a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.message-box,
.session-summary,
#results-box {
  background: #fbf9f2;
  border-color: rgba(18, 55, 42, 0.10);
}

.summary-card,
.file-item,
.preview-card,
.action-card,
.result-card {
  border-radius: 14px;
}

.file-item.selected {
  border-color: rgba(31, 111, 74, 0.28);
  background: #f2faf5;
}

.file-checkbox {
  accent-color: #1f6f4a;
}

.preview-frame,
.preview-card-body {
  background: #fbf9f2;
  border-color: rgba(18, 55, 42, 0.10);
}

.preview-card img {
  background: #fffefa;
}

.action-icon.blue,
.action-icon.green,
.home-tool-icon {
  background: #eef7f1;
  color: #12372a;
}

/* Upload/drop areas and form controls. */
.dropzone-inner {
  border-color: rgba(31, 111, 74, 0.34);
  border-radius: 16px;
  background: #fbf9f2;
}

.dropzone:hover .dropzone-inner,
.dropzone.drag-over .dropzone-inner {
  border-color: #1f6f4a;
  background: #f2faf5;
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #eef7f1;
  color: #12372a;
}

.dropzone-title {
  color: #12372a;
  letter-spacing: -0.01em;
}

.dropzone-subtitle,
.dropzone-meta {
  color: var(--muted);
}

.field span,
.field label,
.summary-label {
  color: #2f473d;
}

.field input,
.field select,
.field textarea {
  border-color: rgba(18, 55, 42, 0.16);
  background: #fffefa;
  color: #12372a;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #1f6f4a;
  box-shadow: 0 0 0 4px rgba(31, 111, 74, 0.12);
}

.btn {
  border-radius: 12px;
  font-weight: 650;
}

.btn-primary,
.btn-secondary,
.btn.primary {
  background: #1f6f4a;
  border-color: #1f6f4a;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 55, 42, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn.primary:hover {
  background: #12372a;
  border-color: #12372a;
}

.btn-soft,
.btn:not(.btn-primary):not(.btn-secondary):not(.btn-danger-outline):not(.primary) {
  background: #fffefa;
  border-color: rgba(18, 55, 42, 0.16);
  color: #12372a;
}

.btn-soft:hover,
.btn:not(.btn-primary):not(.btn-secondary):not(.btn-danger-outline):not(.primary):hover {
  background: #f2faf5;
  border-color: rgba(31, 111, 74, 0.28);
}

.btn-danger-outline,
.remove-btn {
  background: #fff5f3;
  border-color: #f2c9c1;
  color: #9f2a1f;
}

.btn-danger-outline:hover,
.remove-btn:hover {
  background: #fdebe7;
}

.result-link,
.download-link {
  background: #1f6f4a;
  border-color: #1f6f4a;
  color: #ffffff;
  border-radius: 12px;
}

.result-link:hover,
.download-link:hover {
  background: #12372a;
  border-color: #12372a;
}

/* Homepage: turn old pills into warm compact Tekarab tool cards. */
.tkrb-home .page-wrap {
  padding-top: 34px;
}

.tkrb-home .home-hero .panel {
  background:
    linear-gradient(180deg, #fbf9f2 0%, #eff7f2 100%),
    #fbf9f2;
  border-color: rgba(18, 55, 42, 0.10);
  box-shadow: none;
}

.tkrb-home .home-hero-copy h2 {
  color: #12372a;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tkrb-home .home-hero-copy p {
  color: #4b5f56;
  font-size: 15px;
}

.tkrb-home .home-section.panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 22px 0 0;
}

.tkrb-home .home-stat-card,
.tkrb-home .home-tool-card,
.tkrb-home .home-pill-link {
  background: #fffefa;
  border: 1px solid rgba(18, 55, 42, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(18, 55, 42, 0.05);
}

.tkrb-home .home-stat-card {
  padding: 16px;
}

.tkrb-home .home-stat-value {
  color: #12372a;
}

.tkrb-home .home-pills {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.tkrb-home .home-pill-link {
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 12px;
}

.tkrb-home .home-pill-link:hover,
.tkrb-home .home-tool-card:hover {
  border-color: rgba(31, 111, 74, 0.28);
  background: #fffefa;
  box-shadow: 0 10px 24px rgba(31, 111, 74, 0.08);
}

.tkrb-home .home-pill-link span:first-child,
.tkrb-home .home-tool-title {
  color: #12372a;
}

.tkrb-home .home-pill-link span:last-child {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef7f1;
  color: #1f6f4a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tkrb-home .home-tools-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.tkrb-home .home-tool-card {
  padding: 16px;
  border-radius: 14px;
}

.tkrb-home .home-tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.tkrb-home .home-tool-desc {
  color: #5f6f68;
}

/* Self-contained tools: edit-pdf, ocr-pdf, pdf-to-word. */
.page {
  background: #f7f5ef;
}

.page .topbar {
  display: none;
}

.page .hero,
.page .card,
.page .step,
.page .file-chip,
.page .result,
.page .preview-shell {
  background: #fffefa;
  border-color: rgba(18, 55, 42, 0.12);
  box-shadow: 0 4px 14px rgba(18, 55, 42, 0.05);
}

.page .hero {
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fbf9f2 0%, #eff7f2 100%),
    #fbf9f2;
  box-shadow: none;
}

.page .eyebrow {
  color: #1f6f4a;
  letter-spacing: 0.08em;
}

.page h1 {
  color: #12372a;
  letter-spacing: -0.02em;
}

.page .subtitle,
.page .card p,
.page .step span,
.page .file-size,
.page .result p {
  color: #5f6f68;
}

.page .card h2,
.page .step strong,
.page .file-name,
.page .result h3,
.page .preview-toolbar strong {
  color: #12372a;
}

.page .dropzone {
  background: #fbf9f2;
  border-color: rgba(31, 111, 74, 0.34);
  border-radius: 16px;
}

.page .dropzone:hover,
.page .dropzone.dragover {
  background: #f2faf5;
  border-color: #1f6f4a;
}

.page .dropzone strong {
  color: #12372a;
}

.page .dropzone span {
  color: #5f6f68;
}

.page .field label {
  color: #2f473d;
}

.page .field input,
.page .field textarea,
.page .field select {
  background: #fffefa;
  border-color: rgba(18, 55, 42, 0.16);
  color: #12372a;
}

.page .field input:focus,
.page .field textarea:focus,
.page .field select:focus {
  border-color: #1f6f4a;
  box-shadow: 0 0 0 4px rgba(31, 111, 74, 0.12);
}

.page .status.info {
  background: #eef7f1;
  color: #1f6f4a;
}

.page .status.success {
  background: #eef7f1;
  color: #1f6f4a;
}

.page .preview-toolbar {
  background: #fbf9f2;
  border-color: rgba(18, 55, 42, 0.10);
}

.page .preview-area {
  background: #f7f5ef;
}

.page .preview-frame {
  border-color: rgba(18, 55, 42, 0.16);
  box-shadow: 0 10px 28px rgba(18, 55, 42, 0.08);
}

.page .overlay-item,
.page .overlay-item.image {
  border-color: #1f6f4a;
}

.page .overlay-item.active {
  box-shadow: 0 0 0 3px rgba(31, 111, 74, 0.14);
}

@media (max-width: 760px) {
  .tkrb-header-inner {
    min-height: 70px;
    padding: 14px;
  }

  .tkrb-nav {
    gap: 10px 14px;
  }

  .tkrb-nav-link {
    min-height: 32px;
    font-size: 14px;
  }

  .brand-copy h1,
  .tkrb-home .home-hero-copy h2 {
    font-size: 30px;
  }

  .tkrb-home .home-section.panel {
    padding-top: 18px;
  }
}

/* =====================================================================
   HEADER EXACT ALIGNMENT PATCH - mirrors the current new.tekarab.com
   header structure using CSS only. Header selectors only; footer/cards
   intentionally untouched in this patch.
   ===================================================================== */

.tkrb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 242, 0.92);
  color: #12372a;
  border-bottom: 1px solid rgba(18, 55, 42, 0.10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tkrb-header-inner {
  max-width: 1380px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  flex-wrap: nowrap;
}

.tkrb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #12372a;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tkrb-brand:hover {
  color: #12372a;
  text-decoration: none;
}

.tkrb-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  flex: 0 0 auto;
  background: transparent url("https://tekarab.com/wp-content/uploads/2026/04/tekarab-favicon-512-1.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  box-shadow: none;
  overflow: hidden;
}

.tkrb-brand-name {
  color: #12372a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.tkrb-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.tkrb-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: auto;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f3b4c;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.tkrb-nav-link::after {
  content: "▼";
  color: #9ca3af;
  font-size: 10px;
  line-height: 1;
  transform: translateY(1px);
  transition: color 0.15s ease, transform 0.15s ease;
}

.tkrb-nav-link:hover {
  background: transparent;
  color: #111827;
  text-decoration: none;
  border: 0;
}

.tkrb-nav-link:hover::after,
.tkrb-nav-active::after {
  color: #1f6f4a;
}

.tkrb-nav-active,
.tkrb-nav-active:hover {
  background: transparent;
  color: #2f3b4c;
  border: 0;
}

@media (max-width: 999.98px) {
  .tkrb-header-inner {
    min-height: 70px;
  }

  .tkrb-nav {
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tkrb-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 689.98px) {
  .tkrb-header-inner {
    padding: 0 16px;
    gap: 18px;
  }

  .tkrb-nav-link {
    font-size: 15px;
  }
}



/* =====================================================================
   FINAL EXACT MATCH PATCH - Tekarab header, dropdowns, hero, catalog cards
   Visual-only overrides. No IDs, app hooks, routes, or backend behaviour.
   ===================================================================== */

.tkrb-header,
.tkrb-header * {
  box-sizing: border-box;
}

.tkrb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 242, 0.96);
  color: #12372a;
  border-bottom: 1px solid rgba(18, 55, 42, 0.10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 8px 24px rgba(18, 55, 42, 0.035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tkrb-header-inner {
  max-width: 1320px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  flex-wrap: nowrap;
}

.tkrb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #12372a;
  text-decoration: none;
  line-height: 1;
}

.tkrb-brand:hover {
  color: #12372a;
  text-decoration: none;
}

.tkrb-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  flex: 0 0 auto;
  background: transparent url("https://tekarab.com/wp-content/uploads/2026/04/tekarab-favicon-512-1.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  overflow: hidden;
}

.tkrb-brand-name {
  color: #12372a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.tkrb-nav {
  display: flex;
  align-items: stretch;
  gap: 22px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}

.tkrb-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.tkrb-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 74px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f3b4c;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tkrb-nav > .tkrb-nav-link::after {
  content: none;
}

.tkrb-has-dropdown > .tkrb-nav-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #7d8880;
  border-bottom: 1.5px solid #7d8880;
  transform: rotate(45deg) translateY(-2px);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tkrb-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.15s ease;
}

.tkrb-nav-link:hover,
.tkrb-nav-item:hover > .tkrb-nav-link,
.tkrb-nav-item:focus-within > .tkrb-nav-link {
  background: transparent;
  color: #111827;
  text-decoration: none;
  border: 0;
}

.tkrb-nav-active,
.tkrb-nav-active:hover,
.tkrb-nav-item:hover > .tkrb-nav-active {
  color: #1f6f4a;
}

.tkrb-nav-active::before,
.tkrb-nav-link:hover::before,
.tkrb-nav-item:hover > .tkrb-nav-link::before,
.tkrb-nav-item:focus-within > .tkrb-nav-link::before {
  background: #1f6f4a;
}

.tkrb-nav-item:hover > .tkrb-nav-link::after,
.tkrb-nav-item:focus-within > .tkrb-nav-link::after {
  border-color: #1f6f4a;
  transform: rotate(45deg) translate(1px, -1px);
}

.tkrb-dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  width: 338px;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid rgba(18, 55, 42, 0.12);
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 22px 50px rgba(18, 55, 42, 0.14), 0 6px 18px rgba(18, 55, 42, 0.07);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.tkrb-nav-item:hover > .tkrb-dropdown,
.tkrb-nav-item:focus-within > .tkrb-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.tkrb-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.tkrb-dropdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 9px 10px;
  border-radius: 12px;
  color: #12372a;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.tkrb-dropdown-row:hover {
  background: #f5f1e8;
  color: #12372a;
  text-decoration: none;
  transform: translateY(-1px);
}

.tkrb-dropdown-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #eef7f1;
  color: #1f6f4a;
  border: 1px solid rgba(31, 111, 74, 0.13);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.tkrb-dropdown-copy {
  display: block;
  min-width: 0;
}

.tkrb-dropdown-title {
  display: block;
  color: #12372a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.tkrb-dropdown-desc {
  display: block;
  margin-top: 3px;
  color: #65736c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.tkrb-home .page-wrap {
  padding-top: 24px;
}

.tkrb-home .home-hero {
  margin-bottom: 12px;
}

.tkrb-home .home-hero .panel {
  padding: 26px;
  border-radius: 18px;
  background: #fbf9f2;
  border: 1px solid rgba(18, 55, 42, 0.10);
  box-shadow: none;
}

.tkrb-home .home-hero-layout {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.tkrb-home .home-hero-copy h2 {
  max-width: 760px;
  margin: 10px 0 10px;
  color: #12372a;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 750;
}

.tkrb-home .home-hero-copy p {
  max-width: 760px;
  color: #56645e;
  font-size: 15px;
  line-height: 1.7;
}

.tkrb-home .home-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  width: min(320px, 100%);
}

.tkrb-home .home-hero-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 55, 42, 0.12);
  background: #fffefa;
  color: #12372a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(18, 55, 42, 0.04);
}

.tkrb-home .home-hero-action:hover {
  border-color: rgba(31, 111, 74, 0.25);
  background: #eef7f1;
  color: #12372a;
}

.tkrb-home .home-section.panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 20px 0 0;
}

.tkrb-home .panel-head h2 {
  margin-top: 8px;
  color: #12372a;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.tkrb-home .panel-head p {
  color: #65736c;
  font-size: 14px;
}

.tkrb-home .home-pills,
.tkrb-home .home-tools-grid {
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.tkrb-home .home-pill-link,
.tkrb-home .home-tool-card {
  min-height: 86px;
  padding: 14px;
  border-radius: 14px;
  background: #fffefa;
  border: 1px solid rgba(18, 55, 42, 0.12);
  box-shadow: 0 4px 14px rgba(18, 55, 42, 0.05);
  color: #12372a;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.tkrb-home .home-pill-link {
  justify-content: space-between;
  align-items: center;
  border-radius: 14px;
}

.tkrb-home .home-pill-link::before {
  content: "PDF";
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  margin-right: 2px;
  background: #eef7f1;
  color: #1f6f4a;
  border: 1px solid rgba(31, 111, 74, 0.13);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.tkrb-home .home-pill-link span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  color: #12372a;
  font-size: 14px;
  font-weight: 750;
}

.tkrb-home .home-pill-link span:last-child,
.tkrb-home .home-tool-meta {
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef7f1;
  border: 1px solid rgba(31, 111, 74, 0.13);
  color: #1f6f4a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.tkrb-home .home-tool-card {
  display: flex;
  flex-direction: column;
}

.tkrb-home .home-tool-card:hover,
.tkrb-home .home-pill-link:hover {
  border-color: rgba(31, 111, 74, 0.26);
  background: #fffefa;
  box-shadow: 0 12px 26px rgba(18, 55, 42, 0.08);
  transform: translateY(-2px);
}

.tkrb-home .home-tool-top {
  gap: 12px;
  margin-bottom: 10px;
}

.tkrb-home .home-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef7f1;
  color: #1f6f4a;
  border: 1px solid rgba(31, 111, 74, 0.13);
  font-size: 17px;
}

.tkrb-home .home-tool-title {
  color: #12372a;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 750;
}

.tkrb-home .home-tool-desc {
  min-height: 0;
  margin-bottom: 14px;
  color: #65736c;
  font-size: 13px;
  line-height: 1.55;
}

.tkrb-home .home-tool-meta {
  width: max-content;
  margin-top: auto;
}

@media (max-width: 980px) {
  .tkrb-header-inner {
    min-height: 70px;
    gap: 22px;
  }

  .tkrb-nav {
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tkrb-nav::-webkit-scrollbar {
    display: none;
  }

  .tkrb-dropdown {
    left: 0;
    transform: translate(0, 10px);
  }

  .tkrb-nav-item:hover > .tkrb-dropdown,
  .tkrb-nav-item:focus-within > .tkrb-dropdown {
    transform: translate(0, 0);
  }

  .tkrb-home .home-hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tkrb-home .home-hero-actions {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tkrb-header-inner {
    padding: 0 16px;
    gap: 18px;
  }

  .tkrb-brand-name {
    font-size: 17px;
  }

  .tkrb-nav-link {
    min-height: 68px;
    font-size: 15px;
  }

  .tkrb-dropdown {
    width: 300px;
  }

  .tkrb-home .home-hero .panel {
    padding: 18px;
  }

  .tkrb-home .home-hero-copy h2 {
    font-size: 30px;
  }

  .tkrb-home .home-hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .tkrb-home .home-pills,
  .tkrb-home .home-tools-grid {
    grid-template-columns: 1fr;
  }
}



/* FINAL HOME CLEANUP PATCH - catalog-first homepage and header alignment */
.tkrb-header-inner {
  max-width: 1290px;
  min-height: 72px;
  padding: 0 20px;
  gap: 28px;
}

.tkrb-brand {
  gap: 9px;
}

.tkrb-brand-mark {
  width: 32px;
  height: 32px;
}

.tkrb-brand-name {
  font-size: 18px;
}

.tkrb-nav {
  gap: 20px;
}

.tkrb-nav-link {
  min-height: 72px;
  font-size: 16px;
}

.tkrb-nav-link::before {
  bottom: 16px;
}

.tkrb-dropdown-icon {
  font-size: 11px;
  letter-spacing: 0;
}

.tkrb-home .page-wrap {
  padding-top: 18px;
}

.tkrb-home .home-section.panel:first-child {
  padding-top: 0;
}

@media (max-width: 760px) {
  .tkrb-header-inner {
    min-height: 68px;
    padding: 0 16px;
    gap: 16px;
  }

  .tkrb-nav-link {
    min-height: 68px;
  }
}
