/* Inter, self-hosted. Removes two third-party connections from the
   critical path and stops Google Fonts seeing our visitors. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =========================================================
   DESIGN TOKENS — Professional minimal system
   ========================================================= */
:root {
  /* Background */
  --bg-color:     #f5f5f7;
  --bg-deeper:    #ebebed;

  /* Surface */
  --card-bg:      #ffffff;
  --input-bg:     #f5f5f7;

  /* Typography */
  --text-main:    #0d0d0d;
  --text-sub:     #3a3a3c;
  --text-muted:   #6e6e73;

  /* Accent — refined indigo replacing childish bright purple */
  --primary:         #1d3557;
  --primary-hover:   #112233;
  --accent:          #457b9d;
  --accent-light:    #e8f1f6;

  /* Borders */
  --border:       #dcdcde;
  --border-strong:#b8b8bc;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg:    0 12px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);

  /* Focus */
  --focus-ring:   rgba(29, 53, 87, 0.15);

  /* Semantic status colors — used by inline styles in tool/blog content */
  --success:        #047857;
  --danger:         #dc2626;
  --danger-bg:      #fee2e2;
  --danger-strong:  #991b1b;
  --warning:        #b45309;
  --violet:         #6d28d9;
  --on-primary:     #ffffff;

  /* Radius */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
}

[data-theme="dark"] {
  --bg-color:     #0f0f10;
  --bg-deeper:    #1a1a1c;

  --card-bg:      #1c1c1e;
  --input-bg:     #242426;

  --text-main:    #f2f2f7;
  --text-sub:     #ebebf0cc;
  --text-muted:   #98989f;

  --primary:         #94b8d5;
  --primary-hover:   #c0d8e8;
  --accent:          #6fafd0;
  --accent-light:    #1c2e3a;

  --border:       #2c2c2e;
  --border-strong:#3a3a3c;

  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 12px 40px rgba(0, 0, 0, 0.55);

  --focus-ring:   rgba(148, 184, 213, 0.2);

  /* Semantic status colors, lifted for contrast on dark surfaces */
  --success:        #34d399;
  --danger:         #f87171;
  --danger-bg:      rgba(248, 113, 113, 0.14);
  --danger-strong:  #fca5a5;
  --warning:        #fbbf24;
  --violet:         #a78bfa;
  --on-primary:     #ffffff;
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   HEADER
   ========================================================= */
header {
  background-color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] header {
  background-color: rgba(15, 15, 16, 0.88);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.logo span {
  color: var(--accent);
}

nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--text-main);
}

/* =========================================================
   MAIN
   ========================================================= */
main {
  padding: 3rem 0 5rem;
  min-height: 70vh;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 0;
  color: var(--text-main);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  border: none;
  padding: 0;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero {
  margin-bottom: 3rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* =========================================================
   TOOL CONTAINER
   ========================================================= */
.tool {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.tool-controls label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-sub);
  letter-spacing: 0.01em;
}

.tool-controls .inline-label {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.inline-label input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  margin-bottom: 0;
  cursor: pointer;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.975rem;
  background-color: var(--input-bg);
  color: var(--text-main);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
  background-color: var(--card-bg);
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
button, .btn {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  letter-spacing: 0.01em;
}

button:hover, .btn:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

button:active, .btn:active {
  transform: translateY(1px);
}

button.secondary, .btn.secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}

button.secondary:hover, .btn.secondary:hover {
  background-color: var(--input-bg);
  border-color: var(--text-muted);
}

/* =========================================================
   TOOL OUTPUT
   ========================================================= */
.tool-output textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  background-color: var(--bg-deeper);
  color: var(--text-main);
  border-color: var(--border);
}

/* =========================================================
   ADVERTISEMENTS
   ========================================================= */
.ad {
  min-height: 90px;
  background-color: transparent;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-nav a {
  margin: 0 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--text-main);
}

/* =========================================================
   PROSE SECTIONS
   ========================================================= */
section p {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.75;
}

code {
  background-color: var(--bg-deeper);
  color: var(--text-main);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  border: 1px solid var(--border);
}

/* =========================================================
   CARD GRIDS
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.top-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 850px) {
  .top-3-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* =========================================================
   TOOL CARDS
   ========================================================= */
