:root{
  --rr-primary:#2563eb;
  --rr-accent:#f97316;
  --rr-bg:#ffffff;
  --rr-soft:#f8fafc;
  --rr-text:#111827;
  --rr-muted:#6b7280;
  --rr-border:#e5e7eb;
  --rr-shadow:0 12px 34px rgba(15,23,42,.08);
}

*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--rr-bg);color:var(--rr-text);line-height:1.6}
img{max-width:100%;height:auto}
a{color:var(--rr-primary)}

h1{
  width:max-content;
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rr-container{width:min(1120px,92vw);margin:0 auto}
.rr-main{padding:36px 0}
.rr-article{max-width:1120px}
.rr-article h1{margin:0 auto 18px;font-size:clamp(1.8rem,4vw,3.5rem);line-height:1.1;text-align:center}
.rr-article h2{margin-top:34px}

.rr-site-header{background:#fff;border-bottom:1px solid var(--rr-border)}
.rr-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}
.rr-logo{display:inline-flex;align-items:center;gap:14px;color:var(--rr-text);font-size:1.35rem;font-weight:800;line-height:1.1;text-decoration:none}
.rr-logo span{white-space:nowrap}
.rr-header-logo-img{width:140px;height:140px;object-fit:contain;border-radius:10px}
.rr-nav{display:flex;flex-wrap:wrap;gap:16px}
.rr-nav a{color:var(--rr-text);font-weight:700;text-decoration:none}

.rr-site-banner{background:var(--rr-soft);border-bottom:1px solid var(--rr-border);padding:18px 0}
.rr-site-banner img{display:block;width:100%;max-height:420px;object-fit:cover;border:1px solid var(--rr-border);border-radius:20px;box-shadow:var(--rr-shadow)}

.rr-home-hero{padding:44px 0;text-align:center;background:var(--rr-hero-bg,#f9fafb)}
.rr-home-hero h1{margin:0 auto 12px;font-size:clamp(1.8rem,4vw,3.4rem);line-height:1.05}
.rr-home-hero p{display:block;width:max-content;max-width:100%;margin:0 auto 22px;color:var(--rr-muted);font-size:clamp(.82rem,2vw,1.15rem);line-height:1.35;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rr-home-hero .rr-button{display:inline-block}

.rr-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px;color:var(--rr-muted);font-size:.92rem}
.rr-breadcrumbs a{color:var(--rr-muted);text-decoration:none}
.rr-breadcrumbs a:hover{color:var(--rr-primary);text-decoration:underline}
.rr-breadcrumbs span:last-child{color:var(--rr-text);font-weight:700}
.rr-updated-date{margin:0 0 24px;color:var(--rr-muted);font-size:.9rem}

.rr-featured-image{margin:0 auto 28px;text-align:center}
.rr-featured-image img{display:block;width:auto;max-width:min(100%,520px);max-height:420px;margin:0 auto;object-fit:contain;background:#fff;border:1px solid var(--rr-border);border-radius:18px;box-shadow:var(--rr-shadow)}

.rr-category-intro{max-width:820px;margin:0 auto 28px;text-align:center;color:var(--rr-muted);font-size:1.05rem}
.rr-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:28px;text-align:left}
.rr-category-card{display:flex;flex-direction:column;gap:10px;padding:18px;background:#fff;border:1px solid var(--rr-border);border-radius:18px;box-shadow:var(--rr-shadow)}
.rr-category-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;border:1px solid var(--rr-border)}
.rr-category-card h2{margin:0;font-size:1.15rem;line-height:1.25}
.rr-category-card h2 a{color:var(--rr-text);text-decoration:none}
.rr-category-card h2 a:hover{color:var(--rr-primary)}
.rr-category-card p{margin:0;color:var(--rr-muted)}
.rr-read-more{margin-top:auto;font-weight:800;text-decoration:none}

.rr-sponsored-card{display:grid;grid-template-columns:160px 1fr;gap:16px;align-items:center;margin:18px 0;padding:14px;color:var(--rr-text);text-align:left;text-decoration:none;background:#fff;border:1px solid var(--rr-border);border-radius:16px}
.rr-sponsored-card img{width:100%;border-radius:12px}
.rr-sponsored-label{display:inline-block;padding:3px 8px;color:#92400e;background:#fef3c7;border-radius:999px;font-size:.78rem;font-weight:800}
.rr-sponsored-button{display:inline-block;margin-top:8px;padding:8px 12px;color:#fff;background:var(--rr-primary);border-radius:9px;font-weight:700}

.rr-form-box{padding:18px;border:1px solid var(--rr-border);border-radius:16px;text-align:left}
.rr-form-box input,.rr-form-box textarea,.rr-form-box select{width:100%;margin:6px 0 12px;padding:12px;border:1px solid var(--rr-border);border-radius:10px}
.rr-button{padding:11px 16px;color:#fff;background:var(--rr-primary);border:0;border-radius:10px;font-weight:700;cursor:pointer;text-decoration:none}

.rr-site-footer{padding:28px 0;color:var(--rr-muted);border-top:1px solid var(--rr-border)}

@media(max-width:900px){
  .rr-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  .rr-header-inner{align-items:flex-start;flex-direction:column}
  .rr-logo{gap:10px;font-size:1.12rem}
  .rr-header-logo-img{width:84px;height:84px}
  .rr-site-banner{padding:12px 0}
  .rr-site-banner img{max-height:280px;border-radius:14px}
  .rr-article h1,.rr-home-hero h1{font-size:clamp(1.25rem,6vw,2rem)}
  .rr-home-hero p{white-space:normal}
  .rr-featured-image img{max-width:100%;max-height:320px}
  .rr-category-grid{grid-template-columns:1fr}
  .rr-sponsored-card{grid-template-columns:1fr}
}

.rr-faqs{max-width:860px;margin:42px auto 0;text-align:left}
.rr-faqs h2{text-align:center}
.rr-faq{margin:16px 0;padding:18px;background:#fff;border:1px solid var(--rr-border);border-radius:16px;box-shadow:var(--rr-shadow)}
.rr-faq h3{margin:0 0 8px;font-size:1.08rem;line-height:1.3}
.rr-faq p:last-child{margin-bottom:0}

/* Markdown content helpers */
.rr-article .rr-table-wrap{width:100%;overflow-x:auto;margin:24px 0}
.rr-article table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--rr-border);border-radius:14px;overflow:hidden}
.rr-article th,.rr-article td{padding:12px;border:1px solid var(--rr-border);text-align:left;vertical-align:top}
.rr-article th{background:#f8fafc;font-weight:800}
.rr-article blockquote{margin:24px 0;padding:14px 18px;background:#f8fafc;border-left:4px solid var(--rr-primary);color:#334155}
.rr-article code{padding:2px 5px;background:#f1f5f9;border-radius:5px;font-family:Consolas,Monaco,monospace;font-size:.92em}
.rr-article pre{overflow-x:auto;margin:24px 0;padding:16px;background:#0f172a;color:#e5e7eb;border-radius:14px}
.rr-article pre code{padding:0;background:transparent;color:inherit}
.rr-article hr{margin:28px 0;border:0;border-top:1px solid var(--rr-border)}

/* Responsive Markdown tables */
.rr-article .rr-table-wrap{
  display:block;
  width:100%;
  max-width:100%;
  margin:24px auto;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.rr-article .rr-table-wrap table{
  width:100%;
  max-width:100%;
  min-width:640px;
  table-layout:auto;
}

.rr-article .rr-table-wrap th,
.rr-article .rr-table-wrap td{
  white-space:normal;
  word-break:normal;
  overflow-wrap:anywhere;
  font-size:.95rem;
  line-height:1.45;
}

.rr-article .rr-table-wrap th{
  white-space:nowrap;
}

@media(max-width:700px){
  .rr-article .rr-table-wrap{
    margin-left:calc(-1 * min(4vw, 16px));
    margin-right:calc(-1 * min(4vw, 16px));
    padding:0 min(4vw, 16px);
  }

  .rr-article .rr-table-wrap table{
    min-width:560px;
  }

  .rr-article .rr-table-wrap th,
  .rr-article .rr-table-wrap td{
    padding:10px;
    font-size:.88rem;
  }
}

/* Category SEO landing pages */
.rr-category-featured-image{
  margin:0 auto 24px;
  text-align:center;
}

.rr-category-featured-image img{
  display:block;
  width:100%;
  max-height:380px;
  object-fit:cover;
  border:1px solid var(--rr-border);
  border-radius:20px;
  box-shadow:var(--rr-shadow);
}

.rr-category-body{
  max-width:860px;
  margin:42px auto 0;
  padding-top:24px;
  border-top:1px solid var(--rr-border);
}

.rr-category-faqs{
  padding-top:24px;
  border-top:1px solid var(--rr-border);
}

/* Article content images */
.rr-content-image{
  margin:24px auto;
  max-width:100%;
}

.rr-content-image img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid var(--rr-border);
  border-radius:18px;
  box-shadow:var(--rr-shadow);
}

.rr-content-image figcaption{
  margin-top:8px;
  color:var(--rr-muted);
  font-size:.92rem;
  text-align:center;
}

.rr-content-image-center{
  max-width:620px;
  clear:both;
  text-align:center;
}

.rr-content-image-full{
  width:100%;
  clear:both;
}

.rr-content-image-left{
  float:left;
  width:min(42%,360px);
  margin:8px 24px 18px 0;
}

.rr-content-image-right{
  float:right;
  width:min(42%,360px);
  margin:8px 0 18px 24px;
}

.rr-article::after{
  content:"";
  display:block;
  clear:both;
}

@media(max-width:700px){
  .rr-content-image-left,
  .rr-content-image-right{
    float:none;
    width:100%;
    max-width:620px;
    margin:24px auto;
  }
}
