/* =====================================================================================================
   TACI Bulletin public pages, restyled to the TACI Digital Campus design language: navy + gold, Fraunces headings,
   Inter text, layered depth, pressable buttons and cards that tilt toward the pointer. Loaded AFTER each page's own
   <style>, it re-maps the page's colour variables and refines components; no markup or behaviour changes.
   ===================================================================================================== */
:root {
  --ink: #0b1f40; --ink-2: #14305f;
  --paper: #f4f6fa; --paper-2: #e9eef7;
  --brass: #b8893a; --brass-deep: #8f6a28; --brass-light: #e8d3a3;
  --line: #e0e6f0; --text: #1b2433; --text-soft: #4b5668;
  --sci: #1d4280; --sci-bg: #e8effb;
  --sahifa: #8f5a14; --sahifa-bg: #f8eed9;
  --tp-ease: cubic-bezier(.2, .7, .2, 1);
  --tp-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(16, 30, 54, .06), 0 16px 30px -18px rgba(16, 30, 54, .32);
  --tp-shadow-lift: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 48px -24px rgba(16, 30, 54, .5), 0 12px 24px -14px rgba(16, 30, 54, .25);
}
html { scroll-behavior: smooth; }
html body { background: var(--paper); }
::selection { background: rgba(184, 137, 58, .3); }

