/*
 * Inter variable font — self-hosted (no external CDN fetch).
 *
 * Previously loaded via Google Fonts @import, which was blocked by the
 * enforced CSP (style-src/font-src, W0.5) and leaked visitor IPs to
 * Google under DSGVO.  Now served from assets/fonts/InterVariable.woff2
 * (Inter 4.0 official release, rsms/inter).
 *
 * Two family-name declarations so both Tailwind's 'Inter var' config
 * (tailwind.config.js fontFamily.sans) and any direct 'Inter' usage
 * resolve to the same variable-font file.
 *
 * asset-url() is a Sprockets CSS helper that injects the fingerprinted
 * asset path at precompile time — no external fetch, no CSP widening.
 *
 * font-display: swap — shows fallback immediately while WOFF2 loads.
 */
@font-face {
  font-family: 'Inter var';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: asset-url(/assets/InterVariable-4775f4a2a7259007a92b8d2af86cbec577f7353bcb0e68ee89330adb8ad6d5e6.woff2) format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: asset-url(/assets/InterVariable-4775f4a2a7259007a92b8d2af86cbec577f7353bcb0e68ee89330adb8ad6d5e6.woff2) format('woff2');
}
@tailwind base;
@tailwind components;

.pagination {
  @apply flex justify-center;
  @apply my-4 py-4;
}

.pagination * {
  @apply px-3 py-2 mx-2;
  @apply text-indigo-600 no-underline bg-white;
}

.pagination a:hover {
  @apply font-semibold text-indigo-400;
}

/* Knowledge base post content styling */
.prose {
  color: rgb(55 65 81);
}

.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.prose h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgb(17 24 39);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: rgb(17 24 39);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(17 24 39);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(17 24 39);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(17 24 39);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose h6 {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(17 24 39);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose ul {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.prose ul > li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose ol {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  list-style-type: decimal;
}

.prose ol > li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose li {
  line-height: 1.75;
}

.prose li > p {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.prose code {
  padding: 0.25rem 0.5rem;
  background-color: rgb(243 244 246);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: rgb(31 41 55);
}

.prose pre {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgb(17 24 39);
  border-radius: 0.5rem;
  overflow-x: auto;
}

.prose pre code {
  background-color: transparent;
  color: rgb(243 244 246);
  padding: 0;
  font-size: 0.875rem;
}

.prose .highlight {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.prose .highlight pre {
  padding: 1rem;
  background-color: rgb(17 24 39);
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 0;
  margin-top: 0;
}

.prose .highlight code {
  background-color: transparent;
  color: rgb(243 244 246);
  padding: 0;
  font-size: 0.875rem;
}

.prose a {
  color: rgb(37 99 235);
  font-weight: 500;
  text-decoration: none;
}

.prose a:hover {
  color: rgb(30 64 175);
  text-decoration: underline;
}

.prose strong {
  font-weight: 700;
  color: rgb(17 24 39);
}

.prose em {
  font-style: italic;
}

.prose blockquote {
  border-left: 4px solid rgb(99 102 241);
  padding-left: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: rgb(55 65 81);
}

.prose hr {
  margin-top: 3rem;
  margin-bottom: 3rem;
  border-color: rgb(209 213 219);
}

.prose table {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.prose th {
  background-color: rgb(243 244 246);
  border: 1px solid rgb(209 213 219);
  padding: 0.5rem 1rem;
  text-align: left;
  font-weight: 600;
}

.prose td {
  border: 1px solid rgb(209 213 219);
  padding: 0.5rem 1rem;
}

@tailwind utilities;
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
  color: #5e5d83;
  font-style: italic;
}
.highlight .cm {
  color: #5e5d83;
  font-style: italic;
}
.highlight .c1 {
  color: #5e5d83;
  font-style: italic;
}
.highlight .cp {
  color: #465457;
  font-weight: bold;
}
.highlight .cs {
  color: #465457;
  font-weight: bold;
  font-style: italic;
}
.highlight .err {
  color: #f8f8f2;
  background-color: #403d3d;
}
.highlight .gi {
  color: #a6e22e;
}
.highlight .gd {
  color: #f92672;
}
.highlight .ge {
  font-style: italic;
}
.highlight .ges {
  font-weight: bold;
  font-style: italic;
}
.highlight .gr {
  color: #f92672;
}
.highlight .gt {
  color: #f92672;
}
.highlight .gh {
  color: #403d3d;
}
.highlight .go {
  color: #403d3d;
}
.highlight .gp {
  color: #66d9ef;
}
.highlight .gs {
  font-weight: bold;
}
.highlight .gu {
  color: #465457;
}
.highlight .k, .highlight .kv {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kc {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kd {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kp {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kr {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kt {
  color: #66d9ef;
  font-weight: bold;
}
.highlight .kn {
  color: #f92672;
  font-weight: bold;
}
.highlight .ow {
  color: #f92672;
  font-weight: bold;
}
.highlight .o {
  color: #f92672;
  font-weight: bold;
}
.highlight .mf {
  color: #af87ff;
}
.highlight .mh {
  color: #af87ff;
}
.highlight .il {
  color: #af87ff;
}
.highlight .mi {
  color: #af87ff;
}
.highlight .mo {
  color: #af87ff;
}
.highlight .m, .highlight .mb, .highlight .mx {
  color: #af87ff;
}
.highlight .se {
  color: #af87ff;
}
.highlight .sb {
  color: #d7d787;
}
.highlight .sc {
  color: #d7d787;
}
.highlight .sd {
  color: #d7d787;
}
.highlight .s2 {
  color: #d7d787;
}
.highlight .sh {
  color: #d7d787;
}
.highlight .si {
  color: #d7d787;
}
.highlight .sx {
  color: #d7d787;
}
.highlight .sr {
  color: #d7d787;
}
.highlight .s1 {
  color: #d7d787;
}
.highlight .ss {
  color: #d7d787;
}
.highlight .s, .highlight .sa, .highlight .dl {
  color: #d7d787;
}
.highlight .na {
  color: #a6e22e;
}
.highlight .nc {
  color: #a6e22e;
  font-weight: bold;
}
.highlight .nd {
  color: #a6e22e;
  font-weight: bold;
}
.highlight .ne {
  color: #a6e22e;
  font-weight: bold;
}
.highlight .nf, .highlight .fm {
  color: #a6e22e;
  font-weight: bold;
}
.highlight .no {
  color: #66d9ef;
}
.highlight .bp {
  color: #f8f8f2;
}
.highlight .nb {
  color: #f8f8f2;
}
.highlight .ni {
  color: #f8f8f2;
}
.highlight .nn {
  color: #f8f8f2;
}
.highlight .vc {
  color: #f8f8f2;
}
.highlight .vg {
  color: #f8f8f2;
}
.highlight .vi {
  color: #f8f8f2;
}
.highlight .nv, .highlight .vm {
  color: #f8f8f2;
}
.highlight .w {
  color: #f8f8f2;
}
.highlight .nl {
  color: #f8f8f2;
  font-weight: bold;
}
.highlight .nt {
  color: #f92672;
}
.highlight {
  color: #f8f8f2;
  background-color: #1b1d1e;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 * Explicit list instead of require_tree (the public layout is render-blocking on this file).
 * NOT bundled here, linked only where used:
 *   admin.css (+ easymde.min.css via @import) -> Administrate layout (Administrate::Engine.add_stylesheet)
 *   cookieconsent.css, price-calculator.style.css -> no consumer in views/JS; standalone assets
 *




 */

@media (max-width: 640px) {
  #breadcrumb a {
    text-overflow: ellipsis;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
  }
}
