/* Yardlie.store - Main Stylesheet
   Simple, fast, mobile-first, AdSense-friendly */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0d6efd; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.brand span { color: #16a34a; }
.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  color: #334155;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { color: #16a34a; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  padding: 60px 0 50px;
  text-align: center;
}
.hero h1 {
  font-size: 36px;
  margin: 0 0 14px;
  color: #052e16;
  line-height: 1.25;
}
.hero p {
  font-size: 18px;
  color: #334155;
  max-width: 720px;
  margin: 0 auto 24px;
}
.cta {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  margin: 4px;
}
.cta:hover { background: #15803d; text-decoration: none; }
.cta.secondary { background: #0f172a; }
.cta.secondary:hover { background: #1e293b; }

/* Sections */
section { padding: 50px 0; }
section h2 {
  font-size: 28px;
  margin: 0 0 24px;
  color: #0f172a;
}
section h3 { font-size: 22px; margin: 28px 0 10px; color: #0f172a; }

/* Card grid */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.card h3 { margin-top: 0; font-size: 19px; }
.card p { color: #475569; margin: 8px 0 12px; font-size: 15px; }
.card a.read { color: #16a34a; font-weight: 600; }
.tag {
  display: inline-block;
  font-size: 12px;
  background: #ecfdf5;
  color: #166534;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Article */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 0 50px;
}
.article h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #0f172a;
}
.meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
}
.article h2 { font-size: 24px; margin: 36px 0 12px; color: #0f172a; }
.article h3 { font-size: 19px; margin: 26px 0 8px; color: #0f172a; }
.article p, .article li { font-size: 17px; }
.article ul, .article ol { padding-left: 22px; }
.article blockquote {
  border-left: 4px solid #16a34a;
  margin: 16px 0;
  padding: 8px 16px;
  background: #f0fdf4;
  color: #1f2937;
  border-radius: 0 6px 6px 0;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.article th, .article td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}
.article th { background: #f8fafc; }

/* Tool pages */
.tool-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 22px;
  margin: 20px 0;
}
.tool-box textarea, .tool-box input[type="text"], .tool-box input[type="number"], .tool-box input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.tool-box textarea { min-height: 160px; resize: vertical; }
.tool-box button {
  background: #16a34a;
  color: #fff;
  border: 0;
  padding: 11px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  margin-top: 10px;
}
.tool-box button:hover { background: #15803d; }
.tool-box .stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}
.stat-card .num { font-size: 22px; font-weight: 700; color: #16a34a; }
.stat-card .label { font-size: 13px; color: #475569; }

/* Ad slot */
.ad-slot {
  margin: 24px auto;
  text-align: center;
  min-height: 90px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #94a3b8;
  font-size: 13px;
  padding: 30px 10px;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #cbd5e1; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.copyright {
  text-align: center;
  border-top: 1px solid #1e293b;
  padding-top: 16px;
  margin-top: 24px;
  font-size: 13px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 720px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  section h2 { font-size: 24px; }
  .article h1 { font-size: 26px; }
  .menu-toggle { display: inline-block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
  }
  .nav-links.open { display: flex; }
}

/* Sidebar layout (for blog posts and pages with sidebar) */
.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 16px 50px;
}
.with-sidebar .article {
  max-width: none;
  margin: 0;
  padding: 0;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}
.sidebar-box h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #0f172a;
}
.sidebar-box p { font-size: 14px; color: #475569; margin: 0 0 10px; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin: 8px 0; }
.sidebar-list a {
  font-size: 14px;
  color: #1f2937;
  display: block;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 6px;
}
.sidebar-list li:last-child a { border-bottom: 0; }
.sidebar-list a:hover { color: #16a34a; }
.sidebar-cta { background: #ecfdf5; border-color: #bbf7d0; }
.sidebar .ad-slot { margin: 0 0 18px; }

@media (max-width: 900px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }

/* =========================================================
   v2 — Mobile UX improvements, footer expansion, FAQ, etc.
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header improvements */
.menu-toggle {
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.menu-toggle:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }

/* Footer v2 */
.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #064e3b 0%, #052e16 100%);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 36px;
}
.footer-newsletter h3 { color: #fff; margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.footer-newsletter p { color: #d1fae5; margin: 0; font-size: 14px; }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #064e3b;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: #0f172a;
}
.newsletter-form button {
  background: #16a34a;
  color: #fff;
  border: 0;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}
.newsletter-form button:hover { background: #15803d; }
.nl-msg { flex-basis: 100%; color: #bbf7d0; font-size: 13px; min-height: 16px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: #1e293b;
  color: #cbd5e1;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.footer-social a:hover { background: #16a34a; color: #fff; transform: translateY(-2px); }
.footer-contact li { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.footer-contact strong { color: #fff; }

/* FAQ accordion (used on tool pages) */
.faq { margin: 18px 0 8px; }
.faq details {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: background .15s ease;
}
.faq details[open] { background: #ecfdf5; border-color: #bbf7d0; }
.faq summary {
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: #16a34a;
  transition: transform .2s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-answer { padding-top: 10px; color: #334155; font-size: 15px; line-height: 1.65; }

/* Author / EEAT box */
.author-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #16a34a;
  padding: 16px;
  border-radius: 10px;
  margin: 24px 0;
}
.author-box .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #064e3b);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 20px;
  flex: 0 0 52px;
}
.author-box .who { font-size: 14px; color: #334155; line-height: 1.55; }
.author-box .who strong { color: #0f172a; display: block; font-size: 15px; margin-bottom: 2px; }

/* Key takeaways box */
.key-takeaways {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0 24px;
}
.key-takeaways h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #064e3b;
  display: flex; align-items: center; gap: 8px;
}
.key-takeaways h3::before { content: "💡"; }
.key-takeaways ul { margin: 0; padding-left: 20px; }
.key-takeaways li { font-size: 15px; color: #14532d; margin: 4px 0; }

/* Pro tip / warning callouts */
.callout {
  border-left: 4px solid #16a34a;
  background: #f0fdf4;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 15.5px;
}
.callout.warning { border-color: #f59e0b; background: #fffbeb; }
.callout.danger  { border-color: #dc2626; background: #fef2f2; }
.callout strong { display:block; margin-bottom: 4px; color: #0f172a; }

/* Tool examples grid */
.examples-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 16px 0 24px;
}
.example-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  font-size: 14.5px;
}
.example-card .ex-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #16a34a;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 12px;
}
.breadcrumbs a { color: #16a34a; }
.breadcrumbs span { color: #94a3b8; margin: 0 6px; }

/* Mobile UX upgrades */
@media (max-width: 720px) {
  body { font-size: 16.5px; line-height: 1.7; }
  .container { padding: 0 14px; }
  .nav { padding: 10px 0; gap: 8px; }
  .brand { font-size: 20px; }

  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    padding: 0;
    font-size: 0;
    position: relative;
  }
  .menu-toggle::before {
    content: "";
    width: 18px; height: 2px;
    background: #0f172a;
    box-shadow: 0 -6px 0 #0f172a, 0 6px 0 #0f172a;
  }

  .nav-links {
    background: #fff;
    border-radius: 10px;
    padding: 6px 12px !important;
    margin-top: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
  }
  .nav-links a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
  }
  .nav-links li:last-child a { border-bottom: 0; }

  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 26px; }
  .cta { display: block; width: 100%; padding: 14px 20px; margin: 6px 0; }

  .grid { gap: 14px; }
  .card { padding: 16px; border-radius: 12px; }
  .card h3 { font-size: 17px; }

  .with-sidebar { padding: 18px 14px 30px; gap: 24px; }
  .article h1 { font-size: 24px; }
  .article h2 { font-size: 21px; margin: 28px 0 10px; }
  .article h3 { font-size: 18px; }

  .article table { font-size: 14px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .tool-box { padding: 16px; }
  .tool-box button { width: 100%; padding: 14px; font-size: 16px; }
  .tool-box .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-card .num { font-size: 20px; }

  .footer-newsletter {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 12px;
  }
  .footer-newsletter h3 { font-size: 18px; }
  .newsletter-form input[type="email"] { flex-basis: 100%; }
  .newsletter-form button { width: 100%; }
  .footer-grid { gap: 28px; }

  .faq summary { font-size: 15.5px; }
}

/* Larger tap targets and smooth focus rings everywhere */
a, button, input, textarea, select, summary {
  -webkit-tap-highlight-color: rgba(22,163,74,.15);
}
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Smooth hero on small screens */
@media (max-width: 420px) {
  .hero h1 { font-size: 23px; }
  .hero p { font-size: 15px; }
  .article h1 { font-size: 22px; }
}

/* Print-friendly */
@media print {
  .site-header, .site-footer, .sidebar, .ad-slot, .menu-toggle { display: none !important; }
  .with-sidebar { grid-template-columns: 1fr; }
}
