﻿.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; font-weight: 600; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.muted { color: var(--muted); }

.card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.media { aspect-ratio: 16 / 9; background: #f3f4f6; display: grid; place-items: center; }
.media img, .media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 16px; display: grid; gap: 6px; }
.eyebrow { font-size: 12px; color: var(--muted); }
.title { margin: 0; font-size: 22px; line-height: 1.25; }
.desc { margin: 0 0 6px; font-size: 15px; color: #374151; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatar { width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #ef4444); flex: none; }
.card:hover .title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* Title link should inherit color and only underline on hover/card-hover */
.card .title a { color: inherit; text-decoration: none; }
.card:hover .title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ishrak_site header/footer alignment */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--border); backdrop-filter: saturate(180%) blur(8px); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-logo { width: 40px; height: auto; }
.brand-logo-sm { height: 28px; width: auto; }
.brand-name, .footer-brand-name { font-weight: 800; letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; }
.site-nav #nav-list { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: inherit; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; height: 32px; }
.site-nav .btn { height: 32px; padding: 0 12px; line-height: 1; }
.btn-small { padding: 6px 10px; font-size: 14px; }
.site-nav a:not(.btn)[aria-current="page"] { background: #e5e7eb; padding: 0 12px; border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-nav a:not(.btn)[aria-current="page"] { background: #1f2937; }
}
.site-nav a.btn-primary,
.site-nav a.btn-primary:visited,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:active { color: #fff; }
.nav-toggle { display: none; }
.nav-toggle {
  position: relative;
  width: 44px;
  height: 36px;
  border: none;
  background: transparent;
  align-items: center;
  /* Stack bars vertically on mobile when display becomes inline-flex */
  flex-direction: column;
  justify-content: center;
  gap: 8px; /* space between bars */
  padding: 6px 4px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 4px; background: currentColor; border-radius: 999px; align-self: stretch; }
.nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.site-nav { position: relative; }
/* Mobile dropdown */
.site-nav.open #nav-list,
.site-nav[data-open="true"] #nav-list { display: grid; position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 220px; z-index: 20; }
.site-nav.open #nav-list li a,
.site-nav[data-open="true"] #nav-list li a { padding: 8px 10px; border-radius: 8px; }
.site-nav.open #nav-list li a:hover,
.site-nav[data-open="true"] #nav-list li a:hover { background: #f3f4f6; }
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: #fff; }
.footer-grid, .footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 20px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-grid { align-items: start; }
/* Vertically center the brand block specifically */
.footer-grid > div:first-child { display: flex; flex-direction: column; justify-content: center; }
.footer-bottom { display: none; }
.footer-note { margin: 0; color: #9ca3af; font-size: 12px; line-height: 1.2; }
.footer-brand + .footer-note { margin-top: 4px; }
.footer-note + .footer-note { margin-top: 2px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-note { color: #9aa4b2; }
}
/* Footer brand name sizing to match Website */
.site-footer .footer-brand-name { font-size: 16px; line-height: 1; font-weight: 800; letter-spacing: .04em; }
@media (max-width: 480px) {
  .site-footer .footer-brand-name { font-size: 14px; }
}
ul.plain { list-style: none; margin: 0; padding: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
/* Footer links: dark text, vertical follow list */
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.socials { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav #nav-list { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* promo image link removed */

/* floating theme toggle at bottom */
.theme-toggle-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* Dark theme component overrides */
:root[data-theme="dark"] .card {
  background: #0f172a;
  border-color: var(--border);
}
:root[data-theme="dark"] .btn { background: #111827; color: #fff; border-color: #374151; }
:root[data-theme="dark"] .site-header { background: rgba(17,24,39,.85); border-bottom-color: var(--border); }
:root[data-theme="dark"] .site-footer { background: #0b0f14; border-top-color: var(--border); }
/* Dark theme mobile menu */
:root[data-theme="dark"] .site-nav.open #nav-list,
:root[data-theme="dark"] .site-nav[data-open="true"] #nav-list { background: #0f172a; border-color: var(--border); }
:root[data-theme="dark"] .site-nav.open #nav-list li a:hover,
:root[data-theme="dark"] .site-nav[data-open="true"] #nav-list li a:hover { background: #111827; }

