/*
Theme Name: JaydenInvest Astra
Theme URI: https://jaydeninvest.com/
Description: JaydenInvest editorial layout built as an Astra child theme.
Author: JaydenInvest
Template: astra
Version: 1.0.0
Text Domain: jayden-astra
*/

:root {
  --ink: #1f2937;
  --heading: #111827;
  --muted: #697386;
  --faint: #9aa3b2;
  --line: #e6e9ef;
  --paper: #f8f9fb;
  --warm: #f3f0ea;
  --accent: #4968ef;
  --dark: #202b3d;
  --max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.home, body.blog, body.page, body.single, body.archive { background: #fff !important; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(73, 104, 239, .35); outline-offset: 4px; }

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 64px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--dark);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand strong { display: block; color: var(--heading); font-size: 16px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--faint); font-size: 10px; letter-spacing: .08em; line-height: 1.3; }

.main-nav { display: flex; align-items: center; justify-content: center; gap: 26px; }
.main-nav .menu { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 0; margin: 0; list-style: none; }
.main-nav .menu li { margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; padding: 28px 0 25px; color: var(--muted); font-size: 13px; white-space: nowrap; transition: color .18s ease; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; background: var(--heading); transform: scaleX(0); transform-origin: center; transition: transform .18s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--heading); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.x-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.x-link svg { width: 16px; height: 16px; fill: currentColor; }
.x-link:hover { color: var(--heading); }
.nav-toggle { display: none; }

.page-frame {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 68px 0 96px;
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr) 235px;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.secondary-page-frame { grid-template-columns: 225px minmax(0, 1fr); }
.secondary-profile-column { display: grid; gap: 46px; align-content: start; }
.secondary-page-frame .profile-card { position: static; }
.secondary-sidebar { display: grid; gap: 42px; }
.secondary-sidebar .side-heading { padding-bottom: 14px; }
.secondary-sidebar .side-heading h2 { font-size: 17px; }
.secondary-sidebar .hot-list a { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 12px 0; }
.secondary-sidebar .hot-list strong { font-size: 11px; line-height: 1.55; }
.secondary-sidebar .category-list a { padding: 10px 0; font-size: 11px; }
.secondary-page-frame .article-single > h1,
.secondary-page-frame .article-content { max-width: none; }

