/* ============================================================
   Bawarith Shipping — Blog
   Extends assets/css/styles.css. Same tokens, same type scale.
   ============================================================ */

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

.loading { text-align: center; padding: 56px 24px; color: var(--text-muted); font-size: 14px; }
.panel-plain { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.empty { text-align: center; padding: clamp(40px, 7vw, 72px) 24px; }
.empty svg { color: var(--border-2); margin: 0 auto 18px; }
.empty h3 { font-size: 20px; }
.empty p { color: var(--text-muted); font-size: 14.5px; margin-top: 9px; max-width: 48ch; margin-inline: auto; }

/* ---------- Hero ---------- */
.blog-hero { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 64px); }
.blog-hero h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; margin-top: 14px; }
.blog-hero .lead { margin-top: 18px; }
.blog-hero + .section { padding-top: clamp(40px, 5vw, 64px) !important; }

/* ---------- Cards ---------- */
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-date { display: block; font-size: 12.5px; color: var(--text-muted-2); margin-top: 12px; }
.post-card .more { margin-top: 10px; }

/* ---------- Article ---------- */
.article-width { max-width: 760px; }
.article-head { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: clamp(36px, 5vw, 64px) 0 clamp(30px, 4vw, 48px); }
.article-head h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; margin-top: 14px; }
.article-meta { font-size: 14px; color: var(--text-muted); margin-top: 18px; }
.back-link { font-size: 14px; font-weight: 600; }

.article-cover { margin: clamp(28px, 4vw, 44px) 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; display: block; }

.article-body { padding: clamp(28px, 4vw, 44px) 0 0; font-size: 17.5px; line-height: 1.75; color: var(--text); }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.2; margin-top: 1.9em; }
.article-body h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.25; margin-top: 1.6em; }
.article-body a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--navy); }
.article-body strong { font-weight: 600; color: var(--text-heading); }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li + li { margin-top: .5em; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin-left: 0;
  color: var(--text-muted); font-family: var(--serif); font-size: 1.08em; font-style: italic;
}
.article-body img { border-radius: var(--radius-sm); margin-block: 1.6em; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.2em; }

.article-foot {
  margin: clamp(44px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
  padding: clamp(28px, 4vw, 40px);
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); text-align: center;
}
.article-foot h3 { font-size: clamp(21px, 2.3vw, 27px); }
.article-foot p { color: var(--text-muted); font-size: 15px; margin: 10px 0 22px; }

/* ---------- Admin: article editor ---------- */
.cover-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.cover-preview {
  flex: none; width: 190px; height: 118px; border-radius: var(--radius-sm);
  border: 1px dashed var(--border-2); background: var(--bg-input);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cover-preview span { font-size: 12.5px; color: var(--text-muted-2); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }

.ql-toolbar.ql-snow {
  border-color: var(--border-2) !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--bg-light);
}
.ql-container.ql-snow {
  border-color: var(--border-2) !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--white);
  font-family: var(--sans); font-size: 15.5px;
}
.ql-editor { min-height: 380px; line-height: 1.7; }
.ql-editor h2, .ql-editor h3 { font-family: var(--serif); color: var(--text-heading); }
.ql-editor.ql-blank::before { color: var(--text-muted-2); font-style: normal; }

.portal-nav .is-current { border-color: var(--navy); color: var(--navy); background: var(--bg-light); }
