/*
Theme Name: Brandup Tools
Theme URI: https://brandup.tools
Author: Brandup
Description: SEO and AI visibility tools for brandup.tools.
Version: 1.3
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══════════════════════════════════════════════
   BRAND PALETTE
   Everything below reads from these. To match the
   agency site exactly, change --accent and
   --accent-dark to the Brandup hex codes; the rest
   of the theme follows automatically.
   ═══════════════════════════════════════════════ */
:root {
  --bg:           #EDEFF3;
  --surface:      #FFFFFF;
  --surface2:     #F5F6F9;
  --border:       #DEE2EA;
  --border-hover: #C7CDD9;
  --text:         #1E2430;
  --text-2:       #454D5E;
  --muted:        #79839A;
  --accent:       #995C00;
  --accent-dark:  #7A4900;
  --accent-dim:   #FFF4DD;
  --accent-line:  #F5D08A;
  --accent2:      #B4540A;
  --success:      #1F7A50;
  --warn:         #B4540A;
  --danger:       #B23A2B;
  --radius:       14px;
  --sans:  'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* WordPress wrapper resets */
html, body { overflow-x: hidden; width: 100%; }

#page, #content, #primary, #main, .site, .site-content,
.hentry, .entry-content, .entry-header, .entry-footer,
.wp-site-blocks, .is-layout-flow, .is-layout-constrained,
.wp-block-group, .wp-block-post-content,
article, .post, .page {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

.wp-block-group__inner-container { max-width: 100% !important; }

/* NAV */
.rl-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(11,12,16,0.96);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
}
.rl-logo { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.rl-logo span { color: var(--accent); }
.rl-nav-links { display: flex; gap: 32px; }
.rl-nav-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.rl-nav-links a:hover { color: var(--text); }
.rl-nav-cta {
  background: var(--accent); border: none; border-radius: 9px;
  color: white; font-size: 13px; font-weight: 700;
  padding: 9px 20px; cursor: pointer; transition: opacity 0.2s;
}
.rl-nav-cta:hover { opacity: 0.85; }

/* HERO */
.rl-hero {
  text-align: center;
  padding: 88px 40px 64px;
  max-width: 740px;
  margin: 0 auto;
}
.rl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(252,174,30,0.25);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px;
}
.rl-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: rl-blink 2s infinite;
}
@keyframes rl-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.rl-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.rl-hero h1 em { color: var(--accent); font-style: normal; }
.rl-hero p {
  font-size: 16px; color: var(--muted); line-height: 1.75;
  max-width: 500px; margin: 0 auto 36px;
}
.rl-hero-stats {
  display: flex; justify-content: center; gap: 48px;
  border-top: 1px solid var(--border); padding-top: 36px;
}
.rl-stat-num { font-size: 26px; font-weight: 700; }
.rl-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* TOOLS SECTION */
.rl-tools { padding: 0 48px 80px; max-width: 1140px; margin: 0 auto; }

.rl-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 14px;
}
.rl-section-title {
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.rl-section-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--accent2); border-radius: 2px;
}
.rl-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rl-filter-btn {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 999px; color: var(--muted);
  font-size: 12px; font-family: inherit;
  padding: 6px 16px; cursor: pointer; transition: all 0.2s;
}
.rl-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.rl-filter-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.rl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 14px;
}

/* TOOL CARD */
.rl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  cursor: pointer;
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.rl-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--surface2);
}
.rl-card.featured { border-color: rgba(252,174,30,0.35); }
.rl-card-new {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent-dim); border: 1px solid rgba(252,174,30,0.35);
  border-radius: 999px; padding: 3px 10px;
  font-size: 10px; color: var(--accent); letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rl-card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 18px; flex-shrink: 0;
}
.icon-purple { background: rgba(252,174,30,0.15); }
.icon-teal   { background: rgba(29,158,117,0.15); }
.icon-amber  { background: rgba(247,199,106,0.12); }
.icon-coral  { background: rgba(216,90,48,0.12); }
.icon-blue   { background: rgba(55,138,221,0.12); }

.rl-card-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.rl-card-desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; flex: 1; }
.rl-card-footer { display: flex; align-items: center; justify-content: space-between; }
.rl-tag {
  font-size: 11px; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px;
}
.rl-arrow {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
  transition: all 0.2s;
}
.rl-card:hover .rl-arrow { background: var(--accent); border-color: var(--accent); color: white; }

/* COMING SOON CARD */
.rl-coming {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  min-height: 180px; cursor: default;
}
.rl-coming-icon { font-size: 22px; color: var(--muted); }
.rl-coming-label { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* CTA BANNER */
.rl-cta {
  margin: 0 48px 72px;
  max-width: 1140px; margin-left: auto; margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 52px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 28px;
}
.rl-cta h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.rl-cta p  { font-size: 14px; color: var(--muted); }
.rl-cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent); border: none; border-radius: 10px;
  color: white; font-size: 14px; font-weight: 700; font-family: inherit;
  padding: 12px 24px; cursor: pointer; transition: opacity 0.2s; white-space: nowrap;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: none; border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted); font-size: 14px; font-family: inherit;
  padding: 12px 24px; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