.profile-column, .sidebar-column { min-width: 0; }
.profile-card { position: sticky; top: 112px; }
.profile-photo-wrap { position: relative; width: 94px; height: 94px; margin-bottom: 21px; }
.profile-photo { display: block; width: 94px; height: 94px; object-fit: cover; border: 1px solid var(--line); border-radius: 22px; }
.status-dot { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; background: #78bf8d; border: 4px solid #fff; border-radius: 50%; }
.profile-kicker, .eyebrow { margin: 0 0 9px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .15em; line-height: 1.4; }
.profile-card h1 { margin: 0; color: var(--heading); font-size: 23px; line-height: 1.2; letter-spacing: -.04em; }
.profile-role { margin: 7px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.profile-bio { margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.profile-meta { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.meta-symbol { display: inline-block; width: 17px; color: var(--heading); font-size: 13px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: var(--dark); border-color: var(--dark); }
.button-light { color: var(--heading); background: #fff; }
.profile-socials { display: grid; gap: 6px; padding-top: 20px; color: var(--muted); font-size: 11px; }
.profile-socials a:hover { color: var(--accent); }

.section-intro { padding-bottom: 45px; border-bottom: 1px solid var(--line); }
.section-intro h2 { max-width: 650px; margin: 0; color: var(--heading); font-size: clamp(30px, 3.3vw, 48px); font-weight: 600; letter-spacing: -.065em; line-height: 1.18; }
.intro-copy { max-width: 530px; margin: 17px 0 20px; color: var(--muted); font-size: 15px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 19px; }
.intro-links a, .text-link { color: var(--heading); font-size: 12px; font-weight: 600; }
.intro-links a span, .text-link span { display: inline-block; margin-left: 5px; color: var(--accent); transition: transform .18s ease; }
.intro-links a:hover span, .text-link:hover span { transform: translate(2px, -2px); }

.feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 42px 0 20px; }
.feed-heading h3 { margin: 0; color: var(--heading); font-size: 23px; letter-spacing: -.045em; }
.featured-post { padding: 25px 27px 23px; background: var(--warm); border: 1px solid #e9e3d9; border-radius: 14px; }
.post-label, .post-category { margin: 0 0 11px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.featured-post h3 { margin: 0 0 12px; color: var(--heading); font-size: 25px; letter-spacing: -.045em; line-height: 1.32; }
.featured-post h3 a:hover, .post-row h3 a:hover { color: var(--accent); }
.featured-post p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 19px; color: var(--faint); font-size: 10px; }
.post-meta span + span::before { content: "·"; margin-right: 15px; color: #c9ced7; }

.hot-main-list { margin-top: 4px; }
.hot-main-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 17px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.hot-main-card-featured { padding: 25px 27px 23px; background: var(--warm); border: 1px solid #e9e3d9; border-radius: 14px; }
.hot-main-rank { padding-top: 4px; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.hot-main-card h3 { margin: 0 0 8px; color: var(--heading); font-size: 20px; letter-spacing: -.04em; line-height: 1.4; }
.hot-main-card h3 a:hover { color: var(--accent); }
.hot-main-card p:not(.post-category) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.hot-main-card .post-meta { margin-top: 12px; }
.hot-main-card .post-arrow { transition: color .18s ease, transform .18s ease; }
.hot-main-card:hover .post-arrow { color: var(--accent); transform: translate(2px, -2px); }
.hot-main-grid { display: grid; grid-template-columns: 1fr; }

.post-list { margin-top: 4px; }
.post-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 17px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-index { padding-top: 5px; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.post-body h3 { margin: 0 0 7px; color: var(--heading); font-size: 18px; letter-spacing: -.035em; line-height: 1.45; }
.post-body > p:not(.post-category) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.post-body .post-meta { margin-top: 11px; }
.post-arrow { padding-top: 4px; color: var(--faint); font-size: 15px; transition: color .18s ease, transform .18s ease; }
.post-row:hover .post-arrow { color: var(--accent); transform: translate(2px, -2px); }

.sidebar-column { display: grid; gap: 54px; }
.side-section { min-width: 0; }
.side-heading { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.side-heading h2, .tool-note h2 { margin: 0; color: var(--heading); font-size: 18px; letter-spacing: -.035em; }
.latest-list { display: grid; }
.latest-list a { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.latest-list a:hover strong { color: var(--accent); }
.latest-list small { color: var(--faint); font-size: 10px; line-height: 1.4; }
.latest-list strong { color: var(--heading); font-size: 12px; font-weight: 500; line-height: 1.55; }
.hot-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.hot-list li { border-bottom: 1px solid var(--line); }
.hot-list a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 14px 0; }
.hot-list a:hover strong { color: var(--accent); }
.hot-list span { color: var(--faint); font-size: 10px; }
.hot-list strong { color: var(--heading); font-size: 12px; font-weight: 500; line-height: 1.55; }
.category-list { display: grid; }
.category-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.category-list a:hover { color: var(--accent); }
.category-list small { color: var(--faint); font-size: 10px; }
.tool-note { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.tool-note h2 { margin-bottom: 9px; font-size: 16px; }
.tool-note p:not(.eyebrow) { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { width: min(var(--max), calc(100% - 64px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 10px; }

.article-single h1 { max-width: 780px; margin: 0; color: var(--heading); font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: -.06em; line-height: 1.2; }
.article-single > .post-meta { margin: 18px 0 38px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article-content { max-width: 760px; color: var(--ink); font-size: 16px; line-height: 2; }
.article-content h2, .article-content h3 { color: var(--heading); line-height: 1.4; letter-spacing: -.035em; }
.article-content h1 { margin-bottom: 24px; font-size: 30px; }
.article-content h2 { margin-bottom: 16px; font-size: 20px; }
.article-content h3 { font-weight: 700; }
.article-content a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(73, 104, 239, .3); text-underline-offset: 3px; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.article-content .jayden-page { display: grid; gap: 20px; }
.article-content .jayden-page section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.article-content .jayden-page section:first-child { padding-top: 0; }
.article-content .jayden-page table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
.article-content .jayden-page th, .article-content .jayden-page td { padding: 11px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content .jayden-page th { color: var(--heading); background: var(--paper); font-weight: 600; }
.article-content .jayden-page ul { padding-left: 1.35em; }
.article-content .jayden-page label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.article-content .jayden-page input, .article-content .jayden-page select { min-height: 38px; padding: 7px 10px; color: var(--heading); background: #fff; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.article-content .jayden-page button { min-height: 36px; padding: 7px 13px; color: #fff; background: var(--dark); border: 0; border-radius: 7px; cursor: pointer; font: inherit; }
.article-content .jayden-page [id$="-out"], .article-content .jayden-page [id$="Warn"], .article-content .jayden-page [id^="warn"] { padding: 12px; margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.notice { padding: 20px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }

@media (max-width: 1120px) {
  .header-inner, .page-frame, .footer-inner { width: min(100% - 48px, var(--max)); }
  .page-frame { grid-template-columns: 205px minmax(0, 1fr); gap: 45px; }
  .sidebar-column { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; padding-top: 30px; }
  .tool-note { align-self: start; }
}

@media (max-width: 780px) {
  .header-inner { min-height: 70px; grid-template-columns: 1fr auto auto; gap: 14px; }
  .brand small { display: none; }
  .nav-toggle { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 0; color: var(--heading); background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
  .nav-toggle > span:not(.sr-only) { width: 14px; height: 1px; background: currentColor; }
  .main-nav { position: absolute; top: 70px; right: 24px; left: 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(28, 38, 55, .1); }
  .main-nav.is-open { display: flex; }
  .main-nav .menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .menu li { border-bottom: 1px solid var(--line); }
  .main-nav .menu li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 10px 0; }
  .main-nav a::after { display: none; }
  .x-link { font-size: 0; }
  .x-link svg { width: 17px; height: 17px; }
  .page-frame { width: min(100% - 40px, 620px); grid-template-columns: 1fr; gap: 46px; padding: 43px 0 68px; }
  .profile-card { position: static; padding-bottom: 31px; border-bottom: 1px solid var(--line); }
  .profile-photo-wrap { margin-bottom: 16px; }
  .sidebar-column { grid-column: auto; display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 0; }
  .hot-main-grid { grid-template-columns: 1fr; }
  .section-intro h2 { font-size: clamp(30px, 9vw, 42px); }
  .footer-inner { width: min(100% - 40px, 620px); min-height: 78px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
}

@media (max-width: 430px) {
  .header-inner { width: calc(100% - 32px); }
  .main-nav { right: 16px; left: 16px; }
  .page-frame { width: calc(100% - 32px); }
  .featured-post { padding: 21px 19px 20px; }
  .featured-post h3 { font-size: 22px; }
  .hot-main-card-featured { padding: 21px 19px 20px; }
  .hot-main-card h3 { font-size: 18px; }
  .post-row { grid-template-columns: 26px minmax(0, 1fr) 14px; gap: 10px; }
  .hot-main-card { grid-template-columns: 26px minmax(0, 1fr) 14px; gap: 10px; }
  .post-body h3 { font-size: 16px; }
  .post-meta { gap: 9px; }
  .post-meta span + span::before { margin-right: 9px; }
}