.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--accent-light);
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.card-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.card-body {
  padding: 1rem 1.1rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tool-card h3 {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 650;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.tool-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* =========================================================
   BLOG CARD EXTRAS
   ========================================================= */
.blog-card .card-body {
  padding-bottom: 1.1rem;
}

.blog-card .btn {
  margin-top: auto;
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
}

/* =========================================================
   RELATED TOOL LINKS
   ========================================================= */
.related ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.related ul li {
  margin: 0;
}

.related ul li a {
  display: inline-block;
  background-color: var(--input-bg);
  color: var(--text-sub);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.related ul li a:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   MISC UTILITIES
   ========================================================= */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background-color: var(--accent-light);
  color: var(--primary);
  letter-spacing: 0.03em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .tool {
    padding: 1.75rem 1.25rem;
  }
  .container {
    padding: 0 1rem;
  }
  nav a {
    margin-left: 0.9rem;
    font-size: 0.85rem;
  }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   HEADER NAV — six categories plus blog needs more room than
   the 820px reading column
   ========================================================= */
header .container {
  max-width: 1140px;
}

.nav-wrap {
  gap: 0.75rem;
}

/* The nav scrolls sideways when it runs out of room; the theme toggle
   sits outside that scroll container so it is always reachable. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.site-nav a {
  margin-left: 0;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--input-bg);
}

.site-nav a[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
  background: var(--accent-light);
}

.theme-toggle {
  flex: 0 0 auto;
  background: none;
  border: none;
  box-shadow: none;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--input-bg);
}

@media (max-width: 900px) {
  .nav-wrap {
    gap: 0.75rem;
  }
  .site-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav a {
    font-size: 0.85rem;
    padding: 0.35rem 0.45rem;
  }
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1.25rem 0 0.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--text-sub);
  font-weight: 500;
}

/* =========================================================
   HOME / HUB SECTIONS
   ========================================================= */
.home-section {
  margin: 3rem 0;
}

.section-title {
  font-size: 1.35rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.category-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 2.25rem 0 1rem;
}

.category-label a {
  color: inherit;
  text-decoration: none;
}

.category-label a:hover {
  color: var(--primary);
}

.prose-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.prose-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.prose-section h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  text-align: left;
}

footer .container {
  max-width: 1140px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.6rem;
  max-width: 34ch;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================================================
   BLOG POST META
   ========================================================= */
.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* Sticky header needs clearance above the first heading */
main.container > .hero:first-child,
main.container > h1:first-child {
  margin-top: 1.75rem;
}

/* =========================================================
   TOOL ACTION BAR  (share / copy, doc 03 section 0.3)
   ========================================================= */
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.tool-actions button {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.tool-actions-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  /* Reserved height so a message appearing never shifts the layout. */
  min-height: 1.25rem;
  min-width: 9rem;
  display: inline-flex;
  align-items: center;
}

.tool-actions-msg.is-error {
  color: var(--text-muted);
}

/* =========================================================
   CLUSTER LINKS  (doc 01 Faza C)
   ========================================================= */
.cluster {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cluster h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.cluster > p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cluster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.cluster-list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cluster-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.cluster-footer {
  margin-top: 3.5rem;
}

/* =========================================================
   EMBED MODE  (?embed=1 inside a third-party iframe)
   Strips the site chrome so only the tool is shown.
   ========================================================= */
[data-embed] header,
[data-embed] footer,
[data-embed] .breadcrumb,
[data-embed] .skip-link,
[data-embed] .how,
[data-embed] .formula,
[data-embed] .examples,
[data-embed] .faq,
[data-embed] .related,
[data-embed] .cluster,
[data-embed] .author {
  display: none !important;
}

[data-embed] body {
  background: transparent;
}

[data-embed] main.container {
  max-width: 100%;
  padding: 1rem;
  margin: 0;
}

[data-embed] h1 {
  font-size: 1.4rem;
  margin-top: 0;
}

/* =========================================================
   SITE SEARCH  (doc 03 section 0.2 header spec)
   ========================================================= */
.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 13, 13, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8vh 1rem 1rem;
}

.search-dialog[hidden] {
  display: none;
}

.search-panel {
  width: 100%;
  max-width: 620px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.search-bar input {
  flex: 1;
  margin: 0;
  border: none;
  background: transparent;
  padding: 0.35rem 0;
  font-size: 1.05rem;
}

.search-bar input:focus {
  outline: none;
  box-shadow: none;
}

.search-bar button {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  flex-shrink: 0;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  max-height: 58vh;
  overflow-y: auto;
}

.search-results a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
}

.search-results li[aria-selected="true"] a,
.search-results a:hover {
  background: var(--accent-light);
}

.search-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.search-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.search-text strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.search-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-kind {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.1rem 0.5rem;
  flex-shrink: 0;
}

.search-empty {
  padding: 1.25rem;
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

[data-embed] .search-dialog {
  display: none !important;
}

/* =========================================================
   AD SLOTS  (inert until site.adsenseId is filled in)
   ========================================================= */
.ad {
  display: block;
  margin: 2rem 0;
  text-align: center;
  /* Space reserved up front so a filling unit cannot shift the layout. */
  min-height: 280px;
}

.ad-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

[data-embed] .ad {
  display: none !important;
}


.cookie-banner{

position:fixed;

left:0;
right:0;
bottom:24px;

display:flex;
justify-content:center;

padding:0 20px;

z-index:999999;

animation:cookieShow .3s ease;

}

.cookie-box{

width:100%;
max-width:640px;

background:#fff;

border-radius:16px;

padding:22px;

box-shadow:0 12px 35px rgba(0,0,0,.18);

border:1px solid #e6e6e6;

display:flex;
flex-direction:column;
align-items:center;
gap:18px;

}

.cookie-text{

margin:0;

text-align:center;

font-size:15px;

line-height:1.6;

color:#555;

}

.cookie-buttons{

display:flex;

gap:12px;

}

.cookie-btn{

padding:11px 22px;

border-radius:10px;

border:none;

cursor:pointer;

font-size:14px;

font-weight:600;

transition:.2s;

}

.cookie-btn.primary{

background:#111;

color:#fff;

}

.cookie-btn.primary:hover{

background:#000;

}

.cookie-btn.secondary{

background:#f2f2f2;

color:#222;

}

.cookie-btn.secondary:hover{

background:#e7e7e7;

}

@keyframes cookieShow{

from{

opacity:0;

transform:translateY(25px);

}

to{

opacity:1;

transform:translateY(0);

}

}

@media(max-width:600px){

.cookie-buttons{

flex-direction:column;

width:100%;

}

.cookie-btn{

width:100%;

}

}
