/* AI시테이 magazine: white paper, charcoal type, forest green accents. */
:root {
  color-scheme: light;
  --notice: #fff8e1; --notice-strong: #835a00; --notice-line: #b18b3b;
  --on-accent: #fff; --paper: #fff; --surface: #f3f5f3; --text: #202522; --muted: #68716c;
  --line: #e3e7e4; --blue: #315e49; --accent: #315e49; --radius: 2px;
  /* Legacy article and pipeline templates use these aliases. */
  --bg: #fff; --bg-secondary: #f3f5f3; --text-secondary: #68716c;
  --border: #e3e7e4; --brand-color: #315e49; --card: #fff;
  --card-2: #f3f5f3; --text-2: #68716c; --text-3: #68716c;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --notice: #332d1d; --notice-strong: #e8ca88; --notice-line: #9c813f;
  --paper: #171c19; --surface: #222b25; --text: #e6ede8; --muted: #a5b2a9;
  --line: #36443c; --blue: #a6cfb4; --accent: #a6cfb4; --on-accent: #15251b;
  --bg: #171c19; --bg-secondary: #222b25; --text-secondary: #a5b2a9;
  --border: #36443c; --brand-color: #a6cfb4; --card: #171c19;
  --card-2: #222b25; --text-2: #a5b2a9; --text-3: #a5b2a9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans KR',sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button,input,select { font: inherit; }
button,select { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .45; cursor: default; }
img { max-width: 100%; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px; z-index: 1000; background: var(--accent); color: var(--on-accent); }
.skip-link:focus { top: 12px; }
/* Shared chrome, including standalone reports. */
.masthead { position: sticky; top: 0; z-index: 100; background: var(--paper); padding: 0; margin: 0; border: 0; border-radius: 0; text-align: left; }
.masthead-inner { max-width: 1240px; margin: auto; padding: 22px 32px; min-height: 94px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--text); }
.wordmark { display: flex; flex-direction: column; gap: 0; margin-right: auto; font-size: 25px; font-weight: 750; line-height: 1.3; letter-spacing: -1.1px; color: var(--text); white-space: nowrap; }
.wordmark small { font-size: 10px; font-weight: 500; letter-spacing: 1.6px; color: var(--muted); margin-top: 2px; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { font-size: 14px; color: var(--muted); padding: 9px 0; white-space: nowrap; }
.primary-nav a:hover,.primary-nav a[aria-current] { color: var(--accent); }
.primary-nav a[aria-current] { text-decoration: underline; text-underline-offset: 9px; text-decoration-thickness: 2px; font-weight: 600; }
.language-control select,.archive-control select { background: var(--paper); color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 9px 11px; max-width: 100%; font-size: 13px; min-height: 42px; }
.report-language { font-size: 13px; color: var(--muted); }
.news-shell { max-width: 1240px; margin: auto; padding: 0 32px 64px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 35px 0 29px; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.intro h1 { font-size: clamp(28px,3vw,36px); font-weight: 650; line-height: 1.35; letter-spacing: -1.3px; margin: 0 0 10px; word-break: keep-all; }
.intro-description { font-size: 14px; color: var(--muted); margin: 0; }
.edition { font-size: 11px; text-align: right; color: var(--muted); white-space: nowrap; padding-bottom: 4px; }
.edition strong { display: block; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; margin-top: 3px; }
.reader-tools { display: flex; align-items: center; gap: 20px; margin-bottom: 19px; scroll-margin-top: 115px; }
.search-box { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 4px 5px 4px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }
.search-box:focus-within { border-color: var(--accent); }
.search-box>span[aria-hidden] { color: var(--muted); font-size: 24px; }
.search-box input { min-width: 0; width: 100%; padding: 8px 0; font-size: 14px; border: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: var(--muted); }
.search-box button { border: 0; background: var(--surface); padding: 8px 17px; border-radius: 2px; font-size: 13px; white-space: nowrap; min-height: 40px; }
.archive-control { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.topic-nav { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--line); }
.topic-tab { padding: 9px 0 13px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.topic-tab:hover,.topic-tab.selected { color: var(--accent); }
.topic-tab.selected { border-color: var(--accent); font-weight: 600; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 25px 0 18px; }
.section-heading h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.4px; }
#result-count { font-size: 12px; color: var(--muted); }
.featured-grid,.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 26px; }
.news-card { min-width: 0; padding-bottom: 23px; }
.news-card a { display: block; height: 100%; }
.news-image { aspect-ratio: 16/10; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.news-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-image img.fallback-image { object-fit: contain; padding: 35px; opacity: .85; }
.news-image img.fallback-image { background: var(--surface); }
/* Skeleton shown until a thumbnail has loaded (the CDN can stall for 20s+). */
.news-image:not(.is-loaded) { background: linear-gradient(100deg, var(--surface) 30%, var(--line) 50%, var(--surface) 70%) 0 0 / 200% 100%; animation: news-shimmer 1.4s linear infinite; }
@keyframes news-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.loading-state { margin: 0 0 18px; padding: 10px 14px; background: var(--surface); border-left: 3px solid var(--accent); color: var(--muted); font-size: 14px; }
.loading-state::before { content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 9px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: news-spin .8s linear infinite; }
@keyframes news-spin { to { transform: rotate(360deg); } }
#news-content[aria-busy="true"] :is(.featured-grid,.news-grid) { opacity: .55; transition: opacity .15s; }
@media(prefers-reduced-motion:reduce) { .news-image:not(.is-loaded), .loading-state::before { animation: none; } }
.news-copy { padding-top: 15px; }
.news-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: 11px; margin-bottom: 8px; }
.topic { color: var(--accent); font-weight: 500; }
.news-meta time { color: var(--muted); font-variant-numeric: tabular-nums; }
.news-card h2 { font-size: 19px; font-weight: 600; line-height: 1.6; letter-spacing: -.45px; margin: 0; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.news-card a:hover h2 { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.read-story { display: none; }
.latest-section { border-top: 1px solid var(--text); margin-top: 8px; }
.news-grid .news-card { border-bottom: 1px solid var(--line); }
.filter-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.filter-state button { border: 0; padding: 10px 0 10px 12px; color: var(--accent); background: none; white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination a,.pagination button { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.page-status { color: var(--muted); padding: 0 14px; font-size: 13px; }
.empty-state { text-align: center; padding: 60px 12px; }
.empty-state h3 { font-size: 20px; }
.empty-state p,.load-error { color: var(--muted); font-size: 14px; }
.load-error button { margin-left: 12px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 2px; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; max-width: 1176px; margin: auto; padding: 25px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer p { flex: 1; margin: 0; }
.footer-brand { color: var(--text); font-size: 16px; font-weight: 650; }
/* Preserve multilingual article markup; replace its presentation only. */
body:has(.article-main) .page-layout { max-width: 1180px; display: grid; grid-template-columns: minmax(0,760px) 220px; gap: 60px; padding: 38px 28px 65px; margin: auto; }
.article-main { display: flex; flex-direction: column; min-width: 0; }
.article-main .article-meta { order: -3; margin: 0 0 24px; padding: 0; }
.article-main .article-title { font-size: clamp(26px,3vw,36px); line-height: 1.45; font-weight: 650; letter-spacing: -1px; margin: 16px 0 20px; word-break: keep-all; overflow-wrap: anywhere; color: var(--text); }
.article-main .hero-image-wrap { order: -1; max-height: 440px; margin-bottom: 30px; background: var(--surface); border-radius: 2px; }
.article-main .hero-image-wrap img { max-height: 440px; object-fit: contain; width: 100%; height: auto; }
.article-main .hero-image-fallback { display: flex; justify-content: center; align-items: center; min-height: 220px; }
.article-main .hero-image-fallback img { width: 180px; height: 180px; object-fit: contain; }
.article-main>.divider { display: none; }
.article-main .article-body { font-size: 17px; line-height: 1.95; letter-spacing: -.15px; color: var(--text); }
.article-main .article-body p { margin-bottom: 24px; }
.article-main .article-body h3 { border: 0; padding: 0; font-size: 22px; line-height: 1.5; margin: 36px 0 16px; color: var(--text); }
.article-main .article-body h3:first-child { margin-top: 0; }
.article-main .badge { background: transparent !important; color: var(--accent) !important; padding: 0; font-size: 12px; border-radius: 0; }
.article-main .badge-row { gap: 16px; }
.article-main .article-info { font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 12px; }
.reader-source { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 12px; }
.reader-source a,.reader-back { color: var(--accent); }
.reader-summary { order: -2; padding: 17px 20px; background: var(--surface); border-left: 2px solid var(--accent); margin: 0 0 25px; font-size: 15px; line-height: 1.8; }
.reader-summary strong { display: block; font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 7px; }
.reader-summary p { margin: 0; }
.reader-breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 23px; display: block; }
.article-main .images-section img { border-radius: 2px; }
.article-main .source-footer { background: var(--surface); border-color: var(--line); border-radius: 2px; }
body:has(.article-main) .sidebar { top: 120px; max-height: calc(100vh - 145px); }
body:has(.article-main) .sidebar-card { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; border-radius: 0; margin-bottom: 24px; }
body:has(.article-main) .sidebar-title { font-size: 13px; color: var(--muted); letter-spacing: 0; }
body:has(.article-main) .cat-btn { font-size: 13px; text-align: left; padding: 10px 0; border-radius: 2px; }
body:has(.article-main) .search-input { min-height: 44px; background: var(--paper); font-size: 14px; border-radius: 2px; }
.adsense-card:not(:has(ins[data-ad-status="filled"])) { display: none !important; }
.related-reading { margin-top: 40px; border-top: 1px solid var(--text); padding-top: 24px; }
.related-reading h2 { font-size: 19px; margin: 0 0 15px; }
.related-reading a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); line-height: 1.6; font-size: 15px; }
.related-reading a:hover { color: var(--accent); }
.reader-back { display: inline-block; font-size: 13px; margin-top: 25px; }
.lang-selector:has(+ .language-control) { display: none !important; }
.article-search-form { display: none; }
.translation-notice { margin: 14px 0 0; font-size: 13px; color: var(--accent); }
.article-main .image-caption { padding: 14px 17px; margin: 10px 0 0; background: var(--surface); border-left: 2px solid var(--accent); border-radius: 0; gap: 10px; }
.article-main .caption-lang { font-size: 14px; line-height: 1.8; color: var(--text); }
.ocr-caption-label { font-size: 11px; font-weight: 600; color: var(--accent); }
.article-main .hero-image-wrap:has(.image-caption:not([hidden])) { max-height: none; overflow: visible; background: none; }
/* Pipeline reports retain every original section, screenshot, caption, and table. */
body.report-reader { background: var(--paper); color: var(--text); }
.report-reader .container { max-width: 850px; padding: 35px 28px 65px; }
.report-reader .container>header { padding: 0 0 25px; margin: 0 0 28px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--paper); text-align: left; }
.report-reader .container>header h1 { font-size: clamp(26px,3vw,36px); letter-spacing: -1px; line-height: 1.45; color: var(--text); }
.report-reader .container>header .meta { font-size: 12px; color: var(--muted); line-height: 1.8; }
.report-reader .container>header a { color: var(--accent); }
.report-reader section { padding: 24px 0; background: var(--paper); border-radius: 0; box-shadow: none; border-left: 0; }
.report-reader h2 { border-bottom: 1px solid var(--line); font-size: 22px; color: var(--text); }
.report-reader h3,.report-reader h4,.report-reader p { color: var(--text); }
.report-reader .summary { padding: 20px; background: var(--surface); border-left: 2px solid var(--accent); }
.report-reader .summary h2 { margin-top: 0; }
.report-reader :is(.camera-feature,.camera-section,.highlight,.lens-card,.dual-model>div,.video-spec) { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; color: var(--text); box-shadow: none; }
.report-reader :is(.camera-feature,.camera-section,.highlight,.lens-card,.dual-model,.video-spec) :is(h3,h4,li,.spec) { color: var(--text); }
.report-reader .price-table { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; color: var(--text); }
.report-reader .price-table h3 { color: var(--text); }
.report-reader .price-item { background: var(--paper); border: 1px solid var(--line); color: var(--text); border-radius: 2px; }
.report-reader table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.report-reader th { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); }
.report-reader td { color: var(--text); border-bottom-color: var(--line); }
.report-reader tr:nth-child(even),.report-reader tr:nth-child(even) td { background: var(--paper); }
.report-reader :is(.caption,figcaption,.img-container .caption) { color: var(--muted); background: var(--surface); font-size: 12px; line-height: 1.8; border-radius: 2px; }
.report-reader :is(figure img,.img-container img) { border-radius: 2px; box-shadow: none; }
@media(min-width:1500px) { .news-shell,.masthead-inner { max-width: 1320px; } .site-footer { max-width: 1256px; } }
@media(max-width:960px) {
  .masthead-inner { gap: 22px; }
  .primary-nav { gap: 20px; }
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-card h2 { font-size: 17px; }
  body:has(.article-main) .page-layout { grid-template-columns: minmax(0,760px); justify-content: center; gap: 24px; }
  body:has(.article-main) .sidebar { display: none; }
  .site-footer { margin: 0 32px; }
  .article-search-form { display: flex; gap: 10px; margin-bottom: 24px; }
  .article-search-form input { flex: 1; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; color: var(--text); padding: 10px 12px; font-size: 16px; }
  .article-search-form button { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 10px 14px; font-size: 14px; }
}
@media(max-width:650px) {
  html { scroll-padding-top: 160px; }
  .masthead-inner { padding: 17px 20px 12px; gap: 10px 16px; flex-wrap: wrap; }
  .wordmark { flex-basis: 100%; font-size: 24px; }
  .primary-nav { gap: 20px; margin-right: auto; }
  .primary-nav a { font-size: 13px; min-height: 44px; }
  .language-control select { font-size: 12px; padding: 8px 5px; max-width: 92px; min-height: 44px; }
  .news-shell { padding: 0 20px 45px; }
  .intro { padding: 28px 0 24px; }
  .intro h1 { font-size: 28px; letter-spacing: -1px; }
  .intro-description { font-size: 14px; line-height: 1.8; }
  .edition { display: none; }
  .reader-tools { flex-wrap: wrap; gap: 10px; scroll-margin-top: 160px; }
  .search-box { flex-basis: 100%; gap: 9px; padding-left: 12px; }
  .search-box input { font-size: 16px; }
  .search-box button { padding: 8px 12px; min-height: 44px; }
  .archive-control { margin-left: auto; }
  .archive-control select { min-height: 44px; }
  .topic-nav { gap: 22px; }
  .topic-tab { font-size: 13px; min-height: 44px; }
  .section-heading { margin: 24px 0 17px; }
  .featured-grid,.news-grid { display: block; }
  .news-card { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .featured-grid>.news-card:first-child,.news-grid>.news-card:first-child { padding-top: 0; }
  .news-card a { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 16px; }
  .news-image { width: 100px; height: 100px; flex: 0 0 100px; aspect-ratio: auto; }
  .news-image img.fallback-image { padding: 15px; }
  .news-copy { padding: 0; flex: 1; min-width: 0; }
  .news-card h2 { font-size: 16px; line-height: 1.6; word-break: normal; }
  .news-meta { font-size: 11px; gap: 5px 8px; margin-bottom: 6px; }
  .latest-section { margin-top: 24px; }
  .site-footer { margin: 0 20px; gap: 12px; }
  .site-footer p { flex-basis: 100%; order: 3; }
  .site-footer>a:last-child { margin-left: auto; }
  body:has(.article-main) .page-layout { padding: 25px 20px 45px; }
  .article-main .article-title { font-size: 27px; }
  .article-main .hero-image-wrap,.article-main .hero-image-wrap img { max-height: 340px; }
  .reader-summary { padding: 16px; }
  .report-reader .container { padding: 28px 20px 45px; }
  .report-reader :is(.price-grid,.dual-model,.lens-grid) { grid-template-columns: 1fr; }
}
@media(max-width:360px) { .primary-nav { gap: 14px; } .primary-nav a { font-size: 12px; } .news-image { width: 85px; height: 90px; flex-basis: 85px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .masthead,.reader-tools,.topic-nav,.pagination,.sidebar { display: none !important; } .report-reader .container { max-width: none; padding: 0; } }

/* Legacy controls and callouts use the same semantic contrast pairs. */
body:has(.article-main) :is(.btn-original,.cat-btn.active-cat,.archive-btn.active) { color: var(--on-accent); }
.report-reader .notice { background: var(--notice); color: var(--text); border-left-color: var(--notice-line); }
.report-reader .notice strong { color: var(--notice-strong); }
.report-reader .product-card { background: var(--surface); border-color: var(--line); border-radius: 2px; }
.report-reader .product-card .pname { color: var(--text); }
.report-reader .product-card .psub { color: var(--muted); }
.report-reader .product-card .pprice { color: var(--accent); }
.report-reader .tag { background: var(--accent); color: var(--on-accent); }
/* A historical report supplied this gradient inline; preserve its content. */
.report-reader .price-table[style] { background: var(--surface) !important; }
/* Appearance is a quiet, persistent header option. */
.display-controls { display: flex; align-items: center; gap: 16px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); background: var(--paper); font-size: 12px; white-space: nowrap; }
.theme-toggle:hover { color: var(--text); background: var(--surface); }
.theme-symbol { display: inline-block; font-size: 20px; line-height: 1; }
:root[data-theme="dark"] .theme-symbol { transform: rotate(180deg); }
:root[data-theme="dark"] .article-main .article-body :is(h2,h3,h4,li,blockquote) { color: var(--text); }
:root[data-theme="dark"] .article-main .source-label { color: var(--muted); }
:root[data-theme="dark"] .article-main :is(.image-caption,.caption-lang,.images-section-title) { color: var(--text); }
:root[data-theme="dark"] .report-reader .camera h2 { border-color: var(--line); }
:root[data-theme="dark"] :is(.masthead-inner,.latest-section,.related-reading) { border-color: var(--line); }
@media(max-width:960px) { .display-controls { gap: 10px; } .theme-toggle [data-theme-label] { display: none; } .theme-toggle { width: 44px; padding: 8px; } }
@media(max-width:650px) {
  .masthead-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .wordmark { grid-column: 1; grid-row: 1; margin-right: 0; }
  .display-controls { grid-column: 2; grid-row: 1; gap: 6px; }
  .primary-nav { grid-row: 2; grid-column: 1/-1; margin: 0; gap: 24px; }
  .display-controls .language-control select { width: 76px; }
}
@media(max-width:360px) {
  .wordmark { font-size: 22px; }
  .wordmark small { font-size: 8px; letter-spacing: 1.2px; }
  .display-controls { gap: 4px; }
  .display-controls .language-control select { width: 70px; }
}
@media print { :root[data-theme="dark"] {
  --paper: #fff; --surface: #f3f5f3; --text: #202522; --muted: #68716c; --line: #e3e7e4;
  --accent: #315e49; --on-accent: #fff; --bg: #fff; --bg-secondary: #f3f5f3;
  --text-secondary: #68716c; --border: #e3e7e4; --brand-color: #315e49;
  --card: #fff; --card-2: #f3f5f3; --text-2: #68716c; --text-3: #68716c;
  --notice: #fff8e1; --notice-strong: #835a00; --notice-line: #b18b3b;
} }
