/*
Theme Name: 프레스런 테마
Theme URI: https://presslearn.co.kr
Author: 로알남
Author URI: https://presslearn.co.kr
Description: 애드센스 블로그에 최적화된 쉬운 한국형 워드프레스 테마. 설정 페이지 하나로 디자인이 끝납니다.
Version: 1.10.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: roal
*/

:root {
  --roal-main: #0F6E56;
  --roal-main-dark: #085041;
  --roal-light: #E1F5EE;
  --roal-thumb-text: #9FE1CB;
  --roal-radius: 12px;
  --roal-font-base: 17px;
  --roal-line: 1.8;
  --roal-bg: #ffffff;
  --roal-bg-soft: #f7f7f5;
  --roal-text: #1c1c1a;
  --roal-text-sub: #6b6b66;
  --roal-border: #e6e6e2;
  --roal-max: 760px;
}
html[data-roal-theme="dark"] {
  --roal-bg: #17171a;
  --roal-bg-soft: #202024;
  --roal-text: #ececea;
  --roal-text-sub: #a0a09b;
  --roal-border: #34343a;
}
body.roal-corner-square { --roal-radius: 0px; }
body.roal-corner-soft { --roal-radius: 6px; }
body.roal-corner-xround { --roal-radius: 22px; }
body.roal-font-small { --roal-font-base: 15px; }
body.roal-font-big { --roal-font-base: 19px; }
body.roal-font-xl { --roal-font-base: 21px; }
body.roal-linehgt-wide { --roal-line: 2.0; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: var(--roal-font-base);
  line-height: var(--roal-line);
  color: var(--roal-text);
  background: var(--roal-bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.roal-wrap { max-width: var(--roal-max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 브레드크럼 ---------- */
.roal-breadcrumb { font-size: 13px; color: var(--roal-text-sub); margin-bottom: 10px; }
.roal-breadcrumb a { color: var(--roal-text-sub); }
.roal-breadcrumb a:hover { color: var(--roal-main); }
.roal-breadcrumb span[aria-current] { color: var(--roal-text); font-weight: 600; }
.roal-bc-sep { opacity: 0.6; }
.roal-archive-inner > .roal-breadcrumb, main > .roal-breadcrumb { max-width: var(--roal-max); margin-left: auto; margin-right: auto; padding: 14px 20px 0; }
.roal-style-b .roal-breadcrumb a:hover { color: var(--roal-news-accent); }

/* ---------- 읽기 진행 바 ---------- */
.roal-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 200; background: transparent; }
.roal-progress-bar { height: 100%; width: 0; background: var(--roal-main); transition: width 0.1s linear; }
.roal-style-b .roal-progress-bar { background: var(--roal-news-accent); }

/* ---------- 공지 바 ---------- */
.roal-notice { display: block; background: var(--roal-main-dark); color: #fff; text-align: center; padding: 9px 20px; font-size: 14px; }
.roal-notice-inner { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; }
.roal-notice-icon { flex: none; opacity: 0.85; }
.roal-notice-more { text-decoration: underline; text-underline-offset: 3px; opacity: 0.9; flex: none; }
a.roal-notice:hover .roal-notice-more { opacity: 1; }

/* ---------- NEW 뱃지 ---------- */
.roal-new { display: inline-block; font-size: 0.62em; font-weight: 700; background: #FCEBEB; color: #A32D2D; padding: 2px 7px; border-radius: 6px; vertical-align: 3px; margin-right: 6px; line-height: 1.4; }
html[data-roal-theme="dark"] .roal-new { background: #501313; color: #F7C1C1; }

/* ---------- 카테고리 배너 ---------- */
.roal-cat-banner { background: var(--roal-main); text-align: center; padding: 34px 20px 30px; margin: 16px 0 4px; border-radius: var(--roal-radius); }
.roal-cat-banner-label { font-size: 13px; color: var(--roal-thumb-text); letter-spacing: 0.06em; }
.roal-cat-banner-title { margin: 4px 0 0; font-size: 1.6em; font-weight: 800; color: #fff; }
.roal-cat-banner-desc { margin: 10px 0 0; font-size: 14px; color: var(--roal-thumb-text); }
.roal-cat-children { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 2px; }
.roal-style-b .roal-cat-banner { border-radius: 0; }

/* ---------- Header ---------- */
.roal-header { border-bottom: 1px solid var(--roal-border); background: var(--roal-bg); }
.roal-header.is-sticky { position: sticky; top: 0; z-index: 50; }
.roal-header-inner { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.roal-header-center .roal-header-inner { justify-content: center; position: relative; }
.roal-header-center .roal-header-tools { position: absolute; right: 0; }
.roal-header-right .roal-brand { order: 2; margin-left: auto; }
.roal-header-right .roal-header-tools { order: 1; margin-left: 0; }
.roal-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.roal-logo-img { height: 34px; width: auto; display: block; }
.roal-logo-letter {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--roal-main); color: var(--roal-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.roal-site-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roal-header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.roal-icon-btn {
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--roal-text-sub); font-size: 20px;
}
.roal-icon-btn:hover { background: var(--roal-bg-soft); }
.roal-icon-btn svg { width: 22px; height: 22px; }

/* 카테고리 알약 메뉴 */
.roal-catbar { border-bottom: 1px solid var(--roal-border); background: var(--roal-bg); }
.roal-catbar-inner { display: flex; align-items: center; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.roal-catbar-inner::-webkit-scrollbar { display: none; }
.roal-catbar-center .roal-catbar-inner { justify-content: center; }
.roal-catbar-right .roal-catbar-inner { justify-content: flex-end; }
.roal-catbar-inner.has-drop { overflow: visible; flex-wrap: wrap; }
.roal-pill-group { position: relative; flex: none; }
.roal-pill-toggle { cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 5px; }
.roal-pill-toggle svg { transition: transform 0.15s; }
.roal-pill-group.is-open .roal-pill-toggle svg { transform: rotate(180deg); }
.roal-pill-drop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 80; min-width: 160px; background: var(--roal-bg); border: 1px solid var(--roal-border); border-radius: var(--roal-radius); box-shadow: 0 6px 20px rgba(0,0,0,0.1); padding: 6px; }
.roal-pill-group.is-open .roal-pill-drop { display: block; }
.roal-pill-drop a { display: block; padding: 10px 14px; font-size: 15px; border-radius: calc(var(--roal-radius) - 4px); color: var(--roal-text); }
.roal-pill-drop a:hover { background: var(--roal-light); color: var(--roal-main-dark); }
.roal-style-b .roal-pill-drop { border-radius: 0; }
.roal-style-b .roal-pill-drop a { border-radius: 0; }
.roal-pill {
  flex: none; display: inline-flex; align-items: center; box-sizing: border-box;
  font-size: 15px; line-height: 1.4; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--roal-border); color: var(--roal-text-sub); background: var(--roal-bg);
  margin: 0; font-family: inherit; appearance: none; -webkit-appearance: none;
}
.roal-pill:hover { border-color: var(--roal-main); color: var(--roal-main); }
.roal-pill.is-active { background: var(--roal-light); color: var(--roal-main-dark); border-color: var(--roal-light); font-weight: 600; }

/* 소개 배너 */
.roal-tagline { background: var(--roal-light); color: var(--roal-main-dark); text-align: center; padding: 12px 20px; font-size: 16px; }

/* 검색 오버레이 */
.roal-search-panel { display: none; border-bottom: 1px solid var(--roal-border); background: var(--roal-bg-soft); }
.roal-search-panel.is-open { display: block; }
.roal-search-panel form { display: flex; gap: 8px; padding: 16px 0; }
.roal-search-panel input[type="search"] {
  flex: 1; font-size: 17px; padding: 12px 16px; border: 1px solid var(--roal-border);
  border-radius: var(--roal-radius); background: var(--roal-bg); color: var(--roal-text);
}
.roal-search-panel button { flex: none; }

/* ---------- 버튼 공통 ---------- */
.roal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--roal-main); color: #fff; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; padding: 12px 22px; border-radius: var(--roal-radius);
  font-family: inherit;
}
.roal-btn:hover { background: var(--roal-main-dark); }
.roal-btn-ghost { background: transparent; color: var(--roal-text-sub); border: 1px solid var(--roal-border); }
.roal-btn-ghost:hover { background: var(--roal-bg-soft); color: var(--roal-text); }

/* ---------- 홈: 글 목록 ---------- */
.roal-main { padding: 8px 0 48px; }
.roal-section-title { font-size: 20px; font-weight: 700; margin: 32px 0 8px; display: flex; align-items: center; gap: 8px; }
.roal-section-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--roal-main); display: inline-block; }

.roal-thumb {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--roal-main-dark); color: var(--roal-thumb-text);
  border-radius: var(--roal-radius); overflow: hidden; flex: none;
  font-weight: 600; line-height: 1.45; padding: 8px;
}
.roal-thumb span { overflow-wrap: anywhere; max-width: 100%; }
.roal-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.roal-thumb.has-img { padding: 0; background: var(--roal-bg-soft); }

/* 리스트형 */
.roal-list .roal-post { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--roal-border); }
.roal-list .roal-thumb { width: 130px; height: 92px; font-size: 14px; }
.roal-post-body { min-width: 0; flex: 1; }
.roal-post-title { margin: 0 0 6px; font-size: 1.06em; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.roal-post:hover .roal-post-title { color: var(--roal-main); }
.roal-post-meta { font-size: 14px; color: var(--roal-text-sub); }
.roal-post-excerpt { margin: 6px 0 0; font-size: 15px; color: var(--roal-text-sub); line-height: 1.6; overflow-wrap: anywhere; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 카드형 */
.roal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px 0; }
.roal-cards-1 { grid-template-columns: 1fr; }
.roal-cards-1 .roal-thumb { height: 220px; font-size: 18px; }
.roal-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.roal-cards-3 .roal-thumb { height: 116px; font-size: 13px; }
.roal-cards-3 .roal-post-title { font-size: 0.94em; }
@media (max-width: 680px) { .roal-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.roal-cards .roal-post { border: 1px solid var(--roal-border); border-radius: var(--roal-radius); overflow: hidden; display: flex; flex-direction: column; }
.roal-cards .roal-thumb { width: 100%; height: 150px; border-radius: 0; font-size: 15px; }
.roal-cards .roal-post-body { padding: 14px 16px 16px; }
@media (max-width: 560px) { .roal-cards { grid-template-columns: 1fr; } }

/* 매거진형: 첫 글 크게 */
.roal-magazine .roal-post-hero { display: block; padding: 18px 0; border-bottom: 1px solid var(--roal-border); }
.roal-magazine .roal-post-hero .roal-thumb { width: 100%; height: 260px; font-size: 22px; margin-bottom: 14px; }
.roal-magazine .roal-post-hero .roal-post-title { font-size: 1.35em; }

/* 인기글 */
.roal-popular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; padding: 10px 0 6px; }
.roal-popular .roal-post { display: flex; gap: 12px; align-items: center; }
.roal-popular .roal-rank { font-size: 22px; font-weight: 800; color: var(--roal-main); width: 26px; flex: none; text-align: center; }
.roal-popular .roal-post { min-width: 0; }
.roal-popular .roal-post-title { font-size: 16px; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .roal-popular { grid-template-columns: 1fr; } }

/* 댓글 */
.roal-comments { margin-top: 36px; }
.roal-comments-title { font-size: 19px; font-weight: 800; margin: 0 0 14px; }
.roal-comments-count { color: var(--roal-main); }
.roal-style-b .roal-comments-count { color: var(--roal-news-accent); }
.roal-comment-box { background: var(--roal-bg-soft); border: 1px solid var(--roal-border); border-radius: var(--roal-radius); padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.roal-comment-box p { margin: 0; }
.roal-cf-half { flex: 1 1 240px; min-width: 0; }
.roal-comment-box .comment-form-comment { flex: 1 1 100%; }
.roal-comment-box input[type="text"], .roal-comment-box input[type="email"], .roal-comment-box textarea {
  width: 100%; box-sizing: border-box; background: var(--roal-bg); border: 1px solid var(--roal-border);
  border-radius: calc(var(--roal-radius) - 4px); color: var(--roal-text); padding: 11px 14px; font-size: 15px; font-family: inherit;
}
.roal-comment-box input:focus, .roal-comment-box textarea:focus { outline: none; border-color: var(--roal-main); }
.roal-comment-note { font-size: 12.5px; color: var(--roal-text-sub); margin-right: auto; }
.roal-comment-box .form-submit { margin: 0 0 0 auto; flex: none; }
.roal-comment-box .comment-form-cookies-consent { flex: 1 1 100%; font-size: 12.5px; color: var(--roal-text-sub); display: flex; gap: 6px; align-items: center; }
.roal-comments-empty { text-align: center; color: var(--roal-text-sub); font-size: 14.5px; padding: 26px 0 6px; }
.roal-comments .comment-list { list-style: none; margin: 22px 0 0; padding: 0; }
.roal-comments .comment { border-bottom: 1px solid var(--roal-border); padding: 14px 2px; }
.roal-comments .comment .avatar { border-radius: 50%; vertical-align: middle; margin-right: 9px; }
.roal-comments .comment-author { font-weight: 600; font-size: 14.5px; }
.roal-comments .comment-metadata { font-size: 12px; }
.roal-comments .comment-metadata a { color: var(--roal-text-sub); }
.roal-comments .comment-content { font-size: 15px; margin-top: 8px; line-height: 1.7; }
.roal-comments .reply { font-size: 12.5px; margin-top: 6px; }
.roal-comments .logged-in-as { display: none; }

/* 페이지네이션 */
.roal-pagination { margin: 28px 0 0; text-align: center; }
.roal-pagination .nav-links { display: inline-flex; gap: 6px; }
.roal-pagination a, .roal-pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--roal-radius); border: 1px solid var(--roal-border); font-size: 16px; padding: 0 10px;
}
.roal-pagination .current { background: var(--roal-main); border-color: var(--roal-main); color: #fff; font-weight: 700; }

/* ---------- 글 상세 ---------- */
.roal-single-head { padding: 28px 0 8px; }
.roal-single-cat { font-size: 14px; font-weight: 700; color: var(--roal-main); }
.roal-single-title { margin: 8px 0 12px; font-size: 1.65em; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.roal-single-meta { font-size: 14px; color: var(--roal-text-sub); display: flex; gap: 10px; flex-wrap: wrap; }
.roal-single-thumb { margin: 20px 0; }
.roal-single-thumb img { width: 100%; border-radius: var(--roal-radius); }

/* 목차 */
.roal-toc { background: var(--roal-bg-soft); border: 1px solid var(--roal-border); border-radius: var(--roal-radius); padding: 18px 22px; margin: 24px 0; }
.roal-toc-title { font-weight: 700; font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; cursor: pointer; color: var(--roal-text); font-family: inherit; width: 100%; text-align: left; }
.roal-toc-title svg { transition: transform 0.15s; color: var(--roal-text-sub); }
.roal-toc.is-closed .roal-toc-title { margin-bottom: 0; }
.roal-toc.is-closed .roal-toc-title svg { transform: rotate(-90deg); }
.roal-toc.is-closed ol { display: none; }
.roal-toc ol { margin: 0; padding-left: 20px; font-size: 15px; list-style-type: decimal; }
.roal-toc-marker-upper-roman ol { list-style-type: upper-roman; padding-left: 26px; }
.roal-toc-marker-disc ol { list-style-type: disc; }
.roal-toc-marker-hangul ol { list-style-type: hangul; padding-left: 26px; }
.roal-toc-marker-none ol { list-style-type: none; padding-left: 2px; }
.roal-toc li { margin: 4px 0; }
.roal-toc a { color: var(--roal-text-sub); }
.roal-toc a:hover { color: var(--roal-main); }
.roal-toc ol ol { margin-top: 4px; }

/* 본문 */
.roal-content { padding: 4px 0 8px; }
.roal-content h2 { font-size: 1.35em; margin: 1.8em 0 0.6em; padding-left: 12px; border-left: 4px solid var(--roal-main); line-height: 1.4; }
.roal-content h3 { font-size: 1.15em; margin: 1.5em 0 0.5em; }
.roal-content p { margin: 0 0 1.1em; }
.roal-content img { border-radius: var(--roal-radius); }
.roal-content blockquote { margin: 1.2em 0; padding: 14px 18px; background: var(--roal-light); color: var(--roal-main-dark); border-radius: var(--roal-radius); }
.roal-content blockquote p:last-child { margin: 0; }
.roal-content table { border-collapse: collapse; width: 100%; font-size: 0.94em; margin: 1.2em 0; }
.roal-content th, .roal-content td { border: 1px solid var(--roal-border); padding: 10px 12px; text-align: left; }
.roal-content th { background: var(--roal-bg-soft); }
.roal-content a { color: var(--roal-main); text-decoration: underline; text-underline-offset: 3px; }

/* 숏코드 슬롯 */
.roal-sc { margin: 20px 0; }

/* 작성자 박스 */
.roal-author { display: flex; gap: 14px; align-items: center; border: 1px solid var(--roal-border); border-radius: var(--roal-radius); padding: 18px 20px; margin: 24px 0; }
.roal-author img { border-radius: 50%; width: 56px; height: 56px; flex: none; }
.roal-author-name { font-weight: 700; font-size: 16px; }
.roal-author-desc { font-size: 14px; color: var(--roal-text-sub); margin-top: 2px; }

/* 이전/다음 글 */
.roal-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.roal-prevnext a { border: 1px solid var(--roal-border); border-radius: var(--roal-radius); padding: 14px 16px; display: block; min-width: 0; }
.roal-prevnext a:hover { border-color: var(--roal-main); }
.roal-prevnext .label { font-size: 13px; color: var(--roal-text-sub); display: block; margin-bottom: 4px; }
.roal-prevnext .title { font-size: 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.roal-prevnext .next { text-align: right; }
@media (max-width: 560px) { .roal-prevnext { grid-template-columns: 1fr; } }

/* 관련 글 */
.roal-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 10px 0 8px; }
.roal-related .roal-post { display: flex; gap: 12px; min-width: 0; }
.roal-related .roal-post > div { min-width: 0; }
.roal-related .roal-thumb { width: 92px; height: 68px; font-size: 12px; }
.roal-related .roal-post-title { font-size: 15px; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .roal-related { grid-template-columns: 1fr; } }

/* ---------- 검색 / 아카이브 / 404 ---------- */
.roal-archive-head { padding: 28px 0 4px; }
.roal-archive-label { font-size: 14px; font-weight: 700; color: var(--roal-main); }
.roal-archive-title { margin: 6px 0 4px; font-size: 1.5em; font-weight: 800; }
.roal-archive-desc { color: var(--roal-text-sub); font-size: 15px; margin: 0; }

.roal-empty { text-align: center; padding: 56px 0 24px; }
.roal-empty-icon { font-size: 44px; }
.roal-empty h2 { font-size: 1.3em; margin: 12px 0 6px; }
.roal-empty p { color: var(--roal-text-sub); margin: 0 0 20px; }
.roal-empty form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.roal-empty input[type="search"] { flex: 1; font-size: 16px; padding: 12px 16px; border: 1px solid var(--roal-border); border-radius: var(--roal-radius); background: var(--roal-bg); color: var(--roal-text); }

/* ---------- 페이지 ---------- */
.roal-page-title { margin: 28px 0 8px; font-size: 1.55em; font-weight: 800; }

/* ---------- 댓글 ---------- */
.roal-comments { margin: 32px 0 0; }
.roal-comments .comment-list { list-style: none; padding: 0; }
.roal-comments .comment { border-top: 1px solid var(--roal-border); padding: 16px 0; }
.roal-comments .comment-meta { font-size: 14px; color: var(--roal-text-sub); }
.roal-comments textarea, .roal-comments input[type="text"], .roal-comments input[type="email"] {
  width: 100%; border: 1px solid var(--roal-border); border-radius: var(--roal-radius);
  padding: 12px 14px; font-family: inherit; font-size: 16px; background: var(--roal-bg); color: var(--roal-text);
}

/* ---------- 푸터 ---------- */
.roal-footer { border-top: 1px solid var(--roal-border); background: var(--roal-bg-soft); margin-top: 40px; }
.roal-footer-inner { padding: 28px 0 36px; text-align: center; font-size: 14px; color: var(--roal-text-sub); }
.roal-footer-menu { display: flex; gap: 16px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.roal-footer-menu a:hover { color: var(--roal-main); }
.roal-footer-sns { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.roal-footer-sns a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--roal-border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--roal-text-sub);
}
.roal-footer-sns a:hover { color: var(--roal-main); border-color: var(--roal-main); }
.roal-footer-biz { font-size: 13px; margin-top: 10px; line-height: 1.7; }

/* 맨 위로 */
.roal-top-btn {
  position: fixed; right: 20px; bottom: 24px; width: 48px; height: 48px; z-index: 60;
  border-radius: 50%; border: 1px solid var(--roal-border); background: var(--roal-bg);
  color: var(--roal-text-sub); cursor: pointer; font-size: 20px;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.roal-top-btn.is-visible { display: flex; }

/* 읽는 시간 */
.roal-readtime { display: inline-flex; align-items: center; gap: 4px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (max-width: 560px) {
  .roal-single-title { font-size: 1.45em; }
  .roal-list .roal-thumb { width: 104px; height: 78px; font-size: 12px; }
}

/* =========================================================
   스타일 B: 언론사 — 다크 뉴스 포털 (graynews 디자인 기반)
   ========================================================= */
/* 다크 팔레트 (스킨 색은 포인트로 유지) */
body.roal-style-b {
	--roal-bg: #0A0F1E;
	--roal-bg-soft: #121A2E;
	--roal-text: #E8ECF4;
	--roal-text-sub: #93A0B8;
	--roal-border: #1E2A44;
	--roal-news-accent: var(--roal-thumb-text);
	--roal-radius: 12px;
	--roal-max: 1140px;
	background: var(--roal-bg);
}
body.roal-style-b.roal-corner-square { --roal-radius: 0px; }
body.roal-style-b.roal-corner-soft { --roal-radius: 6px; }
body.roal-style-b.roal-corner-xround { --roal-radius: 22px; }
.roal-style-b .roal-site-title { font-weight: 800; font-size: 25px; letter-spacing: -0.02em; }
.roal-style-b .roal-header { background: var(--roal-bg); border-bottom: none; }
.roal-style-b .roal-header-inner { padding: 20px 0 12px; }
/* 둥근 알약형 메뉴 바 */
.roal-style-b .roal-catbar { background: transparent; border-bottom: none; padding: 4px 0 10px; }
.roal-style-b .roal-catbar-inner { background: var(--roal-bg-soft); border: 1px solid var(--roal-border); border-radius: 999px; padding: 4px 10px; justify-content: center; }
.roal-style-b .roal-pill { border: none; border-radius: 999px; background: transparent; height: 40px; padding: 0 18px; color: var(--roal-text); font-weight: 600; position: relative; }
.roal-style-b .roal-pill:hover { color: var(--roal-news-accent); }
.roal-style-b .roal-pill.is-active { background: transparent; color: var(--roal-news-accent); }
.roal-style-b .roal-pill.is-active::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; background: var(--roal-news-accent); border-radius: 2px; }
.roal-style-b .roal-pill-drop { background: var(--roal-bg-soft); border-color: var(--roal-border); }
.roal-style-b .roal-pill-drop a:hover { background: rgba(128,128,128,0.12); color: var(--roal-news-accent); }
.roal-style-b .roal-tagline { background: var(--roal-bg-soft); color: var(--roal-text-sub); font-size: 14px; }

/* 카드 공통 */
.roal-news-wrap { padding: 8px 0; }
.roal-nc-media { background-size: cover; background-position: center; position: absolute; inset: 0; }
.roal-nc-media-text { background: linear-gradient(135deg, var(--roal-main-dark), var(--roal-main)); display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; }
.roal-nc-media-text span { color: var(--roal-thumb-text); font-weight: 700; font-size: 14px; line-height: 1.5; }
.roal-nc-frame { position: relative; border-radius: var(--roal-radius); overflow: hidden; border: 1px solid var(--roal-border); aspect-ratio: 16 / 10; }
.roal-news-badge { display: inline-block; background: var(--roal-main); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.roal-news-badge-dark { position: absolute; left: 10px; bottom: 10px; background: rgba(8,12,26,0.82); color: var(--roal-thumb-text); border: 1px solid var(--roal-border); }

/* 히어로 그리드: 큰 카드 + 2x2 */
.roal-news-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
.roal-news-hero { position: relative; border-radius: var(--roal-radius); overflow: hidden; border: 1px solid var(--roal-border); min-height: 380px; display: flex; align-items: flex-end; }
.roal-news-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,8,20,0.9) 0%, rgba(5,8,20,0.25) 55%, rgba(5,8,20,0) 100%); }
.roal-news-hero-body { position: relative; z-index: 1; padding: 20px 22px; }
.roal-news-hero-title { margin: 10px 0 0; font-size: 1.5em; font-weight: 800; line-height: 1.4; color: #fff; letter-spacing: -0.01em; }
.roal-news-hero:hover .roal-news-hero-title { color: var(--roal-thumb-text); }
.roal-news-hero-subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.roal-news-card { display: block; min-width: 0; }
.roal-nc-title { margin: 9px 2px 0; font-size: 14.5px; font-weight: 600; color: var(--roal-text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.roal-news-card:hover .roal-nc-title { color: var(--roal-news-accent); }

/* 본문 + 사이드바 */
.roal-news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding: 26px 0 8px; }
.roal-news-side { min-width: 0; }
.roal-news-side-box { background: var(--roal-bg-soft); border: 1px solid var(--roal-border); border-radius: var(--roal-radius); padding: 16px 18px; position: sticky; top: 16px; }
.roal-news-side-title { font-weight: 800; font-size: 17px; margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--roal-news-accent); color: var(--roal-text); }
.roal-news-rank { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--roal-border); align-items: center; }
.roal-news-rank:last-child { border-bottom: none; }
.roal-news-rank-num { font-weight: 800; font-size: 18px; color: var(--roal-news-accent); flex: none; width: 18px; font-style: italic; }
.roal-news-rank-title { font-size: 14px; line-height: 1.5; color: var(--roal-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; flex: 1; }
.roal-news-rank:hover .roal-news-rank-title { color: var(--roal-news-accent); }
.roal-news-rank-thumb { flex: none; width: 58px; height: 44px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--roal-border); }

/* 카테고리 섹션 */
.roal-news-section { margin-bottom: 34px; }
.roal-news-section-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--roal-border); padding-bottom: 10px; margin-bottom: 16px; }
.roal-news-section-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--roal-text); padding-left: 11px; border-left: 4px solid var(--roal-news-accent); }
.roal-news-more { font-size: 12px; letter-spacing: 0.06em; color: var(--roal-text-sub); font-weight: 600; }
.roal-news-more:hover { color: var(--roal-news-accent); }
.roal-news-section-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.roal-news-lead { display: block; min-width: 0; }
.roal-news-lead-title { margin: 12px 2px 6px; font-size: 18px; font-weight: 700; line-height: 1.45; color: var(--roal-text); }
.roal-news-lead:hover .roal-news-lead-title { color: var(--roal-news-accent); }
.roal-news-lead-desc { margin: 0 2px; font-size: 13.5px; color: var(--roal-text-sub); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.roal-news-rows { display: flex; flex-direction: column; min-width: 0; }
.roal-news-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--roal-border); min-width: 0; }
.roal-news-row:first-child { padding-top: 2px; }
.roal-news-row:last-child { border-bottom: none; }
.roal-news-row-thumb { flex: none; width: 88px; height: 62px; position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--roal-border); }
.roal-news-row-body { min-width: 0; }
.roal-news-row-title { margin: 0 0 3px; font-size: 14.5px; font-weight: 600; color: var(--roal-text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.roal-news-row:hover .roal-news-row-title { color: var(--roal-news-accent); }
.roal-news-row-desc { margin: 0 0 3px; font-size: 12.5px; color: var(--roal-text-sub); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.roal-news-time { font-size: 11.5px; color: var(--roal-text-sub); opacity: 0.8; flex: none; }

/* 글 페이지 */
.roal-style-b .roal-single-head, .roal-style-b article { max-width: 820px; margin-left: auto; margin-right: auto; }
.roal-style-b .roal-single-cat { display: inline-block; color: var(--roal-news-accent); font-size: 13.5px; font-weight: 700; background: transparent; padding: 0; }
.roal-style-b .roal-single-cat::after { content: ' ›'; opacity: 0.6; }
.roal-style-b .roal-single-title { font-weight: 800; letter-spacing: -0.01em; }
.roal-style-b .roal-single-meta { border-top: 1px solid var(--roal-border); border-bottom: 1px solid var(--roal-border); padding: 10px 0; align-items: center; }
.roal-style-b .roal-single-meta > span:first-child { color: var(--roal-news-accent); font-weight: 600; }
.roal-font-adjust { margin-left: auto; display: inline-flex; gap: 5px; }
.roal-font-btn { font-size: 12px; border: 1px solid var(--roal-border); background: var(--roal-bg-soft); color: var(--roal-text-sub); padding: 5px 11px; cursor: pointer; font-family: inherit; border-radius: 7px; }
.roal-font-btn:hover { border-color: var(--roal-news-accent); color: var(--roal-news-accent); }
.roal-single-lead { margin: 16px 0 0; font-size: 1.05em; font-weight: 700; color: var(--roal-text); line-height: 1.7; white-space: pre-line; }
.roal-single-sign { text-align: right; font-size: 14px; color: var(--roal-text-sub); border-top: 1px solid var(--roal-border); padding-top: 12px; margin: 22px 0 0; }
.roal-style-b .roal-content h2 { border-left: 4px solid var(--roal-news-accent); }
.roal-style-b .roal-single-thumb img { border-radius: var(--roal-radius); border: 1px solid var(--roal-border); }

/* 관련 글: 4열 이미지 카드 */
.roal-style-b .roal-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.roal-style-b .roal-related .roal-post { display: block; padding: 0; border: none; }
.roal-style-b .roal-related .roal-thumb { width: 100%; height: 92px; border: 1px solid var(--roal-border); }
.roal-style-b .roal-related .roal-post-title { font-size: 13.5px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 캡션 */
.roal-content .wp-caption-text, .roal-content figcaption { font-size: 0.82em; color: var(--roal-text-sub); font-style: italic; margin-top: 6px; }

/* 푸터: 포인트 그라데이션 바 + 다크 */
.roal-style-b .roal-footer { background: var(--roal-bg-soft); border-top: none; position: relative; margin-top: 40px; }
.roal-style-b .roal-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--roal-main-dark), var(--roal-thumb-text), var(--roal-main-dark)); }
.roal-style-b .roal-footer-inner { text-align: center; padding-top: 34px; }
.roal-style-b .roal-footer-inner, .roal-style-b .roal-footer-menu a, .roal-style-b .roal-footer-sns a { color: var(--roal-text-sub); }
.roal-style-b .roal-footer-menu { justify-content: center; }
.roal-style-b .roal-footer-menu a:hover { color: var(--roal-news-accent); }
.roal-style-b .roal-footer-sns { justify-content: center; }
.roal-style-b .roal-footer-sns a { border-color: var(--roal-border); }

/* 다른 페이지 폭 제한 */
.roal-style-b .roal-archive-head, .roal-style-b .roal-cat-banner, .roal-style-b .roal-cat-children,
.roal-style-b .roal-list, .roal-style-b .roal-cards, .roal-style-b .roal-pagination, .roal-style-b .roal-empty { max-width: 820px; margin-left: auto; margin-right: auto; }
.roal-style-b .roal-search-panel input[type="search"] { background: var(--roal-bg-soft); border-color: var(--roal-border); color: var(--roal-text); }

@media (max-width: 900px) {
  .roal-news-hero-grid { grid-template-columns: 1fr; }
  .roal-news-hero { min-height: 260px; }
  .roal-news-grid { grid-template-columns: 1fr; gap: 8px; }
  .roal-news-side-box { position: static; margin-top: 20px; }
  .roal-news-section-body { grid-template-columns: 1fr; }
  .roal-style-b .roal-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roal-style-b .roal-catbar-inner { justify-content: flex-start; }
}

/* =========================================================
   스타일 C: 감성 블로그
   ========================================================= */
body.roal-style-c { background: var(--roal-bg-soft); --roal-radius: 18px; }
.roal-style-c .roal-header { background: transparent; border-bottom: none; }
.roal-style-c .roal-header.is-sticky { background: var(--roal-bg-soft); }
.roal-style-c .roal-header-inner { padding: 24px 0 8px; }
.roal-style-c .roal-site-title { font-weight: 800; }
.roal-style-c .roal-logo-letter { border-radius: 14px; }
.roal-style-c .roal-catbar { background: transparent; border-bottom: none; }
.roal-style-c .roal-catbar-inner { padding: 8px 0 16px; }
.roal-style-c .roal-pill { background: var(--roal-bg); border-color: transparent; }
.roal-style-c .roal-pill.is-active { background: var(--roal-main); color: #fff; }
.roal-style-c .roal-tagline { border-radius: var(--roal-radius); margin: 0 20px; max-width: calc(var(--roal-max) - 40px); margin-left: auto; margin-right: auto; }
.roal-style-c .roal-section-title { font-size: 19px; }
.roal-style-c .roal-list .roal-post,
.roal-style-c .roal-magazine .roal-post-hero { background: var(--roal-bg); border-bottom: none; border-radius: var(--roal-radius); padding: 16px; margin: 14px 0; }
.roal-style-c .roal-cards .roal-post { border: none; background: var(--roal-bg); }
.roal-style-c .roal-thumb { border-radius: 14px; }
.roal-style-c .roal-post-meta { color: var(--roal-main); font-weight: 500; }
.roal-style-c .roal-popular { background: var(--roal-bg); border-radius: var(--roal-radius); padding: 16px 18px; }
.roal-style-c .roal-toc { background: var(--roal-bg); border: none; }
.roal-style-c .roal-single-head, .roal-style-c .roal-content, .roal-style-c .roal-single-thumb { background: transparent; }
.roal-style-c .roal-author, .roal-style-c .roal-prevnext a { background: var(--roal-bg); border: none; }
.roal-style-c .roal-footer { background: transparent; border-top: none; }
.roal-style-c .roal-search-panel { background: transparent; border-bottom: none; }
.roal-style-c .roal-search-panel input[type="search"] { border: none; background: var(--roal-bg); }
