:root {
  --ink: #17312f;
  --muted: #617572;
  --paper: #ffffff;
  --soft: #f2f8f6;
  --line: #dbe9e5;
  --brand: #087f68;
  --brand-dark: #075f51;
  --accent: #f0a33a;
  --danger: #b73c4a;
  --shadow: 0 16px 42px rgba(22, 66, 60, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f5fbf9 0, #fff 360px);
  font: 17px/1.72 Inter, "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}
a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: #9b5a08; }
img, video, iframe, svg { max-width: 100%; height: auto; }
img { border-radius: 14px; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 9999;
  padding: 10px 14px; color: #fff; background: var(--brand-dark); border-radius: 10px;
}
.skip-link:focus { top: 12px; }

#wrapper { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 0; }
.site-header {
  margin: 18px 0 30px; color: #fff; overflow: hidden;
  background: linear-gradient(125deg, #075f51, #0b9075 58%, #48b99f);
  border-radius: 26px; box-shadow: var(--shadow); position: relative;
}
.site-header::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -170px; top: -190px;
  border: 52px solid rgba(255,255,255,.10); border-radius: 50%; pointer-events: none;
}
.brand-row { display: flex; align-items: center; gap: 18px; padding: 24px 30px 18px; position: relative; z-index: 1; }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px;
  color: var(--brand-dark); background: #fff; border-radius: 16px; font-size: 34px; font-weight: 800;
  text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.brand-copy { min-width: 0; }
.brand-name { color: #fff; text-decoration: none; font-size: clamp(25px, 4vw, 38px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.brand-tagline { margin-top: 7px; color: rgba(255,255,255,.83); font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; padding: 10px 13px; border: 1px solid rgba(255,255,255,.45); border-radius: 12px; color: #fff; background: rgba(255,255,255,.10); }
.site-nav { display: flex; gap: 4px; padding: 0 20px 15px; position: relative; z-index: 1; }
.site-nav a { padding: 10px 12px; color: #fff; text-decoration: none; border-radius: 11px; font-size: 15px; font-weight: 650; }
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(255,255,255,.16); }

#page, #news_home { width: 100%; display: block; clear: both; }
#left, #header, #header_top, #header_bottom, #header_ads, #ads_bottom, .btn-menu-mobile,
#page > .slider, .shareblock, .yashare-auto-init, .share42init,
.ya-share2, .b-share, [class*="social-share"], form#search, form[action*="search"] { display: none !important; }
#content, .news_home_left, .news_home_right { width: 100% !important; float: none !important; min-width: 0; }
#content {
  max-width: 900px; margin: 0 auto 36px; padding: clamp(22px, 4vw, 46px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
#news_home { max-width: 1100px; margin: 0 auto; }
#news_home > div, .news_home_left, .news_home_right { min-width: 0; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 760; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
h1, #article h1 { margin: 0 0 24px; font-size: clamp(30px, 5vw, 49px); }
h2 { margin: 42px 0 17px; font-size: clamp(24px, 3vw, 32px); }
h3 { margin: 30px 0 12px; font-size: clamp(20px, 2.5vw, 25px); }
h4 { margin: 24px 0 10px; font-size: 19px; }
p { margin: 0 0 1.12em; }
ul, ol { padding-left: 1.35em; }
li { margin: .38em 0; }

#content h1, #content h2, .news_home_left h2, .articles_home h2, .article_home h2 {
  padding-left: 0 !important; background: none !important;
}
.date { display: inline-flex; margin: 0 0 18px; padding: 5px 10px; color: var(--muted) !important; background: var(--soft); border-radius: 999px; font-size: 14px; }
.article_body, .article-text, .text, .content-body { max-width: 760px; margin-inline: auto; }
.article_body p, #content > p { text-wrap: pretty; }
.article_body img, #content img { display: block; width: auto; max-width: 100% !important; height: auto; margin: 24px auto; max-height: 560px; object-fit: contain; box-shadow: 0 8px 28px rgba(19,56,51,.10); }
.mediaholder, .mediaholder_innerwrap, .detailholder { max-width: 100% !important; box-sizing: border-box; }
#nslider, #nslider .showbiz, #nslider .overflowholder { width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
#nslider { overflow: hidden !important; }
#nslider.related-grid { overflow: visible !important; margin: 34px 0 8px; }
#nslider.related-grid .showbiz-navigation { margin: 0 0 16px; }
#nslider.related-grid .showbiz-navigation h2 { margin: 0; text-align: left; }
#nslider.related-grid .sb-navigation-left,
#nslider.related-grid .sb-navigation-right,
#nslider.related-grid .sbclear { display: none !important; }
#nslider.related-grid .showbiz,
#nslider.related-grid .overflowholder { overflow: visible !important; height: auto !important; }
#nslider.related-grid ul {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  width: 100% !important; margin: 0 !important; padding: 0 !important; list-style: none;
  transform: none !important;
}
#nslider.related-grid li {
  display: block !important; float: none !important; width: auto !important; min-width: 0 !important;
  margin: 0 !important; padding: 0 !important;
}
#nslider.related-grid .mediaholder,
#nslider.related-grid .hovercover { display: none !important; }
#nslider.related-grid .detailholder {
  display: flex; min-height: 100%; padding: 18px; background: var(--soft);
  border: 1px solid var(--line); border-radius: 15px;
}
#nslider.related-grid .showbiz-title { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; }
#nslider.related-grid .showbiz-title a { color: var(--ink); text-decoration: none; }
#nslider.related-grid .showbiz-title a:hover,
#nslider.related-grid .showbiz-title a:focus-visible { color: var(--brand-dark); text-decoration: underline; }
.article_home, .articles_home, .news_home_left > div, .col1articles, .col2articles {
  margin: 0 0 20px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 26px rgba(22,66,60,.07);
}
.article_home img, .img_preview, .col1articles_img img, .col2articles_img img, .pop_articles_body_img img {
  max-width: min(100%, 360px) !important; height: auto !important; padding: 0 !important; background: none !important; object-fit: cover;
}

