/* ==========================================================================
   Webtoget — article / guide styles (artikler/ + guider).
   Externalised from the original per-article inline <style> so generated
   guides stay DRY and use compiled Tailwind instead of the CDN. Self-contained
   (includes nav/button/menu chrome) so article pages link THIS instead of
   site.css. Pairs with theme.css (variables + theming) and tailwind.css.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-overlay); border-radius: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); }

.noise::before {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
}

/* --- chrome (nav / buttons / menu) ------------------------------------- */
.nav-glass {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-faint);
}
.magnetic-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: 1rem 2rem;
  background: var(--accent); color: #fff; font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: .875rem; border-radius: 9999px; border: none; cursor: pointer;
  transition: background .3s, transform .3s, box-shadow .3s; text-decoration: none;
}
.magnetic-btn:hover { background: var(--accent-hover); transform: scale(1.01); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 25%, transparent); }
.nav-link { position: relative; color: var(--text-muted); text-decoration: none; font-size: .875rem; font-weight: 500; letter-spacing: .025em; transition: color .2s; cursor: pointer; }
.nav-link:hover { color: var(--text); }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width .3s cubic-bezier(.16,1,.3,1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text); }
.grid-bg { background-image: linear-gradient(var(--border-faint) 1px, transparent 1px), linear-gradient(90deg, var(--border-faint) 1px, transparent 1px); background-size: 60px 60px; }
.mobile-menu { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(24px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text); text-decoration: none; }
.mobile-menu a:hover { color: var(--accent); }

/* --- article header ---------------------------------------------------- */
.breadcrumb { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--text-faint); font-weight: 500; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .5; }
.article-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 999px; color: var(--accent-hover); font-family: 'Syne', sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .02em; margin-bottom: 1.5rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .825rem; color: var(--text-muted); margin-top: 1.5rem; }
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }
.article-updated { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; background: color-mix(in srgb, var(--success-strong) 8%, transparent); border: 1px solid color-mix(in srgb, var(--success-strong) 18%, transparent); border-radius: 999px; color: var(--success); font-size: .72rem; font-weight: 600; }
.article-updated svg { width: 11px; height: 11px; }

/* --- article body ------------------------------------------------------ */
.article-content { max-width: 760px; margin: 0 auto; padding: 0 0 3rem; }
.article-content > p { font-size: 1.0625rem; line-height: 1.75; color: var(--text); margin-bottom: 1.25rem; }
.article-content > p strong { color: var(--text); font-weight: 600; }
.article-content h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.75rem; line-height: 1.25; color: var(--text); margin-top: 3rem; margin-bottom: 1rem; letter-spacing: -.015em; }
@media (min-width: 640px) { .article-content h2 { font-size: 2.125rem; } }
.article-content h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--text); margin-top: 2rem; margin-bottom: .75rem; }
@media (min-width: 640px) { .article-content h3 { font-size: 1.4rem; } }
.article-content ul, .article-content ol { margin: 1.25rem 0 1.25rem 1.25rem; color: var(--text); }
.article-content li { font-size: 1.0625rem; line-height: 1.75; margin-bottom: .6rem; }
.article-content li strong { color: var(--text); }
.article-content a { color: var(--accent-hover); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-hover) 35%, transparent); transition: color .2s, border-color .2s; }
.article-content a:hover { border-bottom-color: var(--accent-hover); }

.price-table-wrapper { margin: 1.75rem -.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: .75rem; }
.price-table { width: 100%; min-width: 540px; border-collapse: separate; border-spacing: 0; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: .75rem; overflow: hidden; }
.price-table thead { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.price-table th { padding: .95rem 1.1rem; text-align: left; font-family: 'Syne', sans-serif; font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--text); border-bottom: 1px solid var(--border); white-space: nowrap; }
.price-table td { padding: .95rem 1.1rem; font-size: .94rem; color: var(--text); line-height: 1.5; border-bottom: 1px solid var(--border-faint); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--border-faint); }
.price-table td.price-cell { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--accent-hover); white-space: nowrap; }

.num-section { position: relative; padding-left: 3.5rem; margin-top: 3rem; }
.num-marker { position: absolute; left: 0; top: .2rem; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), rgba(131,130,255,.08)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: .7rem; font-family: 'Syne', sans-serif; font-weight: 700; font-size: .95rem; color: var(--accent-hover); }
.num-section h2 { margin-top: 0 !important; padding-top: .1rem; }

.pro-tip { margin: 2rem 0; padding: 1.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent) 0%, color-mix(in srgb, var(--accent) 2%, transparent) 100%); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: .875rem; position: relative; overflow: hidden; }
.pro-tip::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-hover)); }
.pro-tip-header { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.pro-tip-icon { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pro-tip-icon svg { width: 14px; height: 14px; color: var(--accent-hover); }
.pro-tip-label { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .02em; color: var(--accent-hover); }
.pro-tip-body { font-size: 1rem; line-height: 1.65; color: var(--text); }
.pro-tip-body strong { color: var(--text); }

.answer-box { margin: 1.5rem 0 2.5rem; padding: 1.5rem 1.75rem; background: linear-gradient(135deg, color-mix(in srgb, var(--success-strong) 6%, transparent) 0%, color-mix(in srgb, var(--success-strong) 2%, transparent) 100%); border: 1px solid color-mix(in srgb, var(--success-strong) 18%, transparent); border-radius: .875rem; position: relative; }
.answer-box::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--success-strong); }
.answer-box-label { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .02em; color: var(--success); margin-bottom: .65rem; display: block; }
.answer-box p { font-size: 1.0625rem; line-height: 1.7; color: var(--text); margin: 0 !important; }
.answer-box strong { color: var(--text); font-weight: 600; }

.toc { margin: 2.5rem 0; padding: 1.25rem 1.5rem; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: .875rem; }
.toc-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .75rem; letter-spacing: .02em; color: var(--text-muted); margin-bottom: .85rem; }
.toc ol { margin: 0; padding-left: 1.1rem; counter-reset: toc-counter; list-style: none; }
.toc ol li { counter-increment: toc-counter; position: relative; margin-bottom: .55rem; padding-left: 1.5rem; font-size: .93rem; line-height: 1.5; }
.toc ol li::before { content: counter(toc-counter, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: 'Syne', sans-serif; font-weight: 700; font-size: .72rem; color: var(--accent); }
.toc a { color: var(--text); text-decoration: none; border: none; transition: color .2s; }
.toc a:hover { color: var(--accent-hover); }

.faq-section { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border-faint); }
.faq-section .faq-item { padding: 1.25rem 1.5rem; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: .875rem; margin-bottom: .85rem; transition: border-color .2s; }
.faq-section .faq-item:hover { border-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.faq-section .faq-item h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: .5rem; margin-top: 0; }
.faq-section .faq-item p { font-size: .95rem; line-height: 1.65; color: var(--text-muted); margin: 0; }

.related-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--bg-raised); border: 1px solid var(--border-faint); border-radius: .75rem; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.related-card:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); transform: translateY(-2px); }
.related-card-text { font-family: 'Syne', sans-serif; font-weight: 600; font-size: .93rem; color: var(--text); line-height: 1.4; }
.related-card-arrow { flex-shrink: 0; color: var(--accent-hover); }
.related-card-arrow svg { width: 16px; height: 16px; }

.article-disclaimer { margin-top: 2.5rem; padding: 1rem 1.25rem; font-size: .8125rem; color: var(--text-faint); line-height: 1.6; background: var(--border-faint); border-left: 2px solid var(--border); border-radius: 0 .5rem .5rem 0; }
