/* ============================================================
   hub.css — evergreen topic-hub components (/upsc-notes/...).
   Loaded after landing.css + subpage.css + guide.css + ca-post.css;
   reuses their tokens/components. Only hub-specific pieces here.
   ============================================================ */

/* ---- Article badge (inline) ---- */
.art { display: inline-block; font-family: var(--font-mono, monospace); font-size: 0.8em; font-weight: 600; color: var(--navy); background: var(--bg-tint); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }

/* ---- The six categories grid ---- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: clamp(26px, 4vw, 42px); }
.cat { padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow-sm); border-top: 3px solid var(--saffron); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat__arts { font-family: var(--font-mono, monospace); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; color: var(--saffron); text-transform: uppercase; }
.cat h3 { font-family: var(--serif); font-weight: 500; font-size: 1.18rem; letter-spacing: -0.01em; margin: 6px 0 8px; }
.cat p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

/* ---- Article rows table ---- */
.arts { margin-top: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-sm); }
.arts__row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); align-items: start; }
.arts__row:last-child { border-bottom: none; }
.arts__row:nth-child(odd) { background: rgba(17,43,76,0.015); }
.arts__no { font-family: var(--serif); font-weight: 500; font-size: 0.98rem; color: var(--saffron); }
.arts__txt b { font-weight: 600; color: var(--ink); }
.arts__txt { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; }

/* ---- Writ cards ---- */
.writs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; margin-top: clamp(24px, 4vw, 38px); }
.writ { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow-sm); }
.writ b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.08rem; }
.writ i { font-style: italic; font-size: 0.78rem; color: var(--muted); display: block; margin: 2px 0 8px; }
.writ span { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }

/* ---- Key-fact callout ---- */
.keyfact { margin-top: clamp(24px, 4vw, 36px); padding: clamp(18px, 3vw, 26px) clamp(20px, 3.4vw, 30px); border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.keyfact b { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron-2); margin-bottom: 10px; }
.keyfact p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.05rem, 1.9vw, 1.28rem); line-height: 1.55; margin: 0; color: #fff; }
.keyfact p b { display: inline; font-family: var(--sans); font-weight: 600; font-size: inherit; letter-spacing: 0; text-transform: none; color: #fff; }

/* ---- Case timeline ---- */
.timeline { margin-top: clamp(26px, 4vw, 40px); position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; padding: 0 0 22px 0; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -23px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--saffron); border: 2px solid var(--bg); }
.tl__year { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--navy); }
.tl__case { font-weight: 600; color: var(--ink); font-size: 0.96rem; }
.tl__what { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; margin-top: 3px; }

/* ---- Recent-development cards ---- */
.recent { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: clamp(24px, 4vw, 38px); }
.rec { padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow-sm); position: relative; }
.rec__year { position: absolute; top: 16px; right: 18px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: #fff; background: var(--saffron); padding: 4px 9px; border-radius: 100px; }
.rec b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; padding-right: 56px; margin-bottom: 6px; }
.rec span { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.rec em { font-style: normal; color: var(--saffron); font-weight: 600; }

/* ---- Go-deeper / related ---- */
.deeper { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 13px; margin-top: clamp(24px, 4vw, 38px); }
.deep { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.deep:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(226,103,15,0.3); }
.deep em { font-style: normal; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--saffron); }
.deep b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin: 6px 0 5px; color: var(--ink); }
.deep span { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 640px) {
  .arts__row { grid-template-columns: 74px 1fr; gap: 10px; }
  .keyfact p { font-size: 1.02rem; }
}
