/* resources/css/news-article.css
   Extracted from resources/views/frontend/news/show.blade.php
   Reason: inline <style> block was pushing page HTML size past the
   1MB soft limit flagged by SEO crawlers ("Html size is too long"). */

.an-page {
    --an-bg: #ffffff;
    --an-soft: #f6f7f9;
    --an-ink: #0d1b2a;
    --an-body: #33414f;
    --an-mute: #6b7a8c;
    --an-line: #e4e8ee;
    --an-brand: #c2181f;
    --an-up: #128a5b;
    --an-down: #c2181f;
    --an-radius: 14px;
    background: var(--an-bg);
    color: var(--an-body);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.an-progress {
    position: fixed; inset: 0 auto auto 0; width: 0; height: 3px; z-index: 9999;
    background: linear-gradient(90deg, var(--an-brand), #ff6b6b);
    transition: width .1s linear;
}

.an-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.an-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.an-link { color: var(--an-brand); font-weight: 600; font-size: .875rem; text-decoration: none; }
.an-link:hover { text-decoration: underline; }
.an-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; margin: 0 8px; vertical-align: middle; }

/* Breadcrumb */
.an-breadcrumb { border-bottom: 1px solid var(--an-line); background: var(--an-soft); }
.an-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 12px 0; font-size: .8125rem; color: var(--an-mute); }
.an-breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.an-breadcrumb a { color: var(--an-mute); text-decoration: none; }
.an-breadcrumb a:hover { color: var(--an-brand); }

/* Layout */
.an-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 40px 20px 56px; align-items: start; }

/* Hero */
.an-tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.an-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--an-line); background: #fff; color: var(--an-body);
    font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; transition: .18s ease;
}
.an-chip:hover { border-color: var(--an-brand); color: var(--an-brand); transform: translateY(-1px); }
.an-chip--primary { background: var(--an-brand); border-color: var(--an-brand); color: #fff; text-transform: uppercase; }
.an-chip--primary:hover { color: #fff; opacity: .92; }
.an-count { font-size: .6875rem; color: var(--an-mute); }

.an-title { margin: 18px 0 0; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.14; letter-spacing: -.02em; font-weight: 800; color: var(--an-ink); }
.an-excerpt { margin: 16px 0 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--an-mute); max-width: 68ch; }

.an-byline { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 26px 0 0; padding: 16px 0; border-top: 1px solid var(--an-line); border-bottom: 1px solid var(--an-line); }
.an-byline__author { display: flex; align-items: center; gap: 12px; }
.an-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.an-avatar--fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--an-ink); color: #fff; font-weight: 700; }
.an-byline__meta { display: flex; flex-direction: column; gap: 2px; }
.an-byline__name { font-weight: 700; color: var(--an-ink); text-decoration: none; font-size: .9375rem; }
.an-byline__name:hover { color: var(--an-brand); }
.an-byline__sub { font-size: .8125rem; color: var(--an-mute); }