/* FOOTER */
.rl-footer {
  border-top: 1px solid var(--border);
  padding: 30px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.rl-footer-logo { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.rl-footer-logo span { color: var(--accent); }
.rl-footer-copy { font-size: 12px; color: var(--muted); }

/* TOOL PAGE */
.rl-tool-page { max-width: 900px; margin: 0 auto; padding: 48px 40px 80px; }
.rl-tool-breadcrumb {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px;
}
.rl-tool-breadcrumb a { color: var(--muted); transition: color 0.2s; }
.rl-tool-breadcrumb a:hover { color: var(--text); }
.rl-tool-breadcrumb span { color: var(--border-hover); }

/* FORMS */
.rl-card-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 16px;
}
.rl-card-form-title {
  font-size: 11px; font-family: 'DM Mono', monospace;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 8px;
}
.rl-card-form-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.rl-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rl-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.rl-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.rl-field:last-child { margin-bottom: 0; }
.rl-label { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.rl-input, .rl-select, .rl-textarea {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: 'Syne', sans-serif; font-size: 14px;
  padding: 11px 14px; outline: none; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rl-input:focus, .rl-select:focus, .rl-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(252,174,30,0.15);
}
.rl-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.rl-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a9a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px; cursor: pointer; -webkit-appearance: none;
}

.rl-sep-options { display: flex; gap: 10px; }
.rl-sep-btn {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted);
  font-size: 17px; padding: 10px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.rl-sep-btn:hover { border-color: var(--accent); color: var(--text); }
.rl-sep-btn.active { border-color: var(--accent); background: rgba(252,174,30,0.12); color: var(--accent); }

.rl-generate-btn {
  width: 100%; background: var(--accent); border: none; border-radius: 10px;
  color: white; font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700;
  padding: 16px; cursor: pointer; transition: all 0.2s;
  margin-top: 8px;
}
.rl-generate-btn:hover { background: #E89A00; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(252,174,30,0.35); }
.rl-generate-btn:active { transform: none; box-shadow: none; }
.rl-generate-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.rl-spinner {
  display: none; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: rl-spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes rl-spin { to { transform: rotate(360deg); } }

/* RESULTS */
.rl-results { display: none; }
.rl-results-heading {
  font-size: 12px; color: var(--muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin: 28px 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.rl-results-heading::before { content: ''; width: 3px; height: 14px; background: var(--accent2); border-radius: 2px; }

.rl-variant {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin-bottom: 14px;
  transition: border-color 0.2s;
}
.rl-variant:hover { border-color: rgba(252,174,30,0.3); }
.rl-variant-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(252,174,30,0.12); border: 1px solid rgba(252,174,30,0.25);
  border-radius: 999px; padding: 4px 14px;
  font-size: 11px; color: var(--accent); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 20px;
}

.rl-meta-field { margin-bottom: 18px; }
.rl-meta-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rl-meta-type { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.rl-char-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid;
  transition: all 0.3s;
}
.char-ok   { color: var(--success); border-color: rgba(77,217,138,0.3); background: rgba(77,217,138,0.08); }
.char-warn { color: var(--warn);    border-color: rgba(247,169,74,0.3);  background: rgba(247,169,74,0.08); }
.char-danger{ color: var(--danger); border-color: rgba(247,106,106,0.3); background: rgba(247,106,106,0.08); }

.rl-content-box {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 16px;
  font-size: 14px; line-height: 1.6;
  outline: none; transition: border-color 0.2s; min-height: 44px;
}
.rl-content-box:focus { border-color: var(--accent); }

.rl-char-bar { height: 3px; border-radius: 2px; margin-top: 6px; background: var(--border); overflow: hidden; }
.rl-char-bar-fill { height: 100%; border-radius: 2px; transition: width 0.4s, background 0.3s; }
.rl-warn-msg { font-size: 11px; color: var(--warn); margin-top: 5px; display: none; }

.rl-serp-toggle {
  background: none; border: none; color: var(--muted);
  font-size: 11px; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  padding: 0; margin-top: 14px; transition: color 0.2s;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.rl-serp-toggle:hover { color: var(--text); }

.rl-serp-preview {
  background: #fff; border-radius: 10px;
  padding: 16px 20px; margin-top: 12px; display: none;
}
.rl-serp-url  { font-size: 12px; color: #1a0dab; font-family: Arial,sans-serif; opacity: 0.7; margin-bottom: 2px; }
.rl-serp-title{ font-size: 18px; color: #1a0dab; font-family: Arial,sans-serif; font-weight: 400; line-height: 1.3; margin-bottom: 4px; }
.rl-serp-desc { font-size: 13px; color: #4d5156; font-family: Arial,sans-serif; line-height: 1.5; }

.rl-copy-row  { display: flex; justify-content: flex-end; margin-top: 16px; }
.rl-copy-btn  {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted); font-size: 11px; font-family: inherit;
  padding: 7px 18px; cursor: pointer; transition: all 0.2s; letter-spacing: 0.06em; text-transform: uppercase;
}
.rl-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.rl-copy-btn.copied { border-color: var(--success); color: var(--success); }

.rl-error {
  background: rgba(247,106,106,0.08); border: 1px solid rgba(247,106,106,0.25);
  border-radius: 10px; padding: 16px 20px; color: var(--danger);
  font-size: 13px; display: none; margin-top: 12px;
}

/* OVERFLOW FIX — prevent any element from causing horizontal scroll */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* WordPress admin bar offset fix */
.admin-bar .rl-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .rl-nav { top: 46px; }
}

/* Kill any WP default margins/padding on content wrappers */
body.page, body.home, body.singular {
  margin: 0 !important;
  padding: 0 !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .rl-nav { padding: 0 20px; }
  .rl-nav-links { display: none; }

  .rl-hero {
    padding: 48px 20px 40px;
    max-width: 100%;
    width: 100%;
  }
  .rl-hero h1 { font-size: 32px; word-break: break-word; }
  .rl-hero p  { font-size: 15px; }
  .rl-hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .rl-stat-num { font-size: 22px; }

  .rl-tools {
    padding: 0 16px 60px;
    max-width: 100%;
    width: 100%;
  }
  .rl-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rl-grid { grid-template-columns: 1fr; }

  .rl-cta {
    margin: 0 16px 56px;
    max-width: calc(100% - 32px);
    padding: 28px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .rl-cta-actions { width: 100%; flex-direction: column; }
  .rl-cta-actions button { width: 100%; text-align: center; }

  .rl-footer { padding: 24px 20px; flex-direction: column; gap: 10px; text-align: center; }
  .rl-grid-2, .rl-grid-3 { grid-template-columns: 1fr; }
  .rl-tool-page { padding: 28px 16px 60px; }

  .rl-sep-options { flex-wrap: wrap; }
  .rl-filter-row { flex-wrap: wrap; }
}

/* Extra small screens */
@media (max-width: 480px) {
  .rl-hero h1 { font-size: 28px; }
  .rl-badge   { font-size: 10px; padding: 4px 12px; }
  .rl-nav-cta { padding: 7px 14px; font-size: 12px; }
  .rl-card    { padding: 20px; }
}

/* ═══════════════════════════════════════════════
   LIGHT THEME
   Appended override. The theme already draws every
   surface from these variables, so redefining them
   flips the whole site without touching the rules
   above. Matches the content generator palette.
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   BRAND PALETTE
   Everything below reads from these. To match the
   agency site exactly, change --accent and
   --accent-dark to the Brandup hex codes; the rest
   of the theme follows automatically.
   ═══════════════════════════════════════════════ */
:root {
  --bg:           #EDEFF3;
  --surface:      #FFFFFF;
  --surface2:     #F5F6F9;
  --border:       #DEE2EA;
  --border-hover: #C7CDD9;
  --text:         #1E2430;
  --muted:        #79839A;
  --accent:       #995C00;
  --accent-dim:   #FFF4DD;
  --accent2:      #B4540A;
  --success:      #1F7A50;
  --warn:         #B4540A;
  --danger:       #B23A2B;
}

html, body { background: var(--bg); }

/* Type: readable on light, matching the generator */
body, .rl-nav, .rl-card, .rl-hero {
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}
body { color: var(--text); font-size: 15.5px; line-height: 1.55; }

/* Nav sits on paper, not glass */
.rl-nav {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border);
}
.rl-nav-links a { color: var(--ink-2, #454D5E); }
.rl-nav-links a:hover { color: var(--accent); }

/* Cards and panels */
.rl-card, .rl-card-form, .rl-variant, .rl-cta,
.ta-cluster-card, .ta-link-card, .rv-summary-card,
.rl-coming, .paa-cluster-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(20,24,33,.04);
}
.rl-card:hover { border-color: var(--border-hover); background: var(--surface); }
.rl-card-desc, .rl-hero p, .rl-cta p { color: #454D5E; }

/* Inputs */
.rl-input, .rl-select, .rl-textarea, .rl-content-box,
.bulk-input-sm, .bulk-select-sm, .hg-lang-input, .hg-url-input,
.rl-app input, .rl-app select, .rl-app textarea {
  background: var(--surface);
  border-color: var(--border-hover);
  color: var(--text);
}
.rl-input:focus, .rl-select:focus, .rl-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.rl-select, .bulk-select-sm, .rl-hist-filters select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2379839A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Code and mono blocks read as sunken paper */
.hg-code-block, .rl-code, .hg-code-block pre {
  background: var(--surface2);
  border-color: var(--border);
  color: #454D5E;
}

/* Tables */
.ta-table thead th, .rv-table thead th, .cg-kw-table thead th {
  background: var(--surface2); color: var(--muted);
  border-bottom-color: var(--border-hover);
}
.ta-table tbody tr:hover, .rv-table tbody tr:hover { background: var(--surface2); }
.ta-table tbody td, .rv-table tbody td { color: var(--text); }

/* Buttons */
.rl-nav-cta, .btn-primary, .rl-generate-btn {
  background: var(--accent); color: #fff;
}
.rl-nav-cta:hover, .btn-primary:hover, .rl-generate-btn:hover {
  background: #7A4900; box-shadow: none;
}
.btn-ghost, .rl-copy-btn, .rl-filter-btn, .rl-sep-btn, .ta-tab, .rv-toggle {
  background: var(--surface); border-color: var(--border-hover); color: #454D5E;
}
.btn-ghost:hover, .rl-copy-btn:hover, .rl-filter-btn:hover { background: var(--surface2); color: var(--text); }
.rl-filter-btn.active, .rl-sep-btn.active, .rv-toggle.active, .ta-tab.is-active {
  background: var(--accent-dim); border-color: var(--accent); color: var(--accent);
}

/* Badges keep their meaning on a light ground */
.rl-badge { background: var(--accent-dim); border-color: #F5D08A; color: var(--accent); }
.rl-tag, .cg-pill { background: var(--surface2); border-color: var(--border); color: #454D5E; }
.char-ok     { color: var(--success); background: #E8F4EE; border-color: #BFE0CE; }
.char-warn   { color: var(--warn);    background: #FBF1E2; border-color: #EBD5AC; }
.char-danger { color: var(--danger);  background: #FBEDEB; border-color: #EFC5BE; }

/* SERP preview already had a white card — give it an edge now */
.rl-serp-preview { border: 1px solid var(--border); }

/* Footer */
.rl-footer { border-top-color: var(--border); }
.rl-footer-copy { color: var(--muted); }

/* Section rules and dividers */
.rl-topic-list li, .ta-topic-list li, .paa-q-row,
.rl-hero-stats, .rl-section-header { border-color: var(--border); }

/* Icon tiles: soften the fills for a light ground */
.icon-purple { background: #FFF4DD; }
.icon-teal   { background: #E4F1EB; }
.icon-amber  { background: #FBF1E2; }
.icon-coral  { background: #FBEDEB; }
.icon-blue   { background: #E6EFFA; }



/* ═══════════════════════════════════════════════
   NAV, HOME, TOOL CARDS, BLOG
   ═══════════════════════════════════════════════ */

.rl-nav { position: sticky; top: 0; z-index: 90; }
.rl-nav-links a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--text-2);
  text-decoration: none; padding: 4px 0; transition: color .15s;
}
.rl-nav-links a:hover, .rl-nav-links a.is-active { color: var(--accent); }
.rl-nav-links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.rl-nav-cta {
  display: inline-flex; align-items: center; text-decoration: none;
  background: var(--accent); color: #fff; border: none; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; padding: 9px 18px; transition: background .15s;
}
.rl-nav-cta:hover { background: var(--accent-dark); color: #fff; }

.rl-nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 34px; height: 34px; padding: 8px;
}
.rl-nav-toggle span {
  display: block; height: 1.5px; background: var(--text); border-radius: 2px; margin: 4px 0;
}

/* ── HOME AND INDEX PAGES ────────────── */
.rl-home { max-width: 1080px; margin: 0 auto; padding: 0 24px 90px; }

.rl-home-hero { padding: 80px 0 48px; max-width: 660px; }
.rl-home-hero.is-compact { padding: 56px 0 36px; }
.rl-eyebrow {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.rl-home-hero h1 {
  font-family: var(--serif); font-size: clamp(34px, 5.5vw, 58px); font-weight: 600;
  line-height: 1.09; letter-spacing: -.025em; color: var(--text); margin: 0 0 18px;
}
.rl-home-hero h1 em { font-style: italic; color: var(--accent); }
.rl-home-hero p { font-size: 16.5px; line-height: 1.62; color: var(--text-2); margin: 0; max-width: 34em; }

.rl-home-sec { margin-bottom: 48px; }
.rl-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.rl-sec-head h2 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.rl-sec-head a { font-size: 13.5px; color: var(--accent); text-decoration: none; }
.rl-sec-head a:hover { text-decoration: underline; }

/* ── TOOL CARDS ──────────────────────── */
.rl-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }

.rl-tcard {
  display: flex; flex-direction: column; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 24px 20px; text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.rl-tcard:hover {
  border-color: var(--accent-line); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,24,33,.07);
}
.rl-tcard-idx {
  font-family: var(--mono); font-size: 11.5px; color: var(--accent);
  letter-spacing: .08em; margin-bottom: 18px;
}
.rl-tcard h3 {
  font-size: 17px; font-weight: 600; color: var(--text);
  margin: 0 0 8px; letter-spacing: -.01em; line-height: 1.25;
}
.rl-tcard p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0 0 16px; flex: 1; }

.rl-tcard-note {
  font-size: 12px; line-height: 1.5; color: var(--warn);
  background: #FBF1E2; border-radius: 8px; padding: 8px 11px; margin-bottom: 14px;
}
.rl-tcard.is-internal { border-style: solid; }

.rl-tcard-foot { display: flex; align-items: center; justify-content: space-between; }
.rl-tcard-foot span {
  font-size: 12px; color: var(--muted);
  background: var(--surface2); border-radius: 99px; padding: 4px 12px;
}
.rl-tcard-foot i {
  font-style: normal; width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface2); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all .18s;
}
.rl-tcard:hover .rl-tcard-foot i { background: var(--accent); color: #fff; }

/* ── CROSS LINK ──────────────────────── */
.rl-crosslink {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 28px;
}
.rl-crosslink h2 { font-size: 18px; font-weight: 600; margin: 0 0 5px; }
.rl-crosslink p { font-size: 14px; color: var(--text-2); margin: 0; }
.rl-btn {
  display: inline-block; background: var(--accent); color: #fff;
  border-radius: 9px; font-size: 14px; font-weight: 600;
  padding: 11px 22px; text-decoration: none; transition: background .15s; white-space: nowrap;
}
.rl-btn:hover { background: var(--accent-dark); color: #fff; }

/* ── POST CARDS ──────────────────────── */
.rl-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.rl-pcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  text-decoration: none; color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.rl-pcard:hover {
  border-color: var(--accent-line); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,24,33,.07);
}
.rl-pcard-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface2); }
.rl-pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-pcard-body { padding: 20px 22px 22px; }

.rl-post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted); margin-bottom: 9px;
}
.rl-post-meta span::before { content: '\00b7'; margin-right: 10px; }

.rl-post-title {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  line-height: 1.28; letter-spacing: -.012em; color: var(--text); margin: 0 0 8px;
}
.rl-pcard p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }

/* ── PAGINATION AND EMPTY ────────────── */
.rl-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.rl-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border-hover);
  border-radius: 9px; color: var(--text-2); font-size: 13.5px;
  text-decoration: none; transition: .15s;
}
.rl-pagination .page-numbers:hover { background: var(--surface2); color: var(--text); }
.rl-pagination .page-numbers.current {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}

.rl-empty { text-align: center; padding: 60px 20px; }
.rl-empty p { font-size: 15px; color: var(--text-2); margin: 0 0 18px; }

/* ── SINGLE POST ─────────────────────── */
.rl-single { max-width: 720px; margin: 0 auto; padding: 40px 24px 90px; }
.rl-back {
  display: inline-block; font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 26px;
}
.rl-back:hover { color: var(--accent); }

.rl-single-head { margin-bottom: 30px; }
.rl-single-head h1 {
  font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); font-weight: 600;
  line-height: 1.14; letter-spacing: -.022em; color: var(--text); margin: 0 0 14px;
}
.rl-single-lede { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 0; }

.rl-single-hero {
  border-radius: 16px; overflow: hidden; margin-bottom: 36px; background: var(--surface2);
}
.rl-single-hero img { width: 100%; height: auto; display: block; }

/* Article body: serif at reading width, the same surface the content
   generator previews content on, so drafts and published posts match. */
.rl-prose { font-family: var(--serif); font-size: 18.5px; line-height: 1.74; color: #1A1D26; }
.rl-prose > * { max-width: 100%; }
.rl-prose p { margin: 0 0 20px; }
.rl-prose h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  line-height: 1.26; letter-spacing: -.014em; margin: 42px 0 14px;
}
.rl-prose h3 {
  font-family: var(--sans); font-size: 17px; font-weight: 600;
  margin: 32px 0 10px; color: var(--text);
}
.rl-prose ul, .rl-prose ol { margin: 0 0 20px; padding-left: 26px; }
.rl-prose li { margin-bottom: 9px; }
.rl-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.rl-prose strong { font-weight: 600; }
.rl-prose img, .rl-prose figure img { max-width: 100%; height: auto; border-radius: 12px; }
.rl-prose figure { margin: 30px 0; }
.rl-prose figcaption {
  font-family: var(--sans); font-size: 13px; color: var(--muted);
  text-align: center; margin-top: 10px;
}
.rl-prose blockquote {
  margin: 30px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent-line); color: var(--text-2); font-style: italic;
}
.rl-prose code {
  font-family: var(--mono); font-size: .86em;
  background: var(--surface2); border-radius: 5px; padding: 2px 7px;
}
.rl-prose pre {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; overflow-x: auto; margin: 0 0 22px;
}
.rl-prose pre code { background: none; padding: 0; font-size: 13px; line-height: 1.7; }
.rl-prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; margin: 0 0 24px; }
.rl-prose th, .rl-prose td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.rl-prose th { font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rl-prose hr { border: 0; border-top: 1px solid var(--border); margin: 38px 0; }

.rl-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--border); }
.rl-tags a {
  font-size: 12.5px; color: var(--text-2); text-decoration: none;
  background: var(--surface2); border-radius: 99px; padding: 5px 13px; transition: .15s;
}
.rl-tags a:hover { background: var(--accent-dim); color: var(--accent); }

.rl-related { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--border); }

/* ── FOOTER ──────────────────────────── */
.rl-footer { border-top: 1px solid var(--border); margin-top: 20px; padding: 40px 24px 30px; }
.rl-footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding-bottom: 26px;
}
.rl-footer-logo { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.rl-footer-logo span { color: var(--accent); }
.rl-footer-line { font-size: 13.5px; color: var(--text-2); margin: 7px 0 0; max-width: 30em; }
.rl-footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.rl-footer-nav a { font-size: 13.5px; color: var(--text-2); text-decoration: none; }
.rl-footer-nav a:hover { color: var(--accent); }
.rl-footer-copy {
  max-width: 1080px; margin: 0 auto; padding-top: 22px;
  border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted);
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 760px) {
  .rl-nav-toggle { display: block; }
  .rl-nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .rl-nav.is-open .rl-nav-links { display: flex; }
  .rl-nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .rl-nav-links a:last-child { border-bottom: none; }
  .rl-nav-links a.is-active::after { display: none; }
  .rl-nav-cta { font-size: 12.5px; padding: 8px 14px; }

  .rl-home { padding: 0 18px 60px; }
  .rl-home-hero { padding: 44px 0 32px; }
  .rl-tgrid, .rl-pgrid { grid-template-columns: 1fr; }
  .rl-single { padding: 26px 20px 60px; }
  .rl-prose { font-size: 17.5px; }
  .rl-crosslink { flex-direction: column; align-items: flex-start; }
}

/* ── LANGUAGE SWITCH ─────────────────── */
.rl-lang {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface2, #F5F6F9); border: 1px solid var(--border, #DEE2EA);
  border-radius: 9px; margin-left: auto; margin-right: 12px;
}
.rl-lang button {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted, #79839A); padding: 5px 10px; border-radius: 6px; transition: .15s;
}
.rl-lang button:hover { color: var(--text, #1E2430); }
html[lang="tr"] .rl-lang [data-lang="tr"],
html[lang="en"] .rl-lang [data-lang="en"] {
  background: var(--surface, #fff); color: var(--accent, #995C00);
  box-shadow: 0 1px 2px rgba(20,24,33,.08);
}
@media (max-width: 760px) {
  .rl-lang { margin-right: 6px; }
  .rl-lang button { padding: 5px 8px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════
   POLISH — v1.1
   Fixes found on the live site and a calmer, more
   consistent layout. Appended so it wins over the
   older rules above without rewriting them.
   ═══════════════════════════════════════════════ */

:root { --wrap: 1080px; --gutter: 24px; }

/* ── NAV ── logo, links and actions each get their own room */
.rl-nav { gap: 28px; padding: 0 max(24px, calc((100% - 1032px) / 2)); }  /* nav edges line up with the content column */
.rl-logo { font-size: 19px; flex-shrink: 0; }
.rl-nav-links { gap: 26px; }
.rl-nav-links a { font-size: 14px; }
.rl-lang { margin-left: auto; margin-right: 0; }
.rl-nav-cta { white-space: nowrap; }

/* ── FORM CONTROLS ── the light override used the background shorthand,
   which reset the select arrow to a repeating pattern */
.rl-select, .bulk-select-sm, .rl-hist-filters select {
  background-color: var(--surface);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
  padding-right: 36px;
  appearance: none; -webkit-appearance: none;
}
.rl-input, .rl-select, .rl-textarea { border-radius: 10px; font-size: 14.5px; }
.rl-input::placeholder, .rl-textarea::placeholder { color: #9AA2B4; }
.rl-label { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.rl-card-form { border-radius: 16px; padding: 28px; }
.rl-generate-btn { border-radius: 12px; font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.rl-generate-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(252,174,30,.22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── TYPE ── one family across home, tool pages and posts */
.rl-home-hero h1, .rl-tool-page h1, .rl-page-header h1, .rl-single-head h1 {
  font-weight: 700 !important; letter-spacing: -.035em !important; line-height: 1.06 !important;
}
.rl-home-hero h1 em { font-style: normal; color: var(--accent); }
.rl-tool-page h1 { font-size: clamp(30px, 4.4vw, 44px) !important; margin-bottom: 14px !important; }
.rl-tool-page > div > p, .rl-tool-page header p { color: var(--text-2) !important; }
.rl-post-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.rl-post-meta { font-size: 12.5px; }

/* Tool page badge: quieter, no blinking dot */
.rl-badge {
  padding: 4px 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  border: 0; background: var(--accent-dim);
}
.rl-badge-dot { animation: none; width: 5px; height: 5px; }
.rl-tool-breadcrumb { font-size: 13px; margin-bottom: 26px; }
.rl-tool-breadcrumb a:hover { color: var(--accent); }

/* ── HOME HERO ── text left, search and counts right */
.rl-home-hero {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr);
  gap: 56px; align-items: end;
  padding: 76px 0 56px;
}
.rl-home-hero.is-compact { display: block; max-width: 680px; }
.rl-home-hero h1 { font-size: clamp(38px, 5.6vw, 62px); }
.rl-home-hero p { max-width: 32em; }

.rl-hero-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; box-shadow: 0 1px 2px rgba(20,24,33,.04), 0 12px 32px rgba(20,24,33,.05);
}
.rl-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 14px; color: var(--muted); transition: border-color .15s, box-shadow .15s;
}
.rl-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); background: var(--surface); }
.rl-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 15px; color: var(--text); padding: 13px 0;
}
.rl-search input::-webkit-search-cancel-button { cursor: pointer; }
.rl-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  border: 0; padding: 16px 0 0; margin: 0;
}
.rl-hero-stats div { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; }
.rl-hero-stats strong { font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.rl-hero-stats span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.rl-search-empty { margin: 14px 0 0 !important; font-size: 13.5px; color: var(--warn) !important; }

/* ── SECTIONS & GRID ── */
.rl-home-sec { margin-bottom: 56px; }
.rl-home { padding-bottom: 48px; }
.rl-sec-head { padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.rl-sec-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.rl-sec-head a { font-weight: 500; }
.rl-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ── TOOL CARDS ── */
.rl-tcard { padding: 22px 22px 18px; border-radius: 16px; min-height: 236px; }
.rl-tcard-idx { margin-bottom: 14px; color: var(--muted); }
.rl-tcard:hover .rl-tcard-idx { color: var(--accent); }
.rl-tcard h3 { font-size: 17.5px; font-weight: 650; }
.rl-tcard p { color: var(--text-2); font-size: 14px; }
.rl-tcard-note { display: none; }
.rl-tcard-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rl-tcard-foot span { font-size: 12px; padding: 4px 11px; }
.rl-tcard-foot .rl-tcard-lock {
  display: inline-flex; align-items: center; gap: 5px;
  background: #FBF1E2; color: var(--warn);
}
.rl-tcard-lock::before {
  content: ''; width: 9px; height: 10px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M2 4V3a2.5 2.5 0 015 0v1h.5A1.5 1.5 0 019 5.5v3A1.5 1.5 0 017.5 10h-6A1.5 1.5 0 010 8.5v-3A1.5 1.5 0 011.5 4H2zm1 0h3V3a1.5 1.5 0 00-3 0v1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M2 4V3a2.5 2.5 0 015 0v1h.5A1.5 1.5 0 019 5.5v3A1.5 1.5 0 017.5 10h-6A1.5 1.5 0 010 8.5v-3A1.5 1.5 0 011.5 4H2zm1 0h3V3a1.5 1.5 0 00-3 0v1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rl-tcard[hidden], .rl-home-sec[hidden] { display: none !important; }

/* ── POST CARDS ── */
.rl-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rl-pcard-body { padding: 20px 22px 22px; }

/* ── FOOTER ── the old flex rule put the copyright line beside the columns */
.rl-footer { display: block; padding: 44px var(--gutter) 28px; margin-top: 0; background: var(--surface); }
.rl-footer-inner, .rl-footer-copy { max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.rl-footer-copy { display: block; }

/* ── GENERIC PAGE (plugin tools) ── */
.rl-page { max-width: var(--wrap); padding: 36px var(--gutter) 80px; }

/* ── RESPONSIVE ── */
@media (max-width: 1020px) {
  .rl-tgrid, .rl-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-home-hero { grid-template-columns: 1fr; gap: 28px; padding: 52px 0 40px; }
}
@media (max-width: 900px) {
  /* the older 900px rule hid the links before the menu button appeared */
  .rl-nav { padding: 0 18px; gap: 12px; }
  .rl-nav-toggle { display: block; order: 4; }
  .rl-nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 6px 20px 14px; box-shadow: 0 12px 24px rgba(20,24,33,.06);
  }
  .rl-nav.is-open .rl-nav-links { display: flex; }
  .rl-nav-links a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .rl-nav-links a:last-child { border-bottom: none; }
  .rl-nav-links a.is-active::after { display: none; }
  .rl-footer-inner { flex-direction: column; text-align: left; }
}
@media (max-width: 640px) {
  .rl-tgrid, .rl-pgrid { grid-template-columns: 1fr; }
  .rl-tcard { min-height: 0; }
  .rl-home-hero h1 { font-size: 36px; }
  .rl-hero-stats strong { font-size: 22px; }
  .rl-card-form { padding: 20px; }
}
@media (max-width: 480px) {
  .rl-nav-cta { display: none; }
  .rl-footer { text-align: left; }
}

/* ── PLUGIN TOOL PAGES (crawler checker, llms.txt, demand gap) ──
   Same heading system as the theme's own tool pages. */
body .rlc .rlc-head h1 {
  font-family: var(--sans) !important; font-weight: 700;
  letter-spacing: -.035em; line-height: 1.06; font-size: clamp(30px, 4.4vw, 44px);
}
body .rlc .rlc-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  color: var(--accent); background: var(--accent-dim);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
body .rlc .rlc-head { padding-top: 12px; }
body .cg-setup-head h2, body .cg-login-card h3 { font-family: var(--sans) !important; font-weight: 700; letter-spacing: -.025em; }
@media (max-width: 640px) { .rl-page { padding: 24px 16px 60px; } }

/* ═══════════════════════════════════════════════
   TOOL PAGES — v1.2
   One content width for every tool, one breadcrumb,
   touch-sized checkboxes and a wait indicator.
   ═══════════════════════════════════════════════ */
:root { --tool-w: 960px; }

/* One width: theme tools and plugin tools line up exactly.
   Inline max-widths left in older templates are overridden here. */
body .rl-tool-page {
  max-width: calc(var(--tool-w) + 48px) !important;
  padding: 28px 24px 80px;
}
body .rl-page .rlc { max-width: var(--tool-w); padding-left: 0; padding-right: 0; }
body .rl-page .rlc-head { padding-top: 6px; }

/* Breadcrumb */
.rl-crumb-row { max-width: var(--tool-w); margin: 0 auto; }
.rl-crumb-row.is-app { max-width: none; }
.rl-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  font-size: 13px; color: var(--muted); margin: 0 0 22px;
}
.rl-crumbs a { color: var(--text-2); text-decoration: none; }
.rl-crumbs a:hover { color: var(--accent); text-decoration: underline; }
.rl-crumbs i { font-style: normal; color: var(--border-hover); }
.rl-crumbs span { color: var(--text); font-weight: 500; }
.rl-tool-breadcrumb { display: none; } /* superseded */

/* Checkbox chips — styled once for every tool (they were only styled on
   the robots page, so PAA and Hreflang showed bare 13px browser boxes). */
body .rv-ua-chip {
  position: relative; display: inline-flex; align-items: center; gap: 0;
  min-height: 40px; padding: 8px 14px 8px 12px;
  background: var(--surface); border: 1px solid var(--border-hover); border-radius: 10px;
  font-size: 13.5px; color: var(--text-2); cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
body .rv-ua-chip:hover { border-color: var(--accent); color: var(--text); }
body .rl-tool-page .rv-ua-chip input[type="checkbox"],
body .rv-ua-chip input[type="checkbox"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
  display: block;
}
body .rv-ua-chip span { display: inline-flex; align-items: center; gap: 9px; }
body .rv-ua-chip span::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0; box-sizing: border-box;
  border: 1.5px solid var(--border-hover); border-radius: 5px; background: var(--surface);
  transition: background .15s, border-color .15s;
}
body .rv-ua-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
body .rv-ua-chip:has(input:checked) span::before {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 9px no-repeat;
}
body .rv-ua-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Any other checkbox inside a tool */
body .rl-tool-page input[type="checkbox"]:not(.rv-ua-chip input),
body .rlc input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0;
}

/* Wait indicator under a busy button */
.rl-wait { margin-top: 12px; }
.rl-wait-bar { height: 4px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.rl-wait-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .5s linear; }
.rl-wait-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.rl-wait-t { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  body .rl-tool-page { padding: 20px 16px 60px; }
  body .rv-ua-chip { min-height: 44px; font-size: 14px; padding: 10px 14px 10px 12px; }
  body .rv-ua-chip span::before { width: 20px; height: 20px; }
  body .rv-ua-grid, body .hg-checks-row { gap: 8px; }

  /* Hreflang rows: language and remove button on one line, URL full width below */
  body .hg-table-head { display: none; }
  body .hg-row {
    grid-template-columns: 1fr 44px; gap: 8px;
    padding: 12px; margin-bottom: 10px;
    border: 1px solid var(--border); border-radius: 12px; background: var(--surface2);
  }
  body .hg-row .hg-lang-wrap { grid-column: 1; grid-row: 1; }
  body .hg-row .hg-remove-btn { grid-column: 2; grid-row: 1; width: 44px; height: 44px; }
  body .hg-row .hg-url-input { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  body .hg-lang-input, body .hg-url-input, body .rl-input, body .rl-textarea, body .rl-select { font-size: 16px; } /* no iOS zoom */
}

/* ═══════════════════════════════════════════════
   BRAND COLOURS — from the brandup.digital logo
   Ink #1E2430 and orange #FCAE1E. Orange carries
   white text poorly (1.9:1), so filled buttons use
   orange with ink text (8.3:1) and orange text uses
   a deeper shade (#995C00, 5.4:1).
   ═══════════════════════════════════════════════ */
:root {
  --brand:        #FCAE1E;
  --brand-hover:  #F09E00;
  --brand-ink:    #1E2430;
  --accent:       #995C00;
  --accent-dark:  #7A4900;
  --accent-dim:   #FFF4DD;
  --accent-line:  #F5D08A;
  --text:         #1E2430;
  --text-2:       #4F5563;
  --muted:        #737988;
  --warn:         #B4540A;
}

/* Logo */
.rl-logo, .rl-footer-logo { color: var(--brand-ink); }
.rl-logo span, .rl-footer-logo span { color: var(--brand); }

/* Filled buttons, across the theme and both plugins */
body .rl-nav-cta, body .rl-btn, body .btn-primary, body .rl-generate-btn,
body .rlc-row button, body .rlc-paste button, body .rld-run button, body .rdy-cta a,
body .cg-generate, body .cg-btn.is-primary, body .cg-login-btn,
body .rl-pagination .page-numbers.current {
  background: var(--brand) !important; border-color: var(--brand) !important;
  color: var(--brand-ink) !important; font-weight: 600;
}
body .rl-nav-cta:hover, body .rl-btn:hover, body .btn-primary:hover, body .rl-generate-btn:hover:not(:disabled),
body .rlc-row button:hover:not(:disabled), body .rlc-paste button:hover:not(:disabled), body .rld-run button:hover:not(:disabled),
body .rdy-cta a:hover, body .cg-generate:hover:not(:disabled), body .cg-btn.is-primary:hover, body .cg-login-btn:hover:not(:disabled) {
  background: var(--brand-hover) !important; border-color: var(--brand-hover) !important;
  color: var(--brand-ink) !important; box-shadow: 0 6px 18px rgba(252,174,30,.28);
}
.rl-generate-btn .rl-spinner { border-color: rgba(30,36,48,.25); border-top-color: var(--brand-ink); }

/* Accents that read as brand rather than text */
.rl-home-hero h1 em { color: #C77A00; }
.rl-nav-links a.is-active::after { background: var(--brand); }
.rl-tcard:hover .rl-tcard-foot i { background: var(--brand); color: var(--brand-ink); }
.rl-tcard:hover { border-color: var(--accent-line); }
.rl-wait-bar i { background: var(--brand); }
.rl-search:focus-within, .rl-input:focus, .rl-select:focus, .rl-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-dim); }
:focus-visible { outline-color: var(--brand); }
body .rv-ua-chip:has(input:checked) { border-color: var(--brand); background: var(--accent-dim); color: var(--brand-ink); }
body .rv-ua-chip:has(input:checked) span::before {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%231E2430' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 9px no-repeat;
}
html[lang="tr"] .rl-lang [data-lang="tr"], html[lang="en"] .rl-lang [data-lang="en"] { color: var(--brand-ink); box-shadow: inset 0 -2px 0 var(--brand), 0 1px 2px rgba(20,24,33,.08); }
.rl-badge { background: var(--accent-dim); color: var(--accent); }
.rl-badge-dot { background: var(--brand); }

/* Plugin token sets follow the same palette */
body .rlc, body .cg-app, body .cg-login, body .cg-setup {
  --accent: #995C00; --accent-2: #FFF4DD; --accent-3: #F5D08A; --ink: #1E2430;
  --warn: #B4540A; --warn-bg: #FDEEE3;
}
body .rdy-ring .is-good { stroke: var(--ok); }
body .vis-bar-row.is-client .vis-bar-fill, body .vis-split-bar .is-own, body .vis-split-key .is-own { background: var(--brand); }

/* Language switch: links to the same page in the other language */
.rl-lang a {
  display: inline-block; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); padding: 5px 10px; border-radius: 6px; transition: .15s;
}
.rl-lang a:hover { color: var(--text); }
.rl-lang a[aria-current="true"] {
  background: var(--surface); color: var(--brand-ink);
  box-shadow: inset 0 -2px 0 var(--brand), 0 1px 2px rgba(20,24,33,.08);
}
@media (max-width: 760px) { .rl-lang a { padding: 5px 8px; font-size: 11px; } }

/* ═══════════════════════════════════════════════
   SIGN-IN — header link, team gate, /sign-in/
   ═══════════════════════════════════════════════ */
.rl-nav-sign {
  font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none;
  padding: 8px 4px; white-space: nowrap;
}
.rl-nav-sign:hover { color: var(--accent); }

.bud-gate {
  max-width: var(--tool-w); margin: 8px auto 40px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); gap: 32px; align-items: start;
}
.bud-gate-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim); border-radius: 99px; padding: 4px 12px; margin-bottom: 14px;
}
.bud-gate-badge::before {
  content: ''; width: 9px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M2 4V3a2.5 2.5 0 015 0v1h.5A1.5 1.5 0 019 5.5v3A1.5 1.5 0 017.5 10h-6A1.5 1.5 0 010 8.5v-3A1.5 1.5 0 011.5 4H2zm1 0h3V3a1.5 1.5 0 00-3 0v1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M2 4V3a2.5 2.5 0 015 0v1h.5A1.5 1.5 0 019 5.5v3A1.5 1.5 0 017.5 10h-6A1.5 1.5 0 010 8.5v-3A1.5 1.5 0 011.5 4H2zm1 0h3V3a1.5 1.5 0 00-3 0v1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bud-gate.is-signin .bud-gate-badge::before { display: none; }
.bud-gate-info h1 { font-size: clamp(30px, 4.2vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 14px; }
.bud-gate-lede { font-size: 16.5px; line-height: 1.62; color: var(--text-2); margin: 0 0 26px; }
.bud-gate-info h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.bud-gate-points { list-style: none; margin: 0 0 26px; padding: 0; }
.bud-gate-points li {
  position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--border);
  font-size: 15px; line-height: 1.55; color: var(--text);
}
.bud-gate-points li:last-child { border-bottom: 1px solid var(--border); }
.bud-gate-points li::before {
  content: ''; position: absolute; left: 2px; top: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%231E2430' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 8px no-repeat;
}
.bud-gate-points.is-links li::before { background: var(--surface2); }
.bud-gate-points.is-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.bud-gate-points.is-links a:hover { color: var(--accent); }
.bud-gate-why { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.bud-gate-why strong { font-size: 14.5px; }
.bud-gate-why p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.bud-gate-alt { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }
.bud-gate-alt a { color: var(--accent); font-weight: 500; }

/* The card */
.bud-gate-form { position: sticky; top: 88px; }
.bud-login {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 24px 22px; box-shadow: 0 1px 2px rgba(20,24,33,.04), 0 14px 34px rgba(20,24,33,.06);
}
.bud-login h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; }
.bud-login-field { display: block; margin-bottom: 14px; }
.bud-login-field span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.bud-login-field input {
  width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border-hover); background: var(--surface); color: var(--text); outline: none;
}
.bud-login-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-dim); }
.bud-login-remember { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); margin: 4px 0 16px; cursor: pointer; }
.bud-login-remember input { width: 18px; height: 18px; accent-color: var(--brand); }
.bud-login-error { background: #FBEDEB; color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.bud-login-btn { display: block; width: 100%; text-align: center; padding: 13px 18px; font-size: 15px; border: 0; cursor: pointer; }
.bud-login-btn:disabled { opacity: .6; cursor: wait; }
.bud-login-forgot { display: block; text-align: center; font-size: 13.5px; color: var(--text-2); margin-top: 14px; }
.bud-login-forgot:hover { color: var(--accent); }
.bud-login-note { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin: -6px 0 18px; }

@media (max-width: 860px) {
  .bud-gate { grid-template-columns: 1fr; gap: 22px; }
  .bud-gate-form { position: static; order: -1; }   /* the form first on a phone */
  .bud-gate.is-signin .bud-gate-form { order: 0; }
}
@media (max-width: 480px) {
  .rl-nav-sign { font-size: 13px; }
}