/* ---------- navigation: glass bar ---------- */
html body .site-nav.scrolled { background: linear-gradient(180deg, rgba(20, 48, 95, .92), rgba(11, 31, 64, .88)); border-bottom: 1px solid rgba(217, 181, 116, .22); box-shadow: 0 14px 34px -14px rgba(5, 15, 35, .6); }
html body .brand img { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); transition: transform .4s var(--tp-ease); }
html body .brand:hover img { transform: translateY(-2px) scale(1.07) rotate(-3deg); }
html body .nav-links a:not(.nav-cta) { position: relative; }
html body .nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #d9b574, #b8893a); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--tp-ease); }
html body .nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
html body .nav-cta { border-radius: 10px; background: linear-gradient(180deg, #d9b574, #b8893a); color: #1a1205 !important; font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -3px 0 rgba(0, 0, 0, .18) inset, 0 10px 18px -8px rgba(184, 137, 58, .8); transition: transform .15s var(--tp-ease), box-shadow .2s, filter .2s; }
/* .nav-links a { padding:6px 0 } is more specific than .nav-cta and was squashing the button */
html body .nav-links a.nav-cta { padding: 11px 24px; line-height: 1.2; white-space: nowrap; }
html body .nav-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
html body .nav-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 -1px 0 rgba(0, 0, 0, .18) inset, 0 4px 8px -4px rgba(184, 137, 58, .8); }

/* ---------- hero ---------- */
html body .hero { background: var(--ink); }
html body .hero-veil {
  background:
    radial-gradient(ellipse 900px 620px at 12% 18%, rgba(184, 137, 58, .26), transparent 60%),
    radial-gradient(ellipse 800px 560px at 92% 88%, rgba(60, 110, 200, .30), transparent 62%),
    linear-gradient(180deg, rgba(11, 31, 64, .50), var(--ink) 92%),
    linear-gradient(90deg, rgba(11, 31, 64, .96) 0%, rgba(14, 38, 78, .72) 55%, rgba(11, 31, 64, .92) 100%);
}
html body .hero-title em, html body .hero-title i { background: linear-gradient(180deg, #f0dcae, #c99a45); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
html body .hero-eyebrow { background: rgba(255, 255, 255, .07); border: 1px solid rgba(217, 181, 116, .4); backdrop-filter: blur(8px); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
html body .btn-brass, html body .btn-ghost { border-radius: 12px; transition: transform .15s var(--tp-ease), box-shadow .2s, filter .2s, background .2s; }
html body .btn-brass { background: linear-gradient(180deg, #d9b574, #b8893a); color: #1a1205; border-color: #8f6a28;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -4px 0 rgba(0, 0, 0, .2) inset, 0 16px 26px -12px rgba(184, 137, 58, .9); }
html body .btn-brass:hover { filter: brightness(1.06); transform: translateY(-2px); background: linear-gradient(180deg, #e2c183, #c0903f); }
html body .btn-brass:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 -1px 0 rgba(0, 0, 0, .2) inset, 0 5px 10px -5px rgba(184, 137, 58, .9); }
html body .btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 12px 22px -14px rgba(0, 0, 0, .6); }
html body .btn-ghost:hover { background: rgba(255, 255, 255, .13); border-color: rgba(217, 181, 116, .7); transform: translateY(-2px); }
html body .btn-ghost:active { transform: translateY(1px); }

/* floating 3D gold orbs behind the hero */
html body .hero-veil::before, html body .hero-veil::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
html body .hero-veil::before { width: 360px; height: 360px; right: 8%; top: 14%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 226, 160, .40), rgba(201, 154, 69, .22) 38%, rgba(184, 137, 58, 0) 70%); animation: tpFloat 11s ease-in-out infinite; }
html body .hero-veil::after { width: 220px; height: 220px; left: 46%; bottom: 8%;
  background: radial-gradient(circle at 30% 26%, rgba(170, 205, 255, .35), rgba(60, 110, 200, .16) 40%, rgba(60, 110, 200, 0) 70%); animation: tpFloat 14s ease-in-out -4s infinite reverse; }
@keyframes tpFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -26px, 0); } }

/* current-issue plaque: a glass slab */
html body .issue-plaque { background: linear-gradient(150deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(217, 181, 116, .45); border-radius: 22px;
  backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 40px 60px -30px rgba(0, 0, 0, .7), 0 0 0 6px rgba(255, 255, 255, .025); }
html body .issue-plaque::before, html body .issue-plaque::after { display: none; }

/* ---------- statistics band ---------- */
html body .stats-band { background: radial-gradient(520px 220px at 12% 0, rgba(184, 137, 58, .28), transparent 70%), linear-gradient(180deg, #14305f, #0b1f40); border-top: 1px solid rgba(217, 181, 116, .25); }

/* ---------- section headings ---------- */
html body .section-head h2, html body .section-head h3, html body h2.section-title { color: var(--ink-2); letter-spacing: -.012em; }
html body .section-kicker .rule { background: linear-gradient(90deg, transparent, var(--brass)); }
html body .section-kicker .rule:last-child { background: linear-gradient(270deg, transparent, var(--brass)); }
html body .contribute-section .section-head h2, html body .contribute-section h2 { color: #fff; }

/* ---------- cards: depth, a gold edge, tilt ---------- */
html body .journal-card, html body .scope-card, html body .board-card, html body .about-fact, html body .announce-row {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--tp-shadow);
  transition: transform .25s var(--tp-ease), box-shadow .25s var(--tp-ease), border-color .25s;
}
html body .journal-card:hover, html body .scope-card:hover, html body .board-card:hover, html body .about-fact:hover, html body .announce-row:hover {
  border-color: rgba(184, 137, 58, .5); box-shadow: var(--tp-shadow-lift);
}
html body .journal-card { overflow: hidden; }
html body .journal-card .top-line { height: 5px; background: linear-gradient(90deg, #1d4280, #3d6fc4); }
html body .journal-card.sahifa .top-line { background: linear-gradient(90deg, #8f5a14, #d9a04a); }
html body .jc-badge { border-radius: 999px; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 4px 10px -6px rgba(16, 30, 54, .4); }
html body .journal-card h4 { color: var(--ink-2); }
html body .jc-btn { border-radius: 10px; transition: transform .15s var(--tp-ease), box-shadow .2s, background .2s; }
html body .jc-btn.filled { background: linear-gradient(180deg, #2a5199, #14305f); border-color: #0b1f40; color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 -3px 0 rgba(0, 0, 0, .26) inset, 0 10px 18px -8px rgba(20, 48, 95, .8); }
html body .jc-btn.filled:hover { transform: translateY(-1px); filter: brightness(1.08); }
html body .jc-btn.filled:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -1px 0 rgba(0, 0, 0, .26) inset, 0 4px 8px -4px rgba(20, 48, 95, .8); }
html body .jc-btn:not(.filled) { background: #fff; border-color: var(--line); box-shadow: 0 1px 0 #fff inset, 0 6px 12px -8px rgba(16, 30, 54, .3); }
html body .jc-btn:not(.filled):hover { border-color: var(--brass); color: var(--brass-deep); transform: translateY(-1px); }
html body .about-fact { padding: 16px 20px; }
html body .about-fact strong { color: var(--ink-2); }
html body .guidelines-panel { border-radius: 24px; border: 1px solid rgba(217, 181, 116, .3); box-shadow: 0 40px 70px -40px rgba(11, 31, 64, .8);
  background: radial-gradient(560px 280px at 90% 0, rgba(184, 137, 58, .26), transparent 70%), linear-gradient(160deg, #1d4280, #0b1f40); }
html body .scope-icon { box-shadow: 0 10px 18px -10px rgba(20, 48, 95, .5); }
html body .board-avatar { box-shadow: 0 12px 20px -10px rgba(20, 48, 95, .55), 0 0 0 4px #fff, 0 0 0 5px rgba(184, 137, 58, .45); }
html body .link-underline:hover { color: var(--brass-deep); }

/* ---------- why contribute / guidelines / footer: navy gradients ---------- */
html body .contribute-section { background: radial-gradient(600px 260px at 85% 0, rgba(184, 137, 58, .22), transparent 70%), linear-gradient(180deg, #14305f, #0b1f40); }
html body .contribute-item i { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); transition: transform .3s var(--tp-ease); }
html body .contribute-item:hover i { transform: translateY(-4px) scale(1.12); }
html body footer { background: radial-gradient(500px 240px at 0 0, rgba(184, 137, 58, .2), transparent 70%), linear-gradient(190deg, #14305f, #07152d); border-top: 1px solid rgba(217, 181, 116, .3); }

/* ---------- tilt (JS adds .tp-tilt to the cards) ---------- */
.tp-tilt { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%; position: relative; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html body .tp-tilt.tp-tilt, html body .tp-tilt.tp-tilt:hover { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift, 0px)); will-change: transform; }
  html body .tp-tilt.tp-tilt:hover { --lift: -4px; }
  html body .tp-tilt.is-tilting { transition: transform .06s linear, box-shadow .25s, border-color .25s; box-shadow: var(--tp-shadow-lift); }
  .tp-tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(420px 260px at var(--gx) var(--gy), rgba(255, 255, 255, .6), transparent 60%); mix-blend-mode: soft-light; }
  .tp-tilt.is-tilting::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { html body .hero-veil::before, html body .hero-veil::after { animation: none; } html { scroll-behavior: auto; } }

/* ---------- template download cards ---------- */
html body .template-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--tp-shadow); transition: transform .25s var(--tp-ease), box-shadow .25s, border-color .25s; }
html body .template-card:hover { border-color: rgba(184, 137, 58, .5); box-shadow: var(--tp-shadow-lift); }
html body .template-info h5 { color: var(--ink-2); }
html body .template-download { border-radius: 12px; background: linear-gradient(180deg, #2a5199, #14305f); border: 1px solid #0b1f40;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 -3px 0 rgba(0, 0, 0, .26) inset, 0 12px 20px -10px rgba(20, 48, 95, .85); transition: transform .15s var(--tp-ease), box-shadow .2s, filter .2s; }
html body .template-download:hover { filter: brightness(1.08); transform: translateY(-1px); }
html body .template-download:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -1px 0 rgba(0, 0, 0, .26) inset, 0 4px 8px -4px rgba(20, 48, 95, .8); }
html body .scope-icon { border-radius: 16px; border: 1px solid #ecdcb8; background: linear-gradient(145deg, #fbf5e7, #f1e2bd); color: var(--brass-deep); box-shadow: 0 1px 0 #fff inset, 0 12px 20px -12px rgba(184, 137, 58, .8); }

/* =====================================================================================================
   Published Papers page (published-papers.php)
   ===================================================================================================== */
:root { --blue: #0b1f40; --blue-light: #b8893a; --gold: #b8893a; --gold-light: #e8d3a3; --sci: #1d4280; --sci-bg: #e8effb; }
html body.pub-page .custom-navbar { background: linear-gradient(180deg, rgba(20, 48, 95, .96), rgba(11, 31, 64, .94)); border-bottom: 1px solid rgba(217, 181, 116, .25); box-shadow: 0 14px 34px -16px rgba(5, 15, 35, .6); backdrop-filter: blur(14px); }
html body.pub-page .custom-navbar .nav-link { position: relative; }
html body.pub-page .custom-navbar .nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #d9b574, #b8893a); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--tp-ease); }
html body.pub-page .custom-navbar .nav-link:hover::after, html body.pub-page .custom-navbar .nav-link.active::after { transform: scaleX(1); }
html body.pub-page .hero { background:
  radial-gradient(ellipse 800px 420px at 12% 0, rgba(184, 137, 58, .30), transparent 62%),
  radial-gradient(ellipse 700px 420px at 95% 100%, rgba(60, 110, 200, .32), transparent 62%),
  linear-gradient(120deg, rgba(11, 31, 64, .95), rgba(14, 38, 78, .86)), url('../../images/img.jpg'); background-size: cover; background-position: center 65%; }
html body.pub-page .hero h1 { letter-spacing: -.015em; }
html body.pub-page .hero-divider { background: linear-gradient(90deg, transparent, #d9b574, transparent); height: 3px; border-radius: 3px; }
html body.pub-page .hero-eyebrow { background: linear-gradient(180deg, #d9b574, #b8893a); color: #1a1205; border: 1px solid #8f6a28; border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -3px 0 rgba(0, 0, 0, .18) inset, 0 14px 24px -12px rgba(184, 137, 58, .9); transition: transform .15s var(--tp-ease), filter .2s; }
html body.pub-page a.hero-eyebrow:hover { filter: brightness(1.07); transform: translateY(-2px); }
html body.pub-page a.hero-eyebrow:active { transform: translateY(2px); }
html body.pub-page .issue-tabs { background: linear-gradient(180deg, #14305f, #0b1f40); }
html body.pub-page .issue-tab { border-radius: 999px; transition: transform .15s var(--tp-ease), background .2s, border-color .2s; }
html body.pub-page .issue-tab:hover { transform: translateY(-1px); }
html body.pub-page .forum-filters { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px -18px rgba(16, 30, 54, .5); }
html body.pub-page .filter-pill { box-shadow: 0 1px 0 #fff inset, 0 6px 12px -8px rgba(16, 30, 54, .35); transition: transform .15s var(--tp-ease), box-shadow .2s, background .2s; }
html body.pub-page .filter-pill:hover { transform: translateY(-2px); }
html body.pub-page .forum-icon { border-radius: 18px; box-shadow: 0 14px 22px -12px rgba(20, 48, 95, .55); }
html body.pub-page .forum-section-header h2 { color: var(--ink-2); }
html body.pub-page .forum-count-badge { background: linear-gradient(180deg, #1d4280, #0b1f40); color: #e8d3a3; box-shadow: 0 8px 14px -8px rgba(11, 31, 64, .8); }
html body.pub-page .paper-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--tp-shadow); overflow: hidden; transition: transform .25s var(--tp-ease), box-shadow .25s, border-color .25s; }
html body.pub-page .paper-card { border-top-width: 5px; }
html body.pub-page .paper-card.sci { border-top-color: #1d4280; }
html body.pub-page .paper-card.sahifa { border-top-color: #b07a2a; }
html body.pub-page .paper-card:hover { border-color: rgba(184, 137, 58, .5); box-shadow: var(--tp-shadow-lift); }
html body.pub-page .paper-title { color: var(--ink-2); }
html body.pub-page .forum-badge, html body.pub-page .category-badge { border-radius: 999px; }
html body.pub-page .keyword-chip { border-radius: 999px; }
html body.pub-page .btn-view { background: linear-gradient(180deg, #2a5199, #14305f); border: 1px solid #0b1f40; color: #fff; border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 -3px 0 rgba(0, 0, 0, .26) inset, 0 10px 18px -8px rgba(20, 48, 95, .8); transition: transform .15s var(--tp-ease), filter .2s, box-shadow .2s; }
html body.pub-page .btn-view:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
html body.pub-page .btn-view:active { transform: translateY(2px); }
html body.pub-page .btn-download { border-radius: 12px; background: linear-gradient(180deg, #d9b574, #b8893a); border: 1px solid #8f6a28; color: #1a1205; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -3px 0 rgba(0, 0, 0, .18) inset, 0 10px 18px -8px rgba(184, 137, 58, .85); transition: transform .15s var(--tp-ease), filter .2s; }
html body.pub-page .btn-download:hover { filter: brightness(1.07); color: #1a1205; }
html body.pub-page .btn-download:active { transform: translateY(2px); }
html body.pub-page .btn-download:hover { transform: translateY(-1px); }
html body.pub-page .footer { background: radial-gradient(500px 200px at 0 0, rgba(184, 137, 58, .2), transparent 70%), linear-gradient(190deg, #14305f, #07152d); border-top: 1px solid rgba(217, 181, 116, .3); }

/* article links from the paper cards */
html body.pub-page .paper-title-link { color: inherit; text-decoration: none; background-image: linear-gradient(#b8893a, #b8893a); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--tp-ease); }
html body.pub-page .paper-title-link:hover { background-size: 100% 2px; }