.an-share { display: flex; gap: 8px; }
.an-share__btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px;
    border-radius: 10px; border: 1px solid var(--an-line); background: #fff; color: var(--an-ink);
    font-size: .8125rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: .18s ease;
}
.an-share__btn:hover { background: var(--an-ink); border-color: var(--an-ink); color: #fff; }

/* Figure */
.an-figure { margin: 28px 0 0; }
.an-figure img { width: 100%; height: auto; border-radius: var(--an-radius); display: block; background: var(--an-soft); }
.an-figure figcaption { margin-top: 10px; font-size: .8125rem; color: var(--an-mute); border-left: 3px solid var(--an-brand); padding-left: 10px; }

/* Content */
.an-content { margin-top: 32px; font-size: 1.0625rem; line-height: 1.8; color: var(--an-body); max-width: 74ch; }
.an-content > * + * { margin-top: 1.15em; }
.an-content h2 { margin-top: 2.2em; font-size: 1.6rem; line-height: 1.3; font-weight: 800; color: var(--an-ink); letter-spacing: -.01em; }
.an-content h3 { margin-top: 1.8em; font-size: 1.25rem; font-weight: 700; color: var(--an-ink); }
.an-content a { color: var(--an-brand); text-decoration: underline; text-underline-offset: 3px; }
.an-content ul, .an-content ol { padding-left: 1.35em; }
.an-content li + li { margin-top: .5em; }
.an-content img { max-width: 100%; height: auto; border-radius: var(--an-radius); }
.an-content blockquote { margin: 1.8em 0; padding: 18px 22px; background: var(--an-soft); border-left: 4px solid var(--an-brand); border-radius: 0 var(--an-radius) var(--an-radius) 0; font-size: 1.125rem; color: var(--an-ink); }
.an-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.an-content th, .an-content td { border: 1px solid var(--an-line); padding: 10px 12px; text-align: left; }
.an-content th { background: var(--an-soft); color: var(--an-ink); }

/* Blocks */
.an-block { margin-top: 44px; }
.an-block__title { margin: 0 0 16px; font-size: 1.1rem; font-weight: 800; color: var(--an-ink); text-transform: uppercase; letter-spacing: .06em; }
.an-block__title::after { content: ""; display: block; width: 42px; height: 3px; background: var(--an-brand); border-radius: 2px; margin-top: 8px; }

.an-company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.an-company { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--an-line); border-radius: var(--an-radius); text-decoration: none; background: #fff; transition: .18s ease; }
.an-company:hover { border-color: var(--an-brand); box-shadow: 0 8px 22px rgba(13, 27, 42, .07); transform: translateY(-2px); }
.an-company__code { font-weight: 800; color: var(--an-brand); font-size: .8125rem; letter-spacing: .06em; }
.an-company__name { font-size: .9375rem; color: var(--an-ink); font-weight: 600; }

.an-faq { border: 1px solid var(--an-line); border-radius: var(--an-radius); overflow: hidden; }
.an-faq__item + .an-faq__item { border-top: 1px solid var(--an-line); }
.an-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--an-ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.an-faq summary::-webkit-details-marker { display: none; }
.an-faq summary::after { content: "+"; color: var(--an-brand); font-size: 1.25rem; line-height: 1; }
.an-faq__item[open] summary::after { content: "–"; }
.an-faq__answer { padding: 0 18px 18px; color: var(--an-body); line-height: 1.75; font-size: .9375rem; }

.an-authorcard { display: flex; gap: 18px; margin-top: 44px; padding: 22px; background: var(--an-soft); border-radius: var(--an-radius); border: 1px solid var(--an-line); }
.an-authorcard__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; font-size: 1.5rem; }
.an-authorcard__label { display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--an-mute); }
.an-authorcard__name { display: inline-block; margin-top: 2px; font-size: 1.0625rem; font-weight: 800; color: var(--an-ink); text-decoration: none; }
.an-authorcard__bio { margin: 8px 0 10px; font-size: .9375rem; line-height: 1.65; }

/* Sidebar */
.an-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.an-card { border: 1px solid var(--an-line); border-radius: var(--an-radius); padding: 18px; background: #fff; }
.an-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.an-card__head h2 { margin: 0; font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--an-ink); }

.an-status { font-size: .6875rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.an-status.is-open { background: rgba(18, 138, 91, .12); color: var(--an-up); }
.an-status.is-closed { background: rgba(107, 122, 140, .14); color: var(--an-mute); }
.an-market__value { font-size: 1.85rem; font-weight: 800; color: var(--an-ink); letter-spacing: -.02em; }
.an-market__change { font-size: .875rem; font-weight: 700; color: var(--an-up); }
.an-market__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; text-align: center; font-size: .6875rem; color: var(--an-mute); text-transform: uppercase; letter-spacing: .05em; }
.an-market__stats > div { padding: 10px 4px; background: var(--an-soft); border-radius: 10px; }
.an-num { display: block; font-size: 1.0625rem; font-weight: 800; color: var(--an-ink); }
.an-num--up { color: var(--an-up); }
.an-num--down { color: var(--an-down); }

