/*
Theme Name: Athaar Child
Theme URI: https://athaar.me
Description: Maintained child theme for Athaar visual and usability improvements.
Author: Mohamed Al-Hawari
Template: athaar-theme
Version: 0.1.7
Text Domain: athaar-child
*/

/* Phase 1: quieter comments and non-pictographic interface details. */
.logo .logo-main { font-size: 40px; line-height: 1.25; }
.logo { padding: 5px 0; }
.footer-logo-text { font-size: 42px; line-height: 1.3; margin-bottom: 16px; }
.mm-logo { font-size: 40px; line-height: 1.3; }
@media(max-width: 768px) { .logo .logo-main { font-size: 34px; } }
/* Reading refinements: accessible gold emphasis and restrained quotations. */
:root { --reading-gold: #806019; --quote-tint: #eee6d8; }
[data-theme="dark"] { --reading-gold: #d4b66a; --quote-tint: #202522; color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
.article-body strong, .article-body b,
[data-theme="dark"] .article-body strong, [data-theme="dark"] .article-body b,
[data-theme="dark"] .article-body strong *, [data-theme="dark"] .article-body b * {
  color: var(--reading-gold) !important;
  font-weight: 700 !important;
}
[data-theme="dark"] .article-body .wp-block-group:not(.has-background):not([style*="background"]),
[data-theme="dark"] .article-body .wp-block-group__inner-container:not(.has-background):not([style*="background"]),
[data-theme="dark"] .article-body .wp-block-columns:not(.has-background):not([style*="background"]),
[data-theme="dark"] .article-body .wp-block-column:not(.has-background):not([style*="background"]) {
  background: transparent !important;
}
.article-body blockquote,
[data-theme="dark"] .article-body blockquote {
  position: relative;
  max-width: 100%;
  margin: 26px 0;
  padding: 20px 24px;
  border: 0 !important;
  border-inline-start: 3px solid var(--reading-gold) !important;
  border-radius: 0;
  background: var(--quote-tint) !important;
  box-shadow: none;
  font-style: normal;
  line-height: 1.9;
}
.article-body blockquote p { margin: 0 0 12px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote cite, .article-body blockquote .aq-source,
[data-theme="dark"] .article-body blockquote cite,
[data-theme="dark"] .article-body blockquote .aq-source {
  display: block;
  margin-top: 12px;
  color: var(--reading-gold) !important;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-style: normal;
}
.article-body blockquote .aq-mark { display: none; }
.article-body blockquote .aq-text { margin-bottom: 0; }
.article-actions .share-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--reading-gold);
  font-size: 13px;
  box-shadow: none;
}
.article-actions .share-btn:hover, .article-actions .share-btn:focus-visible {
  background: var(--quote-tint);
  border-color: var(--reading-gold);
  color: var(--reading-gold);
  transform: translateY(-1px);
}
.article-actions .share-btn svg { width: 18px; height: 18px; fill: currentColor; }
@media(max-width: 600px) { .article-body blockquote { padding: 20px; margin: 24px 0; } }
.icon-btn-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

/* Parent archive templates share this fallback; replace the pictograph cleanly. */
.a-thumb-icon,
.no-results-icon {
  font-size: 0;
}
.a-thumb-icon::after {
  content: 'مقال';
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.no-results-icon::after {
  content: 'لا نتائج';
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}
.dc-icon,
.pick-icon {
  font-size: 0;
}
.dc-icon::after,
.pick-icon::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}
/* Comments: a single reading surface, restrained dividers, and an open form. */
.comments-area--simple {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.comments-area--simple .comments-section-header {
  margin: 0 0 18px;
}
.comments-area--simple .comments-section-title {
  margin: 0;
  padding: 0;
  font-family: 'Amiri', serif;
  font-size: 23px;
  line-height: 1.3;
}
.comments-area--simple .comment-list {
  display: block;
  margin: 0;
}
.comments-area--simple .comment-item {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.comments-area--simple .comment-list .children {
  margin: 16px 0 0;
  padding: 0 18px 0 0;
  border: 0;
  border-right: 1px solid var(--border);
  gap: 0;
}
.comments-area--simple .comment-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.comments-area--simple .comment-card:hover {
  border-color: transparent;
}
.comments-area--simple .comment-header {
  position: static;
  gap: 10px;
  margin-bottom: 9px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.comments-area--simple .comment-avatar {
  width: 40px !important;
  height: 40px !important;
}
.comments-area--simple .comment-author-name {
  margin: 0;
  font-size: 14px;
}
.comments-area--simple .comment-date-str {
  margin-top: 2px;
  font-size: 11px;
}
.comments-area--simple .comment-edit-link,
.comments-area--simple .comment-reply-link {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}
.comments-area--simple .comment-edit-link:hover,
.comments-area--simple .comment-reply-link:hover {
  border: 0;
  background: transparent;
  color: var(--gold);
}
.comments-area--simple .comment-body-text {
  margin: 0 50px 10px 0;
  font-size: 16px;
  line-height: 1.9;
}
.comments-area--simple .comment-actions {
  margin-right: 50px;
  justify-content: flex-start;
}
.comments-area--simple .comment-pending {
  display: inline-block;
  margin: 0 50px 9px 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold-d);
  font-size: 11px;
}
.comments-area--simple .comment-respond {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.comments-area--simple .comment-form-title {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: 22px;
}
.comments-area--simple .comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 0;
}
.comments-area--simple .comment-form > p {
  margin: 0 0 14px;
}
.comments-area--simple .comment-form-comment,
.comments-area--simple .comment-form-submit,
.comments-area--simple .logged-in-as {
  grid-column: 1 / -1;
}
.comments-area--simple .comment-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-m);
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.comments-area--simple .comment-form input,
.comments-area--simple .comment-form textarea {
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
}
.comments-area--simple .comment-form input:focus,
.comments-area--simple .comment-form textarea:focus {
  border-color: var(--gold);
  box-shadow: none;
}
.comments-area--simple .comment-form textarea {
  min-height: 118px;
}
.comments-area--simple .comment-form-submit {
  margin-top: 4px;
}
.comments-area--simple .comment-submit-btn {
  padding: 10px 20px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .comments-area--simple .comment-form { grid-template-columns: 1fr; }
  .comments-area--simple .comment-body-text,
  .comments-area--simple .comment-actions,
  .comments-area--simple .comment-pending { margin-right: 0; }
  .comments-area--simple .comment-list .children { padding-right: 12px; }
}

/* Phase 2: real card links, keyboard focus, and clear empty archives. */
.athaar-card-link { color: inherit; font: inherit; text-decoration: none; }
.athaar-card-link:hover { color: var(--reading-gold); }
.athaar-card-link:focus-visible { outline: 2px solid var(--reading-gold); outline-offset: 4px; border-radius: 2px; }
.article-body :is(h2,h3,h4,h5,h6)[id] { scroll-margin-top: 120px; }
.athaar-empty-archive { grid-column: 1 / -1; padding: 32px 0; }
.athaar-empty-archive h2 { margin: 0 0 12px; font-size: 24px; }
.athaar-empty-archive p { color: var(--text-m); line-height: 1.9; margin-bottom: 20px; }
.athaar-empty-archive a { color: var(--reading-gold); text-decoration: underline; text-underline-offset: 4px; }