﻿:root {
  --bg: #fdfbf8;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --brand: #a4491a;
  --brand-soft: #fff4ed;
  --accent: #14532d;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: "Cairo", "Source Sans 3", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #fff7ef 0%, var(--bg) 45%);
  line-height: 1.7;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: "Cairo", Arial, sans-serif;
  line-height: 1.3;
  color: #111827;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1140px, 92%);
  max-width: 100%;
  margin: 0 auto;
  min-width: 0;
}
img, svg, video, canvas, iframe {
  max-width: 100%;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  transform: translateY(-200%);
  z-index: 999;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: clip;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  height: 36px;
  width: 36px;
  display: block;
  flex: 0 0 auto;
}
.brand-text {
  font-family: "Cairo", "Merriweather", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.nav-links a {
  color: #1f2937;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--brand-soft);
  text-decoration: none;
}

.hero { padding: 56px 0 30px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.hero-grid > * { min-width: 0; }
.hero-box,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-box { padding: 24px; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 16px; }
.hero p { margin: 0 0 16px; color: var(--muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
}
.button.alt { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.button:hover { text-decoration: none; opacity: 0.92; }

.tool-card { padding: 24px; }
.tool-stack {
  display: grid;
  gap: 14px;
}
.mini-tool {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: block; font-weight: 600; margin: 0 0 4px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #fdba74;
  border-color: #fb923c;
}

.notice {
  margin-top: 14px;
  padding: 12px;
  background: #f0fdf4;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.section { padding: 30px 0; }
.section h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 12px; }
.subtle { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card, .hero-box, .panel, .mini-tool, .topbar, .site-footer, .nav-links { min-width: 0; }

h1, h2, h3, h4, p, a, li, span, strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.card h3, .card h2 { margin-top: 0; }
.ad-slot {
  margin: 20px auto 0;
  padding: 18px;
  border: 1px dashed #d6a57d;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8f1 0%, #fffdfb 100%);
  text-align: center;
  display: grid;
  place-content: center;
  gap: 8px;
  width: min(100%, 970px);
}
.ad-slot-wide {
  min-height: 250px;
}
.ad-slot-leaderboard {
  min-height: 90px;
  width: min(100%, 728px);
}
.ad-slot-rectangle {
  width: min(100%, 300px);
  min-height: 250px;
}
.ad-slot-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1e6;
  color: #9a3412;
  font-size: 0.85rem;
  font-weight: 700;
}
.ad-slot p {
  margin: 0;
  color: var(--muted);
}
.essential-prose {
  max-width: 920px;
  margin: 0 auto;
}
.essential-prose h2 {
  text-align: center;
  margin: 0 0 18px;
}
.essential-prose p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.author-link {
  font-weight: 700;
}
.author-box {
  margin-top: 18px;
  background: linear-gradient(180deg, #fff8f2 0%, #fff 100%);
}
.author-box h2 {
  margin-bottom: 8px;
}
.author-box p:last-child {
  margin-bottom: 0;
}
.author-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.author-badge-list,
.trust-list,
.simple-list {
  margin: 0;
  padding-right: 18px;
}
.author-badge-list li,
.trust-list li,
.simple-list li {
  margin-bottom: 8px;
}
.author-side {
  background: #fff8f2;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 16px;
}
.author-side h2,
.author-side h3 {
  margin-top: 0;
}

.breadcrumbs {
  font-size: 0.9rem;
  margin: 18px 0 10px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 18px;
}
.article-content { padding: 24px; }
.article-content h1 { margin-top: 0; }
.article-content h2 { margin-top: 26px; }
.article-content ul, .article-content ol { padding-left: 20px; }
.article-content li { margin-bottom: 8px; }
.article-content .ad-slot {
  margin: 18px 0 22px;
}
.article-content .ad-slot-rectangle {
  margin-right: auto;
  margin-left: auto;
}
.inline-related {
  margin: 18px 0;
  padding: 12px 14px;
  border-right: 3px solid #fed7aa;
  background: #fffaf5;
  border-radius: 12px;
}
.inline-related a {
  font-weight: 700;
}
.sidebar { position: sticky; top: 88px; align-self: start; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 6px; }
.toc a { color: #374151; }

.badge {
  display: inline-block;
  background: var(--brand-soft);
  color: #9a3412;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer {
  margin-top: 36px;
  background: #111827;
  color: #d1d5db;
  padding: 30px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px;
}
.site-footer h3 {
  margin: 0 0 10px;
  color: #ffffff;
}
.site-footer p { margin: 0; color: #e2e8f0; }
.site-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { color: #fde68a; text-decoration: none; }
.footer-note {
  margin-top: 18px;
  border-top: 1px solid #374151;
  padding-top: 14px;
  font-size: 0.92rem;
}

.article-image {
  margin: 14px 0 18px;
}
.article-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}
.article-image figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-thumb {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.card-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .article-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .author-hero { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    width: auto;
    max-width: 92vw;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    right: 4vw;
    left: 4vw;
    top: 72px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
    padding: 12px;
    z-index: 120;
    gap: 6px;
    max-height: 76vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 10px 12px;
  }
  .form-row { grid-template-columns: 1fr; }
  .brand-logo { height: 32px; width: 32px; }
  .brand-text { font-size: 1rem; }
  .topbar { gap: 10px; }
  .site-header, .topbar, main, section, .hero, .section, .card, .hero-box, .panel {
    max-width: 100%;
    overflow-x: clip;
  }
  .site-header.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.34);
    z-index: 90;
  }
  .site-header.menu-open .topbar { z-index: 121; }
  .site-header.menu-open .nav-links { z-index: 130; }
}









.quick-strip {
  margin-top: -4px;
}

@media (max-width: 980px) {
  .hero { padding: 34px 0 18px; }
  .hero-box, .tool-card { padding: 18px; }
  .quick-strip { margin-top: 0; }
  .hero h1 { font-size: clamp(1.6rem, 6.6vw, 2rem); }
  .button { width: 100%; text-align: center; }
}

.hero-fill {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.hero-fill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.hero-mini {
  background: #fffaf5;
  border: 1px solid #fde6d7;
  border-radius: 12px;
  padding: 10px 12px;
}
.hero-mini h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.hero-mini p {
  margin: 0;
  font-size: 0.96rem;
}
.hero-steps {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hero-steps strong {
  font-size: 0.95rem;
}
.hero-steps span {
  background: #fff4ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.86rem;
  color: #9a3412;
}

@media (max-width: 980px) {
  .hero-mini { padding: 10px; }
  .hero-steps { gap: 6px; }
  .card-thumb img { height: 180px; }
  .ad-slot,
  .ad-slot-wide,
  .ad-slot-leaderboard,
  .ad-slot-rectangle {
    width: 100%;
    min-height: 160px;
  }
}