.an-list { list-style: none; margin: 0; padding: 0; }
.an-list li + li { border-top: 1px solid var(--an-line); }
.an-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; }
.an-badge { flex: 0 0 auto; padding: 3px 8px; border-radius: 6px; background: var(--an-ink); color: #fff; font-size: .6875rem; font-weight: 800; letter-spacing: .05em; }
.an-list__text { font-size: .875rem; color: var(--an-body); font-weight: 600; }
.an-list a:hover .an-list__text { color: var(--an-brand); }

.an-ranked { list-style: none; margin: 0; padding: 0; }
.an-ranked li { display: flex; gap: 12px; padding: 11px 0; }
.an-ranked li + li { border-top: 1px solid var(--an-line); }
.an-ranked__num { font-size: 1rem; font-weight: 800; color: var(--an-line); line-height: 1.4; }
.an-ranked a { font-size: .875rem; font-weight: 600; color: var(--an-ink); text-decoration: none; line-height: 1.45; }
.an-ranked a:hover { color: var(--an-brand); }

.an-newsletter { background: var(--an-ink); border-color: var(--an-ink); color: #dfe6ee; }
.an-newsletter h2 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 800; color: #fff; }
.an-newsletter p { margin: 0 0 14px; font-size: .875rem; line-height: 1.6; }
.an-newsletter__form { display: flex; flex-direction: column; gap: 8px; }
.an-newsletter__form input { padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); color: #fff; font-size: .875rem; }
.an-newsletter__form input::placeholder { color: rgba(255, 255, 255, .5); }
.an-newsletter__form button { padding: 11px 13px; border: 0; border-radius: 10px; background: var(--an-brand); color: #fff; font-weight: 700; font-size: .875rem; cursor: pointer; transition: .18s ease; }
.an-newsletter__form button:hover { opacity: .9; }
.an-newsletter__note { display: block; margin-top: 9px; font-size: .6875rem; opacity: .65; }

/* Related */
.an-related { background: var(--an-soft); border-top: 1px solid var(--an-line); padding: 48px 0 60px; }
.an-related__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.an-related__head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--an-ink); letter-spacing: -.01em; }
.an-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.an-rcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--an-line); border-radius: var(--an-radius); overflow: hidden; text-decoration: none; transition: .2s ease; }
.an-rcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 27, 42, .1); }
.an-rcard__media { position: relative; aspect-ratio: 16 / 9; background: #e9edf2; display: flex; align-items: center; justify-content: center; }
.an-rcard__media img { width: 100%; height: 100%; object-fit: cover; }
.an-rcard__placeholder { font-weight: 800; color: var(--an-mute); letter-spacing: .18em; }
.an-rcard__cat { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(13, 27, 42, .85); color: #fff; font-size: .6875rem; font-weight: 700; text-transform: uppercase; }
.an-rcard__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.an-rcard__body h3 { margin: 0; font-size: 1rem; line-height: 1.4; font-weight: 700; color: var(--an-ink); }
.an-rcard:hover .an-rcard__body h3 { color: var(--an-brand); }
.an-rcard__meta { font-size: .75rem; color: var(--an-mute); }

/* Responsive */
@media (max-width: 1024px) {
    .an-layout { grid-template-columns: 1fr; gap: 40px; padding: 28px 20px 48px; }
    .an-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 640px) {
    .an-container { padding: 0 16px; }
    .an-layout { padding: 22px 16px 40px; }
    .an-byline { align-items: flex-start; }
    .an-share { width: 100%; }
    .an-share__btn { flex: 1; }
    .an-content { font-size: 1rem; }
    .an-figure img { border-radius: 10px; }
    .an-related { padding: 36px 0 44px; }
}

@media print {
    .an-sidebar, .an-share, .an-related, .an-progress, .an-newsletter { display: none !important; }
    .an-layout { grid-template-columns: 1fr; }
}