.osp-content-page,
.osp-content-page * { box-sizing: border-box; }
.osp-content-page { padding: 30px 0 70px; color: var(--osp-text); background: #f7f8fa; }
.osp-content-container { width: min(calc(100% - 40px), var(--osp-max-width)); margin: 0 auto; }
.osp-content-page .osp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 24px; color: #858585; font-size: 13px; }
.osp-content-page .osp-breadcrumb a { color: inherit; text-decoration: none; }
.osp-content-page .osp-breadcrumb a:hover { color: var(--osp-accent); }
.osp-content-header { margin-bottom: 27px; padding: 36px 39px 35px; background: #fff; border: 1px solid #e1e2e5; border-radius: 11px; }
.osp-content-category { display: inline-flex; margin-bottom: 15px; padding: 6px 10px; color: #fff; background: var(--osp-accent); border-radius: 3px; font-size: 12px; font-weight: 800; line-height: 1; text-decoration: none; }
.osp-content-header h1 { max-width: 1000px; margin: 0; color: #202020; font-size: clamp(30px, 3.4vw, 46px); font-weight: 750; letter-spacing: -.05em; line-height: 1.28; }
.osp-content-subtitle { max-width: 940px; margin: 15px 0 0; color: #6c6c6c; font-size: 17px; line-height: 1.7; }
.osp-content-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 19px; color: #8a8a8a; font-size: 13px; }
.osp-content-meta span + span::before { margin: 0 10px; content: '·'; }
.osp-content-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, .8fr); align-items: start; gap: 28px; }
.osp-content-article { min-width: 0; padding: 34px 39px 40px; background: #fff; border: 1px solid #e1e2e5; border-radius: 11px; }
.osp-page-layout { display: block; }
.osp-page-article { width: 100%; padding: 42px 48px 45px; }
.osp-page-updated { margin: 42px 0 0; padding-top: 18px; color: #8a8a8a; border-top: 1px solid #e6e6e6; font-size: 12px; text-align: right; }
.osp-page-article .osp-entry-content > h2:first-child { margin-top: .35em; }
.osp-page-article .osp-policy-note { margin: 1.7em 0; padding: 19px 22px; background: #fff7f7; border: 1px solid #efd6d6; border-radius: 8px; }
.osp-page-article .osp-policy-note > :last-child { margin-bottom: 0; }
.osp-entry-content { color: #333; font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.osp-entry-content > :first-child { margin-top: 0; }
.osp-entry-content > :last-child { margin-bottom: 0; }
.osp-entry-content p { margin: 0 0 1.35em; }
.osp-entry-content h2 { margin: 2.25em 0 .8em; padding-left: 13px; color: #202020; border-left: 4px solid var(--osp-accent); font-size: 27px; font-weight: 800; letter-spacing: -.04em; line-height: 1.4; }
.osp-entry-content h3 { margin: 1.8em 0 .7em; color: #292929; font-size: 21px; line-height: 1.45; }
.osp-entry-content h4 { margin: 1.5em 0 .6em; font-size: 18px; }
.osp-entry-content a { color: #c51f28; text-underline-offset: 3px; }
.osp-entry-content img { max-width: 100%; height: auto; border-radius: 6px; }
.osp-entry-content figure { max-width: 100%; margin: 1.8em auto; }
.osp-entry-content figcaption { margin-top: 8px; color: #888; font-size: 12px; text-align: center; }
.osp-entry-content ul, .osp-entry-content ol { margin: 0 0 1.5em; padding-left: 1.45em; }
.osp-entry-content li { margin: .38em 0; }
.osp-entry-content blockquote { margin: 1.8em 0; padding: 18px 22px; color: #555; background: #fff7f7; border-left: 4px solid var(--osp-accent); }
.osp-entry-content table { width: 100%; margin: 1.8em 0; border-collapse: collapse; font-size: 15px; }
.osp-entry-content th, .osp-entry-content td { padding: 13px 14px; border: 1px solid #e1e2e4; text-align: left; vertical-align: top; }
.osp-entry-content th { color: #272727; background: #fff3f3; font-weight: 800; }
.osp-entry-content iframe { max-width: 100%; }
.osp-entry-content .osp-official-button { display: table; margin: 24px auto; padding: 13px 24px; color: #fff; background: var(--osp-accent); border-radius: 6px; font-weight: 800; text-decoration: none; }
.osp-entry-content .osp-content-section { margin: 38px 0; }
.osp-entry-content .osp-quick-link-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 22px; margin: 30px 0; padding: 20px; overflow: hidden; background: linear-gradient(135deg, #fffafa 0%, #fff4f4 100%); border: 1px solid #efcece; border-radius: 10px; box-shadow: 0 6px 18px rgba(107, 25, 30, .06); }
.osp-entry-content .osp-quick-link-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f2e8e8; border: 1px solid #ead6d6; border-radius: 7px; }
.osp-entry-content .osp-quick-link-card__image > a { display: block; width: 100%; height: 100%; }
.osp-entry-content .osp-quick-link-card__image img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; transition: transform .2s ease; }
.osp-entry-content .osp-quick-link-card__image:hover img { transform: scale(1.025); }
.osp-entry-content .osp-quick-link-card__content { min-width: 0; }
.osp-entry-content .osp-quick-link-card__title { display: block; margin-bottom: 7px; color: #9f1820; font-size: 19px; font-weight: 800; letter-spacing: -.025em; line-height: 1.45; }
.osp-entry-content .osp-quick-link-card__content p { margin: 0 0 14px; color: #555; font-size: 15px; line-height: 1.7; }
.osp-entry-content .osp-quick-link-card .osp-official-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 0; padding: 10px 17px; font-size: 14px; line-height: 1.4; text-align: center; }
.osp-entry-content .osp-quick-link-card .osp-official-button:hover { color: #fff; filter: brightness(.94); }
.osp-entry-content .osp-check-list { padding: 20px 23px; background: #fafafa; border: 1px solid #e6e6e6; border-radius: 8px; }
.osp-entry-content .osp-faq-list { display: grid; gap: 12px; }
.osp-entry-content .osp-faq-item { padding: 19px 21px; background: #fafafa; border: 1px solid #e6e6e6; border-radius: 8px; }
.osp-content-ad { width: 100%; margin-bottom: 34px; overflow: hidden; text-align: center; }
.osp-content-ad > * { max-width: 100%; }
.osp-content-sidebar { min-width: 0; }
.osp-content-sidebar .osp-sidebar-card { margin: 0 0 20px; padding: 23px; border: 1px solid #e0e2e5; border-radius: 10px; }
.osp-content-sidebar .osp-section-title { margin-bottom: 18px; font-size: 19px; }
.osp-content-recent article { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid #ececef; }
.osp-content-recent article:first-of-type { padding-top: 0; }
.osp-content-recent article:last-child { padding-bottom: 0; border-bottom: 0; }
.osp-content-recent__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f2f4; border-radius: 5px; }
.osp-content-recent__image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.osp-content-recent h3 { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.osp-content-recent h3 a { color: #252525; text-decoration: none; }
.osp-content-recent h3 a:hover { color: var(--osp-accent); }
.osp-content-recent p { margin: 0; display: -webkit-box; overflow: hidden; color: #777; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.osp-content-sidebar-ad { position: sticky; top: 22px; min-height: 250px; padding: 0; }
.osp-content-sidebar .osp-category-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.osp-content-sidebar .osp-category-shortcuts a { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 9px 8px; overflow: hidden; color: #444; background: #fff; border: 1px solid #e4e5e8; border-radius: 6px; font-size: 12px; text-decoration: none; white-space: nowrap; }
.osp-content-sidebar .osp-category-shortcuts a:hover { color: var(--osp-accent); border-color: rgba(216, 38, 47, .35); background: #fff8f8; }
.osp-content-sidebar .osp-category-shortcuts span { flex: 0 0 24px; width: 24px; height: 24px; color: var(--osp-accent); }
.osp-content-sidebar .osp-category-shortcuts svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.osp-content-sidebar .osp-category-shortcuts svg text { fill: currentColor; stroke: none; font-size: 17px; }
.osp-content-block-title { margin: 0 0 20px; padding-left: 12px; color: #222; border-left: 4px solid var(--osp-accent); font-size: 23px; font-weight: 800; letter-spacing: -.035em; }
.osp-content-related { margin-top: 50px; padding-top: 34px; border-top: 1px solid #e6e6e6; }
.osp-content-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.osp-content-related article { overflow: hidden; background: #fff; border: 1px solid #e1e2e5; border-radius: 8px; }
.osp-content-related__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f1f2f4; }
.osp-content-related__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.osp-content-related article:hover img { transform: scale(1.025); }
.osp-content-related article > div { padding: 16px 17px 18px; }
.osp-content-related h3 { margin: 6px 0 8px; font-size: 17px; line-height: 1.45; }
.osp-content-related h3 a { color: #222; text-decoration: none; }
.osp-content-related h3 a:hover { color: var(--osp-accent); }
.osp-content-related p { margin: 0; display: -webkit-box; overflow: hidden; color: #707070; font-size: 13px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.osp-content-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.osp-content-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 11px; color: #666; background: #f5f5f6; border: 1px solid #e7e7e9; border-radius: 4px; font-size: 12px; line-height: 1.35; text-decoration: none; }
.osp-content-tags a::before { margin-right: 3px; content: '#'; color: var(--osp-accent); }
.osp-content-tags a:hover { color: var(--osp-accent); background: #fff8f8; border-color: rgba(216, 38, 47, .35); }
.osp-content-share { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 35px; padding: 19px 0; border-top: 1px solid #e7e7e7; border-bottom: 1px solid #e7e7e7; }
.osp-content-share > strong { font-size: 14px; }
.osp-content-share > div { display: flex; flex-wrap: wrap; gap: 8px; }
.osp-content-share a, .osp-content-share button { min-height: 36px; display: inline-flex; align-items: center; padding: 0 13px; color: #444; background: #fff; border: 1px solid #dedfe2; border-radius: 5px; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.osp-content-share a:hover, .osp-content-share button:hover { color: var(--osp-accent); border-color: var(--osp-accent); }
.osp-content-author { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 30px; padding: 25px; background: #fafafa; border: 1px solid #e5e5e7; border-radius: 9px; }
.osp-content-author__avatar { display: block; width: 84px; height: 84px; overflow: hidden; background: #eee; border-radius: 50%; }
.osp-content-author__avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.osp-content-author h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.osp-content-author h2 a { color: #222; text-decoration: none; }
.osp-content-author h2 a:hover { color: var(--osp-accent); }
.osp-content-author p { margin: 0; color: #666; font-size: 13px; line-height: 1.7; }
.osp-site-note { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 30px; padding: 24px 25px; background: #f7f7f8; border: 1px solid #e4e4e6; border-radius: 9px; }
.osp-site-note strong { color: #222; font-family: Arial, sans-serif; font-size: 20px; }
.osp-site-note strong em { color: var(--osp-accent); font-size: .75em; font-style: normal; }
.osp-site-note p { max-width: 520px; margin: 8px 0 0; color: #6d6d6d; font-size: 13px; line-height: 1.65; }
.osp-site-note__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.osp-site-note__actions a { padding: 9px 12px; color: #444; background: #fff; border: 1px solid #dcdde0; border-radius: 5px; font-size: 12px; text-decoration: none; }
.osp-site-note__actions a:hover { color: var(--osp-accent); border-color: var(--osp-accent); }
.osp-content-comments { margin-top: 35px; padding: 28px; background: #f8f8f9; border: 1px solid #e5e5e7; border-radius: 9px; }
.osp-content-comments .comments-title, .osp-content-comments .comment-reply-title { margin: 0 0 20px; color: #222; font-size: 20px; font-weight: 800; }
.osp-content-comments .comment-form { display: grid; gap: 14px; }
.osp-content-comments .comment-form p { margin: 0; }
.osp-content-comments label { display: block; margin-bottom: 6px; color: #555; font-size: 13px; font-weight: 700; }
.osp-content-comments textarea, .osp-content-comments input[type="text"], .osp-content-comments input[type="email"], .osp-content-comments input[type="url"] { width: 100%; padding: 12px; background: #fff; border: 1px solid #dcdde0; border-radius: 4px; }
.osp-content-comments input[type="submit"] { padding: 12px 19px; color: #fff; background: var(--osp-accent); border: 0; border-radius: 4px; cursor: pointer; }

html[data-osp-theme="dark"] .osp-content-page { background: #151515; }
html[data-osp-theme="dark"] .osp-content-header,
html[data-osp-theme="dark"] .osp-content-article,
html[data-osp-theme="dark"] .osp-content-sidebar .osp-sidebar-card,
html[data-osp-theme="dark"] .osp-content-related article { background: #202020; border-color: #373737; }
html[data-osp-theme="dark"] .osp-content-header h1,
html[data-osp-theme="dark"] .osp-entry-content h2,
html[data-osp-theme="dark"] .osp-entry-content h3,
html[data-osp-theme="dark"] .osp-content-block-title,
html[data-osp-theme="dark"] .osp-content-recent h3 a,
html[data-osp-theme="dark"] .osp-content-related h3 a { color: #f2f2f2; }
html[data-osp-theme="dark"] .osp-entry-content { color: #d8d8d8; }
html[data-osp-theme="dark"] .osp-page-updated { border-color: #3c3c3c; }
html[data-osp-theme="dark"] .osp-page-article .osp-policy-note { background: #2b2424; border-color: #493737; }
html[data-osp-theme="dark"] .osp-entry-content .osp-quick-link-card { background: linear-gradient(135deg, #2b2424 0%, #282222 100%); border-color: #493737; box-shadow: none; }
html[data-osp-theme="dark"] .osp-entry-content .osp-quick-link-card__image { background: #222; border-color: #493b3b; }
html[data-osp-theme="dark"] .osp-entry-content .osp-quick-link-card__title { color: #ff777d; }
html[data-osp-theme="dark"] .osp-entry-content .osp-quick-link-card__content p { color: #d0caca; }
html[data-osp-theme="dark"] .osp-content-sidebar .osp-category-shortcuts a { color: #ddd; background: #252525; border-color: #3d3d3d; }
html[data-osp-theme="dark"] .osp-site-note,
html[data-osp-theme="dark"] .osp-content-author,
html[data-osp-theme="dark"] .osp-content-comments,
html[data-osp-theme="dark"] .osp-entry-content .osp-check-list,
html[data-osp-theme="dark"] .osp-entry-content .osp-faq-item { background: #282828; border-color: #3c3c3c; }
html[data-osp-theme="dark"] .osp-content-author h2 a,
html[data-osp-theme="dark"] .osp-content-comments .comments-title,
html[data-osp-theme="dark"] .osp-content-comments .comment-reply-title { color: #f2f2f2; }

@media (max-width: 980px) {
  .osp-content-layout { grid-template-columns: 1fr; }
  .osp-content-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .osp-content-sidebar .osp-sidebar-card { margin: 0; }
  .osp-content-sidebar-ad { position: static; grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .osp-content-page { padding: 18px 0 45px; }
  .osp-content-container { width: min(calc(100% - 24px), var(--osp-max-width)); }
  .osp-content-header { margin-bottom: 17px; padding: 25px 20px; }
  .osp-content-header h1 { font-size: 29px; }
  .osp-content-subtitle { font-size: 15px; }
  .osp-content-article { padding: 25px 19px 30px; }
  .osp-page-article { padding: 28px 22px 32px; }
  .osp-entry-content { font-size: 16px; line-height: 1.85; }
  .osp-entry-content h2 { font-size: 23px; }
  .osp-entry-content h3 { font-size: 19px; }
  .osp-entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .osp-entry-content .osp-quick-link-card { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; margin: 24px 0; padding: 15px; }
  .osp-entry-content .osp-quick-link-card__image { aspect-ratio: 1 / 1; }
  .osp-entry-content .osp-quick-link-card__title { margin-bottom: 5px; font-size: 16px; }
  .osp-entry-content .osp-quick-link-card__content p { margin-bottom: 10px; font-size: 14px; line-height: 1.6; }
  .osp-entry-content .osp-quick-link-card .osp-official-button { min-height: 36px; padding: 8px 12px; font-size: 13px; }
  .osp-content-related__grid { grid-template-columns: 1fr; }
  .osp-content-sidebar { display: block; }
  .osp-content-sidebar .osp-sidebar-card { margin-bottom: 16px; }
  .osp-content-share, .osp-site-note { align-items: flex-start; flex-direction: column; }
	.osp-content-author { grid-template-columns: 64px minmax(0, 1fr); padding: 20px; }
	.osp-content-author__avatar { width: 64px; height: 64px; }
	.osp-content-comments { padding: 22px 18px; }
  .osp-site-note__actions { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .osp-entry-content .osp-quick-link-card { grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .osp-entry-content .osp-quick-link-card .osp-official-button { width: 100%; padding-right: 8px; padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .osp-content-related__image img,
  .osp-entry-content .osp-quick-link-card__image img { transition: none !important; }
}

/* v0.8.0: reader feedback */
.osp-feedback { margin-top: 30px; padding: 27px 28px; background: linear-gradient(135deg, #fff 0%, #fff8f8 100%); border: 1px solid #ead9da; border-radius: 10px; }
.osp-feedback__heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.osp-feedback__eyebrow { display: block; margin-bottom: 7px; color: var(--osp-accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.osp-feedback h2 { margin: 0 0 8px; color: #222; font-size: 22px; line-height: 1.35; }
.osp-feedback__heading p { margin: 0; color: #696969; font-size: 13px; line-height: 1.65; }
.osp-feedback__score { min-width: 82px; text-align: right; }
.osp-feedback__score strong { display: block; color: #222; font-size: 27px; line-height: 1; }
.osp-feedback__score span { display: block; margin-top: 6px; color: #888; font-size: 11px; }
.osp-feedback__stars { display: flex; gap: 5px; margin-top: 20px; }
.osp-feedback__stars button { padding: 0; color: #d7d7d7; background: transparent; border: 0; font-size: 32px; line-height: 1; cursor: pointer; transition: color .15s ease, transform .15s ease; }
.osp-feedback__stars button:hover, .osp-feedback__stars button.is-preview, .osp-feedback__stars button.is-selected { color: #f3b21b; transform: translateY(-1px); }
.osp-feedback__reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.osp-feedback__reasons button { min-height: 36px; padding: 8px 12px; color: #555; background: #fff; border: 1px solid #dedfe2; border-radius: 18px; font: inherit; font-size: 12px; cursor: pointer; }
.osp-feedback__reasons button:hover, .osp-feedback__reasons button.is-selected { color: var(--osp-accent); background: #fff5f5; border-color: rgba(216,38,47,.38); }
.osp-feedback button:disabled { cursor: default; opacity: .72; }
.osp-feedback__message { min-height: 20px; margin: 13px 0 0; color: #666; font-size: 12px; }
html[data-osp-theme="dark"] .osp-feedback { background: #282323; border-color: #4a3738; }
html[data-osp-theme="dark"] .osp-feedback h2, html[data-osp-theme="dark"] .osp-feedback__score strong { color: #f2f2f2; }
html[data-osp-theme="dark"] .osp-feedback__reasons button { color: #ddd; background: #252525; border-color: #454545; }
@media (max-width:700px) { .osp-feedback { padding: 22px 19px; } .osp-feedback__heading { flex-direction: column; gap: 13px; } .osp-feedback__score { text-align: left; } .osp-feedback__stars button { font-size: 29px; } }
