/*
Theme Name: Minimal Arabic Keyboard
Theme URI: https://example.com/minimal-theme
Author: Miaoda
Author URI: https://example.com
Description: SEO-ready Arabic keyboard and typing tool WordPress theme with a virtual Arabic keyboard, Arabizi to Arabic conversion, smart text tools, AdSense-ready ad areas, required pages, schema markup, RTL support, and blog templates.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minimal
Tags: blog, rtl-language-support, full-width-template, custom-menu, featured-images, editor-style, translation-ready
*/

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-text:        #1a1a1a;
  --color-text-muted:  #6b7280;
  --color-text-light:  #9ca3af;
  --color-bg:          #ffffff;
  --color-bg-subtle:   #f9fafb;
  --color-border:      #e5e7eb;
  --color-accent:      #111827;
  --color-accent-hover:#374151;
  --color-link:        #111827;
  --color-link-hover:  #374151;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --max-content: 680px;
  --max-wide:    1200px;

  --transition: 150ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: -0.015em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-link-hover);
}

strong, b { font-weight: 600; }
em, i     { font-style: italic; }

small { font-size: var(--text-sm); }

blockquote {
  border-left: 3px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  font-style: italic;
}

html[dir="rtl"] blockquote {
  border-left: none;
  border-right: 3px solid var(--color-border);
  padding-left: 0;
  padding-right: var(--space-6);
}

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--text-sm);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
}

pre {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: var(--space-6);
  overflow-x: auto;
  margin: var(--space-8) 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-12) 0;
}

ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-left: 0;
  padding-right: var(--space-6);
}

li { margin-bottom: var(--space-2); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: var(--space-8) 0;
}

figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-8) 0;
  font-size: var(--text-sm);
}

th, td {
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  text-align: start;
}

th {
  background: var(--color-bg-subtle);
  font-weight: 600;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--max-content);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 64px;
}

.site-branding {
  flex-shrink: 0;
}

.site-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-title a {
  text-decoration: none;
  color: var(--color-text);
}

.site-description {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-1);
}

.main-navigation a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--color-text);
  background: var(--color-bg-subtle);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: var(--color-bg-subtle);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-main {
  min-height: calc(100vh - 64px - 180px);
  padding: var(--space-16) 0;
}

/* ============================================================
   POSTS GRID (ARCHIVE / HOME)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

.post-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-bg);
}

.post-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.post-card__thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-subtle);
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.post-card:hover .post-card__thumbnail img {
  transform: scale(1.03);
}

.post-card__body {
  padding: var(--space-6);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.post-meta__date,
.post-meta__category {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.post-meta__category {
  color: var(--color-text);
}

.post-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.post-card__title a {
  text-decoration: none;
  color: var(--color-text);
}

.post-card__title a:hover {
  color: var(--color-text-muted);
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-card__author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.post-card__author-name {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.read-more {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}

.read-more:hover { color: var(--color-text); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.entry-header {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-12);
}

.entry-header .post-meta {
  margin-bottom: var(--space-4);
}

.entry-title {
  font-size: clamp(var(--text-3xl), 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.entry-thumbnail {
  margin: var(--space-8) 0;
  border-radius: 8px;
  overflow: hidden;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
}

.entry-content {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.entry-content > * + * {
  margin-top: var(--space-6);
}

.entry-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
}

.entry-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
}

.entry-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.entry-tags__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-link {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 3px 10px;
  transition: border-color var(--transition), color var(--transition);
}

.tag-link:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.nav-previous,
.nav-next {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition);
}

.nav-previous:hover,
.nav-next:hover {
  border-color: #d1d5db;
}

.nav-next { text-align: end; }

.nav-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

.nav-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.nav-title:hover { color: var(--color-text-muted); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}

.comment:last-child { border-bottom: none; }

.comment__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.comment__avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.comment__author {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
}

.comment__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.comment__content {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.comment__reply a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-2);
  display: inline-block;
}

.children {
  list-style: none;
  padding-left: var(--space-8);
  border-left: 2px solid var(--color-border);
  margin-top: var(--space-4);
}

html[dir="rtl"] .children {
  padding-left: 0;
  padding-right: var(--space-8);
  border-left: none;
  border-right: 2px solid var(--color-border);
}

/* Comment Form */
.comment-respond {
  margin-top: var(--space-12);
}

.comment-reply-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.comment-form p {
  margin-bottom: var(--space-4);
}

.comment-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-text-muted);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.submit,
.comment-form input[type="submit"] {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.submit:hover,
.comment-form input[type="submit"]:hover {
  background: var(--color-accent-hover);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-12);
  align-items: start;
}

