/* =====================================================================
   DAILY CAPITAL — EDITORIAL MINIMAL (Design A)
   Site 06 of 16: dailycapital.pk
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #fafaf7;
  --bg-accent: #f5f2eb;
  --rule: #e5e2dc;
  --rule-strong: #c9c5bb;
  --border: #d8d4c9;

  --text: #1a1a1a;
  --text-2: #2c2c2c;
  --text-muted: #5a5a5a;
  --text-light: #8a8a8a;

  --accent: #b8001f;
  --accent-soft: #f4dde0;
  --accent-dark: #8e0017;

  --warm: #b8861d;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --wrap-narrow: 780px;
  --wrap: 1180px;
  --wrap-wide: 1280px;

  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}
a:hover { color: var(--accent-dark); }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
strong, b { font-weight: 600; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 1rem;
}
h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: 30px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
h3 { font-size: 22px; margin-top: 1.8rem; }
h4 { font-size: 17px; margin-top: 1.4rem; font-weight: 600; }
@media (max-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
}

main h1 { padding-top: 0; border-top: none; margin-top: 0; }
main h2:first-of-type, .def-box + h2 {
  border-top: none; padding-top: 0; margin-top: 1rem;
}

/* Wrappers */
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 32px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-wide, .wrap-full { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) {
  .wrap-narrow, .wrap, .wrap-wide, .wrap-full { padding: 0 16px; }
}

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header__topbar {
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
}
.site-header__topbar-inner {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header__date { text-transform: uppercase; letter-spacing: 0.1em; }
.site-header__masthead {
  text-align: center;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  gap: 6px;
}
.brand:hover { color: var(--accent); }
.brand__name {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.brand__tag {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.brand__bullet { display: none; }

.nav-primary {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
}
.nav-primary a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.15s;
}
.nav-primary a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle { display: none; }
.nav-mobile { display: none; }

@media (max-width: 768px) {
  .brand__name { font-size: 32px; }
  .site-header__masthead { padding: 18px 16px 14px; }
  .nav-primary { gap: 16px; padding: 12px 16px; font-size: 13px; flex-wrap: wrap; }
  .site-header__topbar-inner span:last-child { display: none; }
}

/* Breadcrumbs */
.crumbs {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 32px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs__sep { margin: 0 8px; color: var(--text-light); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 500; }

/* Main content */
main { max-width: var(--wrap-narrow); margin: 0 auto; padding: 48px 32px 80px; }
main h1 { margin-bottom: 24px; }

/* Def box */
.def-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 22px 24px 22px 28px;
  margin: 22px 0 32px;
}
.def-box__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 12px;
}
.def-box p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

/* Checklist box */
.checklist-box {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 24px;
  margin: 24px 0;
}
.checklist-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}
.checklist-item:last-child { border-bottom: none; }
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
  font-family: var(--font-sans);
}

/* Red flags */
.red-flags-box {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--warm);
  padding: 24px;
  margin: 24px 0;
}
.red-flags-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.red-flags { list-style: none; padding: 0; margin: 0; }
.red-flags li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}
.red-flags li:last-child { border-bottom: none; }
.red-flags li::before {
  content: '!';
  position: absolute;
  left: 0; top: 12px;
  width: 18px; height: 18px;
  background: var(--warm);
  color: white;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

/* Callout */
.callout {
  background: var(--bg-accent);
  border-left: 3px solid var(--warm);
  padding: 16px 22px;
  margin: 22px 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  font-style: italic;
}
.callout strong {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  margin-right: 6px;
}

/* FAQ */
.faq-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.faq-section h2, .faq h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  font-size: 26px;
  margin-bottom: 24px;
  text-align: left;
}
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item:first-child { border-top: 1px solid var(--rule); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: none;
  border: none;
  padding: 16px 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.faq__q:hover { color: var(--accent); }
.faq__q-icon, .faq__icon {
  color: var(--accent);
  font-size: 18px;
  font-family: var(--font-sans);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1.4;
}
.faq__item[aria-expanded="true"] .faq__q-icon,
.faq__item[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a {
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  display: none;
}
.faq__item[aria-expanded="true"] .faq__a { display: block; }

/* Related links */
.related {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.related__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 16px;
}
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { border-bottom: 1px solid var(--rule); margin: 0; }
.related li:last-child { border-bottom: none; }
.related a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.related a:hover { color: var(--accent); }
.related a::before { content: '→'; color: var(--accent); font-family: var(--font-sans); font-size: 14px; flex-shrink: 0; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 56px 0 24px;
  margin-top: 64px;
  font-family: var(--font-sans);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer__about h4 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  padding: 0;
  border: none;
}
.site-footer__about p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
.site-footer__cols > div h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 600;
  padding: 0;
  border: none;
}
.site-footer__cols ul { list-style: none; padding: 0; margin: 0; }
.site-footer__cols li { margin-bottom: 10px; }
.site-footer__cols a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.site-footer__cols a:hover { color: var(--accent); }
.site-footer__legal {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__legal-nav { display: flex; gap: 16px; }
.site-footer__legal-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
}
.site-footer__legal-nav a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .site-footer__about { grid-column: 1 / -1; margin-bottom: 16px; }
}
@media (max-width: 480px) {
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__legal { flex-direction: column; text-align: center; }
}

/* Home hero */
.hero { background: var(--bg); padding: 80px 0 64px; border-bottom: 1px solid var(--rule); }
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  font-weight: 500;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  max-width: 880px;
  border: none;
  padding: 0;
}
@media (max-width: 768px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 34px; }
}
.hero__sub {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 48px;
}
.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.hero__stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
  font-weight: 500;
}

/* Home sections */
.home main { max-width: none; padding: 0; }
.home-section { padding: 56px 0; border-top: 1px solid var(--rule); }
.home-section .wrap-wide { max-width: var(--wrap); }
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 12px;
}
.home-section h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  border: none;
  padding: 0;
}
.home-section .lead {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 0 32px;
}

/* Cards (home page) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.card {
  display: block;
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.card:nth-child(3n) { border-right: none; padding-right: 0; }
.card:nth-child(3n+2), .card:nth-child(3n+3) { padding-left: 24px; }
.card__label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  font-weight: 600;
  display: block;
}
.card__title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}
.card:hover .card__title { color: var(--accent); }
.card__desc { font-size: 15px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .card:nth-child(2n) { border-right: none; padding-right: 0; }
  .card:nth-child(odd) { padding-left: 0; }
  .card:nth-child(even) { padding-left: 24px; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .card {
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
    padding: 24px 0 !important;
  }
  .card:last-child { border-bottom: none; }
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--rule); }
th {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-alt);
  font-weight: 600;
}

/* Code */
code, pre {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
code { padding: 2px 6px; font-size: 14px; }
pre { padding: 16px; overflow-x: auto; font-size: 14px; line-height: 1.5; margin: 16px 0; }
pre code { background: none; border: none; padding: 0; }

/* Buttons */
button:not(.faq__q):not(.nav-toggle) {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}
button:not(.faq__q):not(.nav-toggle):hover { background: var(--accent); }

/* 404 */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 96px; color: var(--accent); line-height: 1; margin-bottom: 24px; border: none; padding: 0; }
.error-page__lead { font-size: 22px; color: var(--text-muted); margin-bottom: 48px; }
.error-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 768px) {
  .error-page h1 { font-size: 64px; }
  .error-cards { grid-template-columns: 1fr; }
}

/* Utilities */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

@media print {
  .site-header, .site-footer, .crumbs { display: none; }
  body { font-size: 12pt; color: black; }
  a { color: black; text-decoration: none; }
}
