/*
Theme Name: Fintong Dashboard
Version: 0.1.110
Text Domain: fintong-dashboard
*/

:root {
  --ink: #111827;
  --text: #273448;
  --muted: #667287;
  --soft: #eef3f8;
  --line: #dce5ef;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --navy: #07111f;
  --blue: #246bfe;
  --green: #16a36f;
  --amber: #d88916;
  --shadow: 0 14px 36px rgba(31, 44, 63, 0.08);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.site-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
}

.blog-top-banner {
  padding: 16px 0 14px;
  background: var(--paper);
}

.blog-top-banner a,
.blog-top-banner img {
  display: block;
}

.blog-top-banner img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: left center;
  border-radius: 8px;
  background: #07111f;
  box-shadow: var(--shadow);
}

.menu-bar {
  border-top: 1px solid rgba(220, 229, 239, 0.86);
  border-bottom: 1px solid rgba(220, 229, 239, 0.94);
  background: #fff;
}

.menu-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 54px;
}

.top-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-menu::-webkit-scrollbar {
  display: none;
}

.top-menu a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.top-menu a:hover {
  background: #edf3fa;
  color: var(--ink);
}

.header-search,
.search-panel form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.search-panel input {
  width: 142px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
}

.header-search button,
.search-panel button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 750;
}

.site-main {
  padding: 24px 0 56px;
}

.blog-layout,
.magazine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.blog-main,
.magazine-main {
  min-width: 0;
  max-width: 100%;
}

.home-article,
.latest-section,
.side-panel,
.post-card {
  max-width: 100%;
  min-width: 0;
}

.home-article,
.latest-section,
.side-panel,
.report-article,
.report-meta-panel,
.report-risk-note,
.report-list-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-article {
  padding: 30px;
  min-width: 0;
}