html[dir="rtl"] .content-sidebar-wrap {
  grid-template-columns: 300px 1fr;
}

.widget-area {
  position: sticky;
  top: calc(64px + var(--space-8));
}

.widget {
  margin-bottom: var(--space-8);
}

.widget-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.widget ul li:last-child { border-bottom: none; }

.widget ul a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.widget ul a:hover { color: var(--color-text); }

/* Search Widget */
.search-form {
  display: flex;
  gap: var(--space-2);
}

.search-form .search-field {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
}

.search-form .search-field:focus {
  border-color: var(--color-text-muted);
}

.search-form .search-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.search-form .search-submit:hover {
  background: var(--color-accent-hover);
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-header {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-12);
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.archive-description {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

/* Full Width Page */
.full-width-page .content-sidebar-wrap {
  grid-template-columns: 1fr;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-16);
}

.page-numbers {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.page-numbers:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.page-numbers.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0;
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-4);
}

.footer-navigation a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-navigation a:hover { color: var(--color-text); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: var(--space-24) var(--space-6);
}

.error-404 .page-title {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  color: var(--color-border);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-404 .error-subtitle {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.error-404 .error-description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus,
.screen-reader-text:focus {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  width: auto;
  height: auto;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  z-index: 1000;
}

.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; margin-top: var(--space-2); }
.sticky { /* handled by card styles */ }
.bypostauthor { /* handled by comment styles */ }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-2); margin: var(--space-8) 0; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }
.alignleft  { float: left; margin: 0 var(--space-6) var(--space-6) 0; }
.alignright { float: right; margin: 0 0 var(--space-6) var(--space-6); }
.aligncenter { display: block; margin: var(--space-8) auto; }
.wp-block-image { margin: var(--space-8) 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }

  .widget-area {
    position: static;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-8);
    margin-top: var(--space-8);
  }
}

@media (max-width: 768px) {
  .site-main { padding: var(--space-8) 0; }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .posts-grid { grid-template-columns: 1fr; }

  .post-navigation { grid-template-columns: 1fr; }

  .menu-toggle { display: flex; align-items: center; gap: var(--space-2); }

  .main-navigation .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    flex-direction: column;
    gap: var(--space-1);
    z-index: 99;
  }

  .main-navigation .nav-menu.toggled {
    display: flex;
  }

  .site-footer__inner { flex-direction: column; text-align: center; }
  .footer-navigation ul { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .post-card__body { padding: var(--space-4); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .widget-area,
  .post-navigation,
  .comments-area,
  .site-footer { display: none; }

  body { font-size: 12pt; }
  a { text-decoration: none; color: inherit; }
}

/* ============================================================
   SEO / ADSENSE / REQUIRED PAGE ENHANCEMENTS
   ============================================================ */
.minimal-ad-slot {
  width: min(100% - 2rem, var(--max-wide));
  margin: 1rem auto;
  min-height: 90px;
  border: 1px dashed var(--color-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

.minimal-ad-slot__label {
  font-weight: 700;
  color: var(--color-text);
}

.minimal-ad-slot__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.minimal-ad-slot--header {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.minimal-ad-slot--top,
.minimal-ad-slot--middle {
  width: 100%;
  margin: 1.25rem 0;
}

.minimal-ad-slot--sidebar {
  width: 100%;
  min-height: 250px;
  margin: 0 0 1.5rem;
}

.minimal-ad-slot--footer {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.minimal-contact-form {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-bg-subtle);
}

.minimal-contact-form p {
  margin-bottom: 1rem;
}

.minimal-contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.minimal-contact-form input,
.minimal-contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font: inherit;
  background: #fff;
}

.minimal-contact-form input:focus,
.minimal-contact-form textarea:focus {
  outline: 2px solid rgba(17, 24, 39, 0.18);
  border-color: var(--color-accent);
}

.minimal-contact-form .minimal-submit,
.minimal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.minimal-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 1px;
  overflow: hidden;
}

.minimal-notice {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin: 1rem 0;
  font-weight: 700;
}

.minimal-notice--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.minimal-notice--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.entry-content h2,
.ak-seo-content h2 {
  scroll-margin-top: 6rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: start;
}

@media (max-width: 700px) {
  .minimal-ad-slot {
    width: calc(100% - 1rem);
    min-height: 72px;
    padding: 0.85rem;
  }

  .minimal-ad-slot--sidebar {
    min-height: 120px;
  }
}