.toc { margin: 24px 0 32px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); }
.toc summary { cursor: pointer; padding: 15px 18px; font-weight: 750; color: var(--brand-dark); }
.toc nav { padding: 0 20px 17px; }
.toc ol { margin: 0; }
.toc a { text-decoration: none; }

.notice, .medical-note { margin: 28px 0; padding: 18px 20px; background: #fff7e9; border-left: 4px solid var(--accent); border-radius: 0 13px 13px 0; }
blockquote { margin: 25px 0; padding: 18px 22px; background: var(--soft); border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; font: italic 18px/1.65 Georgia, serif; }
.table-scroll { width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); }
pre, code { max-width: 100%; overflow-x: auto; }

.category-intro, .hero-panel { margin: 0 0 28px; padding: clamp(24px, 5vw, 46px); background: linear-gradient(135deg, #e9f7f2, #fff7e8); border: 1px solid var(--line); border-radius: 22px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(22,66,60,.07); }
.article-card h2, .article-card h3 { margin: 0 0 10px; font-size: 22px; }
.article-card p { color: var(--muted); }
.article-card a { margin-top: auto; font-weight: 700; }
.article-hero { margin: 0 0 30px; aspect-ratio: 16 / 7; width: 100%; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.article-hero-figure { margin: 0 0 30px; }
.article-hero-figure .article-hero { margin-bottom: 8px; }
.photo-credit { margin: 0 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.photo-credit a { color: inherit; }
.article-meta { margin: -10px 0 20px; color: var(--muted); font-size: 14px; }
.sources { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

.site-footer { margin: 40px 0 22px; padding: 30px; color: #dcece8; background: #163d38; border-radius: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.site-footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.footer-note { margin-top: 18px; color: #a9c3bd; font-size: 13px; }

.pager, .pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px 0; }
.pager a, .pagination a, .pagination span { min-width: 42px; padding: 9px 12px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

@media (max-width: 820px) {
  #wrapper { width: min(100% - 20px, 720px); }
  .site-header { margin-top: 10px; border-radius: 20px; }
  .brand-row { padding: 18px 18px 14px; }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; font-size: 28px; }
  .brand-tagline { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-direction: column; padding: 0 12px 14px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  #content { padding: 24px 19px; border-radius: 17px; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  #nslider.related-grid ul { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; line-height: 1.66; }
  #wrapper { width: min(100% - 12px, 460px); }
  .brand-row { gap: 8px; padding: 14px 12px; }
  .brand-name { display: block; white-space: nowrap; overflow-wrap: normal; font-size: 24px; }
  .nav-toggle { flex: 0 0 auto; padding: 9px 10px; white-space: nowrap; overflow-wrap: normal; }
  h1, #article h1 { font-size: 29px; line-height: 1.2; }
  h2 { font-size: 23px; }
  #content { padding: 21px 15px; border-left: 0; border-right: 0; }
  .article-hero-figure { margin-bottom: 22px; }
  #article [style*="width:300px"], #article [style*="width: 300px"] { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .article_home, .articles_home, .news_home_left > div, .col1articles, .col2articles { padding: 16px; }
  .site-footer { padding: 23px 18px; border-radius: 18px; }
}

@media print {
  .site-header, .site-footer, .toc, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  #wrapper, #content { width: 100%; max-width: none; margin: 0; padding: 0; box-shadow: none; border: 0; }
  a { color: #000; text-decoration: none; }
}