.home-article-head {
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.home-article-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.article-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.home-article-head .badge-row {
  margin-top: 16px;
}

.home-article-image {
  max-height: 420px;
  overflow: hidden;
  margin: 0 0 24px;
  border-radius: 8px;
  background: #dfe7f2;
}

.home-article-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.home-content,
.report-content {
  color: #253146;
  font-size: 16px;
  line-height: 1.82;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.home-content > :first-child,
.report-content > :first-child {
  margin-top: 0;
}

.home-content h2,
.home-content h3,
.report-content h2,
.report-content h3 {
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0;
}

.home-content img,
.report-content img {
  border-radius: 8px;
}

.latest-section {
  margin-top: 18px;
  padding: 20px;
  min-width: 0;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 12px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.text-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.recommended-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.recommended-list li + li {
  border-top: 1px solid var(--line);
}

.recommended-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.recommended-title {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.recommended-dot {
  flex: 0 0 auto;
  color: var(--blue);
}

.recommended-list time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.recommended-list a:hover,
.recommended-list a:focus {
  color: var(--blue);
  background: #f7faff;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #e9f8f1;
  color: #0c8d5d;
  font-size: 12px;
  font-weight: 800;
}

.muted-badge {
  background: #eef4ff;
  color: var(--blue);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.post-media {
  min-height: 142px;
  display: block;
  background: #dfe7f2 center / cover no-repeat;
}

.post-body {
  padding: 14px;
}

.post-body .badge-row {
  margin-bottom: 12px;
}

.post-body h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.post-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
  font-weight: 400;
}

.mini-meta {
  color: #7a8597;
  font-size: 12px;
  font-weight: 750;
}

.reader-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.side-panel {
  padding: 17px;
}

.side-panel h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.blog-profile {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.blog-profile img {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 8px;
}

.blog-profile h2,
.blog-profile strong {
	display: block;
	margin: 0 0 6px;
	color: var(--ink);
	font-size: 20px;
	line-height: 1.1;
	font-weight: 850;
}

.blog-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
  font-weight: 650;
}

.blog-profile a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.reader-menu {
  display: grid;
  gap: 6px;
}

.reader-menu a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  color: #324154;
  font-size: 14px;
  font-weight: 700;
}

.reader-menu a:hover {
  border-color: #d5e2f2;
  background: #f6f9fc;
}

.search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.search-panel input {
  width: 100%;
}

.recent-links {
  display: grid;
  gap: 9px;
}

.recent-links a {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.recent-links a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.recent-links span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 800;
  word-break: keep-all;
}

.recent-links small {
  color: #7a8597;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.archive-links {
  display: grid;
  gap: 7px;
}

.archive-links a {
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  color: #324154;
  font-size: 13px;
  font-weight: 750;
}

.archive-links a:hover {
  border-color: #d5e2f2;
  background: #f6f9fc;
}

.archive-links small {
  min-width: 24px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf3fa;
  color: #627086;
  font-size: 11px;
  font-weight: 850;
}

.report-page {
  min-height: 100vh;
  padding: 36px 0 56px;
  background: var(--paper);
}

.report-page-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.report-article-wrap {
  max-width: 880px;
}

.report-page-head {
  margin-bottom: 22px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.report-page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.report-page-head p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

.report-list {
  display: grid;
  gap: 14px;
}

.report-list-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.report-list-thumb {
  min-height: 148px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe7f2;
}

.report-list-thumb img,
.report-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.report-list-body {
  min-width: 0;
  align-self: center;
}

.report-list-body h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
  word-break: keep-all;
}

.report-list-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.report-pagination {
  margin-top: 22px;
}

.report-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-pagination .page-numbers {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #4a5668;
  font-weight: 800;
}

.report-pagination .page-numbers.current {
  border-color: #dce8ff;
  background: #eef4ff;
  color: var(--blue);
}

.empty-state,
.report-article {
  padding: 26px;
}

.empty-state h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.report-hero-image {
  height: 360px;
  overflow: hidden;
  margin: 0 0 18px;
  border-radius: 8px;
  background: #dfe7f2;
}

.report-meta-panel {
  margin-bottom: 20px;
  padding: 16px;
  box-shadow: none;
}

.report-meta-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.report-meta-panel dt {
  margin-bottom: 5px;
  color: #7a8597;
  font-size: 12px;
  font-weight: 800;
}

.report-meta-panel dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.report-author-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #e3ebf5;
  border-radius: 8px;
  background: #f8fbff;
}

.report-author-avatar {
  width: 72px;
  height: 72px;
  border: 1px solid #dbe8f5;
  border-radius: 50%;
  background: #eef6ff;
  object-fit: cover;
  object-position: center;
}

.report-author-kicker {
  margin-bottom: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.report-author-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.report-author-date {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.report-risk-note {
  margin-top: 24px;
  padding: 16px;
  background: #fff8e8;
  color: #81520d;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.comments-area {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 44, 63, 0.06);
}

.comments-title,
.comment-reply-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.comment-entry {
  margin-top: 14px;
}

.comment-entry[open] .comment-toggle {
  margin-bottom: 12px;
}

.comment-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  padding: 0 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.comment-toggle::marker {
  content: "";
}

.comment-toggle::-webkit-details-marker {
  display: none;
}

.comment-toggle::after {
  content: "+";
  margin-left: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.comment-entry[open] .comment-toggle::after {
  content: "-";
}

.comment-entry-panel {
  border-top: 1px solid #edf2f7;
  padding-top: 12px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.comment-list .comment-body {
  padding: 12px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #f8fafc;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-author .avatar {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8efe4;
  object-fit: cover;
}

.comment-author .says {
  display: none;
}

.comment-meta,
.comment-notes,
.logged-in-as,
.form-allowed-tags {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.comment-content {
  color: var(--text);
  font-size: 14px;
  line-height: 1.62;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form p {
  margin: 0;
}

.comment-form .comment-notes {
  padding: 8px 10px;
  border-radius: 7px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.comment-form-comment {
  align-items: start;
}

.comment-form label {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.45;
}

.comment-form input {
  min-height: 34px;
}

.comment-form textarea {
  height: 92px;
  min-height: 92px;
  resize: vertical;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 2px 0 0 72px;
  padding: 7px 10px;
  border: 1px solid #edf2f7;
  border-radius: 7px;
  background: #f8fafc;
  color: #64748b;
}

.comment-form-cookies-consent input {
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.comment-form-cookies-consent label {
  display: inline;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.comment-form .form-submit {
  margin: 2px 0 0 72px;
}

.comment-form .submit {
  width: auto;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .comments-area {
    padding: 16px;
  }

  .comment-form-comment,
  .comment-form-author,
  .comment-form-email,
  .comment-form-url {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
  }

  .comment-form-cookies-consent,
  .comment-form .form-submit {
    margin-left: 58px;
  }
}

.page-content {
  max-width: 760px;
}

.page-content h2 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.page-content p,
.page-content li {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 600;
  word-break: keep-all;
}

.page-content p {
  margin: 0 0 14px;
}

.page-content ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.page-content a {
  color: var(--blue);
  font-weight: 800;
}

.about-maker-story {
  margin-bottom: 28px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.about-maker-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.about-maker-avatar {
  display: block;
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.about-maker-name,
.about-maker-story h2 {
  margin: 0 0 14px;
  max-width: 640px;
  color: var(--text-strong);
  font-size: 25px;
  line-height: 1.3;
  font-weight: 400;
}

.about-maker-name {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 21px;
}

.about-maker-head .about-maker-name {
  margin-bottom: 8px;
}

.about-maker-head h2:not(.about-maker-name) {
  margin-bottom: 0;
}

.page-content .about-maker-lead {
  margin: 20px 0 18px;
  padding: 0;
  border: 0;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

.about-story-flow {
  display: grid;
  gap: 12px;
  padding-left: 0;
  border-left: 0;
  border-top: 0;
}

.page-content .about-story-flow p {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.about-story-flow strong {
  color: var(--ink);
  font-weight: 900;
}

.about-projects {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

.about-projects .about-section-kicker {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 18px;
}

.about-project-list {
  display: grid;
  gap: 0;
}

.about-project-entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.about-project-entry + .about-project-entry {
  margin-top: 16px;
}

.about-project-year {
  color: var(--accent-dark);
  font-family: var(--font-terminal);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.about-project-entry h3 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
}

.page-content .about-project-entry p {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

.page-content .about-project-entry p:last-child {
  margin-bottom: 0;
}

.about-agent-profile {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 22px 0 26px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.about-agent-profile img {
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  object-fit: contain;
  object-position: center;
}

.about-agent-profile h2 {
  margin: 0 0 8px;
}

.page-content .about-agent-profile p {
  margin-bottom: 8px;
}

.about-comment-agents {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

.about-comment-agents-head {
  max-width: 720px;
  margin-bottom: 18px;
}

.about-section-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 400;
}

.about-comment-agents h2 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 400;
}

.page-content .about-comment-agents-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.about-agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  border-top: 1px solid var(--line);
}

.about-comment-agent-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.about-agent-avatar {
  display: block;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  object-fit: contain;
  object-position: center;
  box-shadow: none;
}

.about-comment-agent-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.page-content .about-agent-role {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

.page-content .about-comment-agent-card p:last-child {
  margin-bottom: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.page-content-agents {
  max-width: 880px;
}

.agents-page {
  display: grid;
  gap: 0;
  max-width: 880px;
}

.agents-page section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.agents-page section:first-child {
  padding-top: 0;
  border-top: 0;
}

.agents-kicker {
  margin: 0 0 8px !important;
  color: var(--accent-dark) !important;
  font-family: var(--font-terminal);
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

.agents-intro h2 {
  max-width: 640px;
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 25px;
  line-height: 1.3;
  font-weight: 400;
}

.page-content .agents-intro p:not(.agents-kicker),
.page-content .agents-note p {
  max-width: 760px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

.agents-primary,
.agent-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.agents-lead-avatar,
.agent-avatar {
  display: block;
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  object-fit: contain;
  object-position: center;
  box-shadow: none;
}

.agents-primary h2,
.agents-flow h2,
.agents-roster h2,
.agents-note h2 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 400;
}

.page-content .agents-primary p:not(.agents-kicker),
.page-content .agent-row p:not(.agents-kicker),
.page-content .agents-step-list p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

.agents-flow {
  display: grid;
  gap: 12px;
}

.agents-step-list,
.agents-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agents-step-list li,
.agent-row {
  padding: 16px 0;
  border-top: 1px dashed var(--line);
}

.agents-step-list li {
  display: grid;
  grid-template-columns: 46px minmax(150px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.agents-step-list span,
.agent-role {
  color: var(--accent-dark);
  font-family: var(--font-terminal);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

.agents-step-list strong {
  color: var(--text-strong) !important;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400 !important;
}

.agents-section-head {
  margin-bottom: 4px;
}

.agent-row h3 {
  margin: 0 0 4px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
}

.agent-role {
  margin: 0 0 7px !important;
}

.agents-note {
  padding-bottom: 0 !important;
}

@media (max-width: 1100px) {
  .blog-layout,
  .magazine-layout {
    grid-template-columns: 1fr;
  }

  .reader-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-container,
  .report-page-inner {
    width: calc(100% - 28px);
    max-width: 1180px;
  }

  .blog-top-banner {
    padding: 12px 0 10px;
  }

  .blog-top-banner img {
    height: 86px;
  }

  .menu-inner {
    grid-template-columns: 1fr auto;
    min-height: 48px;
    gap: 8px;
  }

  .top-menu a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .header-search input {
    display: none;
  }

  .header-search button {
    width: 54px;
    padding: 0;
  }

  .site-main {
    padding-top: 14px;
  }

  .home-article {
    padding: 22px 18px;
    overflow: hidden;
  }

  .home-article-head h1,
  .report-page-head h1 {
    font-size: 27px;
  }

  .home-content,
  .report-content {
    font-size: 15px;
    line-height: 1.76;
  }

  .post-grid,
  .reader-sidebar {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head.compact {
    align-items: flex-start;
  }

  .report-list-card {
    grid-template-columns: 1fr;
  }

  .report-meta-panel dl {
    grid-template-columns: 1fr;
  }

  .report-author-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .report-author-avatar {
    width: 58px;
    height: 58px;
  }

  .about-agent-profile {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .about-agent-profile img {
    width: 72px;
    height: 72px;
  }

  .about-maker-head {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
  }

  .about-maker-avatar {
    width: 72px;
    height: 72px;
  }

  .about-project-entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .about-project-year {
    font-size: 13px;
  }

  .about-maker-story h2 {
    font-size: 24px;
  }

  .about-maker-name {
    font-size: 22px;
  }

  .page-content .about-maker-lead {
    font-size: 17px;
  }

  .about-story-flow {
    padding-left: 14px;
  }

  .about-agent-grid {
    grid-template-columns: 1fr;
  }

  .about-comment-agent-card {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 0;
    padding: 14px;
  }

  .about-agent-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
  }

  .report-hero-image {
    height: 240px;
  }
}

/* Terminal study-note skin, adapted from docs/prototypes/fintong-terminal-claude-v2.html. */
:root {
  --bg: #f8f1e7;
  --paper: #fffaf2;
  --panel: #fff8ee;
  --panel-2: #fdf3e7;
  --ink: #3a312b;
  --text: #554b42;
  --text-strong: #2f2621;
  --muted: #837466;
  --faint: #9a8b7b;
  --line: #dbc7b2;
  --line-soft: #eadccf;
  --accent: #c96342;
  --accent-dark: #a84d32;
  --blue: var(--accent-dark);
  --green: #3a9b6a;
  --navy: #3a312b;
  --soft: #f4eadf;
  --font-body: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --font-terminal: "SFMono-Regular", "JetBrains Mono", ui-monospace, "Menlo", "Monaco", "Consolas", monospace;
  --shadow: none;
  --sticky-header-offset: 196px;
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  word-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

html {
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 20px 20px, rgba(201, 99, 66, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fbf6ed 0%, var(--bg) 100%);
  background-size: 26px 26px, auto;
  color: var(--text);
}

.site-container,
.report-page-inner {
  width: min(1220px, calc(100% - 40px));
}

.site-header {
  position: static;
  z-index: auto;
  background: var(--bg);
  padding-top: 5px;
}

.blog-top-banner {
  padding: 0;
  background: transparent;
}

.blog-top-banner .site-container {
  border: 1px solid var(--line);
  border-bottom: 0;
}

.terminal-hero {
  min-height: 122px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
  padding: 18px clamp(24px, 3vw, 38px);
}

.terminal-hero::after {
  display: none;
  content: none;
}

.terminal-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: baseline;
  gap: 10px;
  color: var(--accent-dark);
  font-family: var(--font-terminal);
  font-size: clamp(29px, 3.15vw, 39px);
  line-height: 1.15;
  font-weight: 900;
  word-spacing: 0;
}

.terminal-prompt {
  color: var(--accent-dark);
}

.terminal-tagline,
.terminal-disclaimer {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 400;
  word-break: keep-all;
}

.terminal-tagline {
  margin-top: 12px;
}

.terminal-disclaimer {
  margin-top: 1px;
}

.menu-bar {
  border: 0;
  background: transparent;
}

.menu-inner {
  min-height: 54px;
  padding: 0 10px 0 16px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: transparent;
}

.top-menu {
  gap: 8px;
}

.top-menu-primary {
  justify-content: flex-start;
}

.top-menu-meta {
  justify-content: flex-end;
}

.top-menu a {
  min-height: 38px;
  border-radius: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.top-menu a:hover,
.top-menu a:focus {
  background: transparent;
  color: var(--accent-dark);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-search input,
.search-panel input,
.comment-form input,
.comment-form textarea {
  border-color: var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.header-search button,
.search-panel button,
.comment-form .submit,
.comment-toggle {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 400;
}

.site-main {
  padding: 0 0 56px;
}

.site-main > .site-container {
  border: 1px solid var(--line);
  background: transparent;
}

.blog-layout,
.magazine-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.blog-main,
.magazine-main {
  padding-right: 0;
  border-right: 1px solid var(--line);
}

.home-article,
.latest-section,
.side-panel,
.report-article,
.report-meta-panel,
.report-risk-note,
.report-list-card,
.empty-state,
.post-card,
.comments-area {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-article,
.report-article,
.empty-state {
  padding: clamp(20px, 3vw, 30px) clamp(18px, 3vw, 28px);
}

.section-kicker,
.badge {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 400;
}

.home-article-head {
  margin-bottom: 18px;
}

.home-article-head h1,
.report-page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.55vw, 32px);
  line-height: 1.26;
  font-weight: 400;
  letter-spacing: 0;
  word-break: keep-all;
}

.report-page-head.archive-page-head {
  margin: 0 0 24px;
  padding: clamp(20px, 3vw, 30px) clamp(18px, 3vw, 28px) 0;
}

.report-page-head.archive-page-head h1 {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--accent-dark);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.report-page-head.archive-page-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
}

.report-list-card {
  grid-template-columns: 264px minmax(0, 1fr);
  align-items: center;
}

.article-meta,
.report-page-head p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.home-article-head .badge-row,
.report-page-head .badge-row {
  margin: 0 0 18px;
}

.home-article-image,
.report-hero-image,
.report-list-thumb {
  height: auto;
  max-height: none;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
}

.report-list-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  margin: 0;
}

.home-article-image img,
.report-hero-image img,
.report-list-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.report-list-thumb img {
  height: 100%;
}

.home-content,
.report-content,
.page-content p,
.page-content li,
.comment-content {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  word-break: keep-all;
}

.home-content p,
.home-content li,
.report-content p,
.report-content li {
  color: var(--text) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  font-weight: 400 !important;
}

.home-content h2,
.home-content h3,
.report-content h2,
.report-content h3,
.page-content h2 {
  color: var(--text-strong);
  font-weight: 400;
}

.home-content h2,
.home-content h3,
.home-content h4,
.home-content h5,
.home-content h6,
.report-content h2,
.report-content h3,
.report-content h4,
.report-content h5,
.report-content h6,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: var(--text-strong) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.home-content strong,
.home-content b,
.home-content [style*="font-weight"],
.report-content strong,
.report-content b,
.report-content [style*="font-weight"],
.page-content strong,
.page-content b,
.page-content [style*="font-weight"] {
  color: var(--text-strong) !important;
  font-weight: 400 !important;
}

.home-content table,
.report-content table,
.page-content table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
}

.fintong-table-image-figure {
  margin: 20px 0 28px;
}

.fintong-table-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  background: transparent;
}

.fintong-table-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.home-content img,
.report-content img,
.page-content img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.home-content img:not(.fintong-table-image),
.report-content img:not(.fintong-table-image),
.page-content img:not(.fintong-table-image) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
  box-sizing: border-box;
}

.page-content .about-maker-avatar,
.page-content .about-agent-profile img,
.page-content .about-agent-avatar,
.page-content .agents-lead-avatar,
.page-content .agent-avatar {
  aspect-ratio: 1 !important;
  border: 1px solid var(--line) !important;
  border-radius: 50% !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}

.page-content .about-maker-avatar {
  width: 88px !important;
  height: 88px !important;
  object-fit: cover !important;
}

.page-content .about-agent-profile img {
  width: 84px !important;
  height: 84px !important;
  object-fit: contain !important;
}

.page-content .about-agent-avatar {
  width: 70px !important;
  height: 70px !important;
  object-fit: contain !important;
}

.page-content .agents-lead-avatar,
.page-content .agent-avatar {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
}

.page-content img.agents-lead-avatar,
.page-content img.agent-avatar {
  width: 72px !important;
  max-width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
}

.report-author-card {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.report-author-avatar {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  object-fit: contain;
  object-position: center;
}

.report-author-kicker {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 400;
}

.report-author-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}

.report-author-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.report-risk-note {
  margin-top: 24px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.reader-sidebar {
  gap: 0;
  align-self: start;
  max-height: none;
  overflow: visible;
  padding-left: 0;
  position: static;
}

.side-panel {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.side-panel h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
}

.search-panel form {
  gap: 6px;
}

.search-panel input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 0 9px;
  font-size: 13px;
}

.search-panel button {
  flex: 0 0 auto;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.blog-profile {
  display: block;
  grid-template-columns: 1fr;
}

.blog-profile-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.blog-profile img.blog-profile-avatar {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  object-fit: cover;
}

.blog-profile h2,
.blog-profile strong {
  font-size: 18px;
  font-weight: 400;
}

.blog-profile p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.68;
  font-weight: 400;
}

.blog-profile-intro {
  margin: 0;
}

.blog-profile a,
.text-link,
.page-content a {
  color: var(--accent-dark);
  font-weight: 400;
}

.recent-links {
  gap: 0;
}

.recent-links a,
.archive-links a,
.recommended-list li + li {
  border-color: var(--line);
}

.recent-links a {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.recent-links span {
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.recent-links small,
.recommended-list time,
.archive-links small,
.mini-meta {
  color: var(--muted);
  font-weight: 400;
}

.recommended-list,
.post-card,
.archive-links a,
.reader-menu a,
.comment-list .comment-body,
.comment-form .comment-notes {
  border-color: var(--line);
  border-radius: 0;
  background: transparent;
}

.recommended-list a {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 400;
}

.recommended-dot {
  color: var(--accent-dark);
}

.recommended-list a:hover,
.recommended-list a:focus,
.reader-menu a:hover,
.archive-links a:hover {
  background: transparent;
  color: var(--accent-dark);
}

.section-head h1,
.section-head h2,
.report-list-body h2,
.post-body h3,
.comments-title,
.comment-reply-title {
  color: var(--ink);
  font-weight: 400;
}

body.page .blog-main > .page-content {
  margin-left: clamp(18px, 3vw, 28px);
  margin-right: clamp(18px, 3vw, 28px);
}

body.page .blog-main > .report-page-head {
  margin: 0 0 24px;
  padding: clamp(20px, 3vw, 30px) clamp(18px, 3vw, 28px) 0;
}

body.page .blog-main > .report-page-head h1 {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--accent-dark);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.tarot-main {
  padding-top: 18px;
}

.tarot-app {
  display: grid;
  gap: 18px;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.tarot-controls,
.tarot-question,
.tarot-stage,
.tarot-reading-box,
.tarot-footnote {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.tarot-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.tarot-spread-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tarot-spread-tabs button,
.tarot-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #273448;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.tarot-spread-tabs button.is-active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.tarot-reversal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.tarot-reversal-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #111827;
}

.tarot-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.tarot-question label {
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

.tarot-question input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 15px;
}

.tarot-actions {
  display: flex;
  gap: 8px;
}

.tarot-actions .tarot-primary {
  border-color: #6b1f2d;
  background: #6b1f2d;
  color: #fff;
}

.tarot-actions .tarot-secondary:hover,
.tarot-spread-tabs button:not(.is-active):hover {
  background: #edf3fa;
}

.tarot-stage {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
}

.tarot-deck-button {
  width: 180px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.tarot-card-back {
  position: relative;
  display: block;
  width: 180px;
  aspect-ratio: 3 / 5;
  overflow: hidden;
  border: 8px solid #f7efe3;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 239, 227, 0.9) 0 9%, transparent 10%),
    linear-gradient(135deg, #142235, #6b1f2d 48%, #1d2b42);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.22);
}

.tarot-card-back::before,
.tarot-card-back::after {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(247, 239, 227, 0.74);
  border-radius: 6px;
  content: "";
}

.tarot-card-back::after {
  inset: 34px;
  border-style: dashed;
  opacity: 0.72;
}

.tarot-deck-copy {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  color: #344054;
  font-size: 13px;
}

.tarot-deck-copy strong {
  color: var(--ink);
  font-size: 20px;
}

.tarot-reading-intro h2,
.tarot-reading-box h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 750;
  word-break: keep-all;
}

.tarot-reading-intro p,
.tarot-reading-box p,
.tarot-footnote {
  margin: 0;
  color: #4b5870;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.tarot-spread {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.tarot-spread[data-count="1"] {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.tarot-spread:empty {
  display: none;
}

.tarot-result-card {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tarot-position {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

.tarot-card-frame {
  display: grid;
  place-items: center;
  padding: 14px;
  background: #f3efe9;
}

.tarot-card-image {
  width: min(100%, 260px);
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.18);
  transition: transform 180ms ease;
}

.tarot-card-image.is-reversed {
  transform: rotate(180deg);
}

.tarot-card-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.tarot-card-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 750;
}

.tarot-card-copy p {
  margin: 0;
  color: #5b6678;
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}

.tarot-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tarot-keywords span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9c7b7;
  border-radius: 8px;
  background: #fff8ef;
  color: #5b3140;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 750;
}

.tarot-card-copy .tarot-card-meaning {
  color: #273448;
  font-size: 15px;
}

.tarot-reading-box {
  padding: 20px;
}

.tarot-footnote {
  padding: 14px 16px;
}

body.tarot-page-view .site-main {
  padding-bottom: 64px;
}

@media (max-width: 1100px) {
  .blog-layout,
  .magazine-layout {
    grid-template-columns: 1fr;
  }

  .blog-main,
  .magazine-main {
    padding-right: 0;
    border-right: 0;
  }

  .reader-sidebar {
    max-height: none;
    overflow: visible;
    padding-left: 0;
    position: static;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .site-container,
  .report-page-inner {
    width: calc(100% - 20px);
  }

  .terminal-hero {
    min-height: 112px;
    padding: 16px 18px;
  }

  .terminal-hero::after {
    display: none;
  }

  .terminal-brand {
    font-size: 29px;
  }

  .terminal-tagline,
  .terminal-disclaimer {
    max-width: 310px;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .menu-inner {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .top-menu {
    justify-content: flex-start;
  }

  .top-menu-meta {
    padding-top: 7px;
    border-top: 1px dashed var(--line);
  }

  .header-search {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-search input,
  .header-search button {
    display: block;
    width: 100%;
  }

  .home-article,
  .report-article {
    padding: 18px 14px;
  }

  .report-list-card {
    grid-template-columns: 1fr;
  }

  .report-list-thumb {
    width: 100%;
  }

  .page-content .about-maker-avatar,
  .page-content .about-agent-profile img,
  .page-content .agents-lead-avatar {
    width: 72px !important;
    height: 72px !important;
  }

  .page-content .about-agent-avatar,
  .page-content .agent-avatar {
    width: 64px !important;
    height: 64px !important;
  }

  .page-content img.agent-avatar {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
  }

  .agents-primary,
  .agent-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .agents-step-list li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
  }

  .agents-step-list p {
    grid-column: 2;
  }

  .home-article-head h1,
  .report-page-head h1 {
    font-size: 21px;
    line-height: 1.3;
  }

  .home-content,
  .report-content,
  .page-content p,
  .page-content li {
    font-size: 15px;
  }

  .report-author-card {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 12px;
  }

  .report-author-avatar {
    width: 48px;
    height: 48px;
  }

  .tarot-controls,
  .tarot-question,
  .tarot-stage {
    grid-template-columns: 1fr;
  }

  .tarot-controls {
    align-items: start;
  }

  .tarot-controls,
  .tarot-question,
  .tarot-stage {
    display: grid;
  }

  .tarot-spread-tabs,
  .tarot-actions {
    width: 100%;
  }

  .tarot-spread-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tarot-spread-tabs button,
  .tarot-actions button {
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
  }

  .tarot-deck-button,
  .tarot-card-back {
    width: min(180px, 54vw);
    justify-self: center;
  }

  .tarot-reading-intro {
    text-align: left;
  }

  .tarot-spread,
  .tarot-spread[data-count="1"] {
    grid-template-columns: 1fr;
  }

  .tarot-card-image {
    width: min(100%, 230px);
  }
}
