/* Rhymix core screens (login, sign-up, member pages) restyled with the --hc-* tokens.
   Scoped to the member skin wrapper (.xm) and the wrapper of the message and friend pages (.xc, the
   communication module: the same markup under another class) inside the hc layout; core files are untouched. */
.hc-main :is(.xm, .xc) { max-width: 760px; margin: 0 auto; color: var(--hc-text); font-family: var(--hc-font); font-size: 14px; }
.hc-main :is(.xm, .xc) a { color: var(--hc-accent); text-decoration: none; }
.hc-main :is(.xm, .xc) h1, .hc-main :is(.xm, .xc) h2, .hc-main :is(.xm, .xc) h3 { color: var(--hc-text); font-weight: 800; letter-spacing: -0.02em; }
.hc-main :is(.xm, .xc) h1 { font-size: 22px; }

.hc-main :is(.xm, .xc) input[type="text"], .hc-main :is(.xm, .xc) input[type="email"], .hc-main :is(.xm, .xc) input[type="password"], .hc-main :is(.xm, .xc) input[type="tel"],
.hc-main :is(.xm, .xc) input[type="url"], .hc-main :is(.xm, .xc) input[type="number"], .hc-main :is(.xm, .xc) input[type="date"], .hc-main :is(.xm, .xc) select, .hc-main :is(.xm, .xc) textarea {
	box-sizing: border-box; max-width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--hc-border); border-radius: var(--hc-radius);
	/* The size is set here, not inherited: the skin puts a field that has a button beside it in a
	   wrapper with font-size 0 (.input-append), and an inherited size made typed text invisible. */
	background: var(--hc-surface); color: var(--hc-text); font: 14px/1.5 var(--hc-font); box-shadow: none;
}
.hc-main :is(.xm, .xc) textarea { height: auto; padding: 8px 10px; }
.hc-main :is(.xm, .xc) input:focus, .hc-main :is(.xm, .xc) select:focus, .hc-main :is(.xm, .xc) textarea:focus { border-color: var(--hc-accent); outline: none; box-shadow: none; }
.hc-main :is(.xm, .xc) label, .hc-main :is(.xm, .xc) .control-label { color: var(--hc-text-2); }
.hc-main :is(.xm, .xc) .help-inline, .hc-main :is(.xm, .xc) .help-block, .hc-main :is(.xm, .xc) .x_help-block { color: var(--hc-text-3); }

.hc-main :is(.xm, .xc) .btn, .hc-main :is(.xm, .xc) input[type="submit"], .hc-main :is(.xm, .xc) input[type="button"], .hc-main :is(.xm, .xc) button {
	display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border: 0; border-radius: 18px;
	background: var(--hc-surface-2); background-image: none; color: var(--hc-text) !important; font: inherit; font-size: 14px; text-shadow: none; box-shadow: inset 0 0 0 1px var(--hc-border); cursor: pointer;
}
.hc-main :is(.xm, .xc) .btn-inverse, .hc-main :is(.xm, .xc) .btn-primary, .hc-main :is(.xm, .xc) input[type="submit"] {
	background: var(--hc-ink); color: var(--hc-ink-text) !important; box-shadow: none;
}

/* Button rows (member info) wrap instead of forcing one line. */
.hc-main :is(.xm, .xc) .btn-group { display: flex; flex-wrap: wrap; gap: 6px; font-size: inherit; white-space: normal; }
.hc-main :is(.xm, .xc) .btn-group > .btn { margin: 0; border-radius: 18px; }

.hc-main :is(.xm, .xc) .nav-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 16px; padding: 0; border: 0; border-bottom: 1px solid var(--hc-border); list-style: none; }
.hc-main :is(.xm, .xc) .nav-tabs > li { float: none; margin: 0; }
.hc-main :is(.xm, .xc) .nav-tabs > li > a { display: block; margin: 0 0 -1px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--hc-text-3); }
.hc-main :is(.xm, .xc) .nav-tabs > li.active > a, .hc-main :is(.xm, .xc) .nav-tabs > li > a:hover { border-bottom-color: var(--hc-accent); background: transparent; color: var(--hc-accent); }

.hc-main :is(.xm, .xc) .signin { box-sizing: border-box; width: auto; max-width: 380px; margin: 32px auto; padding: 0; border: 1px solid var(--hc-border); border-radius: 8px; background: var(--hc-surface); box-shadow: none; overflow: hidden; }
.hc-main :is(.xm, .xc) .signin .login-header { padding: 16px 20px; border: 0; background: var(--hc-surface-2); }
.hc-main :is(.xm, .xc) .signin .login-header h1 { margin: 0; color: var(--hc-text); font-size: 18px; }
.hc-main :is(.xm, .xc) .signin .login-body { padding: 20px; background: transparent; }
.hc-main :is(.xm, .xc) .signin .login-body input[type="text"], .hc-main :is(.xm, .xc) .signin .login-body input[type="email"], .hc-main :is(.xm, .xc) .signin .login-body input[type="password"] { display: block; width: 100%; margin: 0 0 8px; }
/* The stock skin pins the submit button to the top-right of its row; here everything stacks. */
.hc-main :is(.xm, .xc) .signin .control-group { position: static; margin: 0; padding: 0; }
.hc-main :is(.xm, .xc) .signin .login-body label { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--hc-text-2); font-size: 13px; }
.hc-main :is(.xm, .xc) .signin #warning { margin: 6px 0 0; }
.hc-main :is(.xm, .xc) .signin #warning > p { margin: 0; color: var(--hc-text-3); font-size: 12px; line-height: 1.5; }
.hc-main :is(.xm, .xc) .signin .login-body input[type="submit"], .hc-main :is(.xm, .xc) .signin .submit { position: static; display: block; box-sizing: border-box; width: 100%; height: 44px !important; margin-top: 14px; padding: 0 !important; border-radius: 22px; line-height: 44px !important; text-align: center; background: var(--hc-accent); color: var(--hc-accent-contrast) !important; font-size: 15px; font-weight: 700; }

/* Sign-up form: live field feedback written by js/member.js. */
.hc-main :is(.xm, .xc) .hc-check { margin: 4px 0 0; font-size: 12px; line-height: 1.4; }
.hc-main :is(.xm, .xc) .hc-check.is-ok { color: #2f7d3b; }
.hc-main :is(.xm, .xc) .hc-check.is-bad { color: var(--hc-danger); }
.hc-main :is(.xm, .xc) .checkValue { display: none !important; }
.hc-main :is(.xm, .xc) input.hc-invalid { border-color: var(--hc-danger); }
.hc-main :is(.xm, .xc) .form-horizontal input[type="submit"], .hc-main :is(.xm, .xc) .btnArea .btn-inverse { background: var(--hc-accent); color: var(--hc-accent-contrast) !important; font-weight: 700; }
.hc-main :is(.xm, .xc) .signin .login-footer { padding: 12px 20px; border-top: 1px solid var(--hc-border-soft); background: transparent; color: var(--hc-text-3); text-align: center; }

.hc-main :is(.xm, .xc) table { width: 100%; border-collapse: collapse; background: transparent; }
.hc-main :is(.xm, .xc) table th, .hc-main :is(.xm, .xc) table td { padding: 8px 10px; border: 0; border-bottom: 1px solid var(--hc-border-soft); background: transparent; color: var(--hc-text); text-align: left; }
.hc-main :is(.xm, .xc) table th { background: var(--hc-surface-2); color: var(--hc-text-2); font-weight: 600; }
.hc-main :is(.xm, .xc) .message { margin: 0 0 12px; padding: 10px 12px; border: 0; border-radius: var(--hc-radius); background: var(--hc-accent-soft); color: var(--hc-text); }
.hc-main :is(.xm, .xc) .control-group { margin-bottom: 12px; border-color: var(--hc-border-soft); }
/* The stock stripe and hover rows are near-white; keep them on the site surface in both colour schemes. */
.hc-main :is(.xm, .xc) .table-striped tbody > tr:nth-child(odd) > td, .hc-main :is(.xm, .xc) .table-striped tbody > tr:nth-child(odd) > th { background: transparent; }
.hc-main :is(.xm, .xc) .table-hover tbody tr:hover > td, .hc-main :is(.xm, .xc) .table-hover tbody tr:hover > th { background: var(--hc-surface-2); }
.hc-main :is(.xm, .xc) table th { white-space: nowrap; }
.hc-main :is(.xm, .xc) table button.text { height: 28px; padding: 0 10px; font-size: 13px; white-space: nowrap; }

.hc-main :is(.xm, .xc) .pagination a, .hc-main :is(.xm, .xc) .pagination strong { color: var(--hc-text-2); }
.hc-main :is(.xm, .xc) .pagination ul { border-radius: 0; box-shadow: none; }
.hc-main :is(.xm, .xc) .pagination ul > li > a, .hc-main :is(.xm, .xc) .pagination ul > li > span { min-width: 10px; margin: 0 1px; padding: 5px 12px; border: 0; border-radius: 17px; background: transparent; color: var(--hc-text-2); text-align: center; }
.hc-main :is(.xm, .xc) .pagination ul > li > a:hover, .hc-main :is(.xm, .xc) .pagination ul > li > a:focus { background: var(--hc-surface-2); }
.hc-main :is(.xm, .xc) .pagination ul > .active > a, .hc-main :is(.xm, .xc) .pagination ul > .active > span { background: var(--hc-ink); color: var(--hc-ink-text); }

@media (max-width: 599px) {
	/* Member lists (scraps, own posts) carry up to six columns. On a phone the number column is dropped
	   and only the title column wraps, so the table fits without sideways scrolling. */
	.hc-main :is(.xm, .xc) table th, .hc-main :is(.xm, .xc) table td { padding: 8px 4px; font-size: 13px; white-space: nowrap; }
	.hc-main :is(.xm, .xc) table td.title, .hc-main :is(.xm, .xc) table:has(th.title:nth-child(2)) td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
	.hc-main :is(.xm, .xc) table:has(th.title:nth-child(2)) tr > :first-child { display: none; }
	.hc-main :is(.xm, .xc) table select { width: 62px; height: 30px; padding: 0 4px; }
}

body.color_scheme_dark .hc-main :is(.xm, .xc) .hc-check.is-ok { color: #8fd49a; }

/* HC member pages (badges, block list) share the member skin's frame. */
.hc-main .hc-my__note { margin: 0 0 16px; color: var(--hc-text-3); font-size: 13px; line-height: 1.6; }
.hc-main .hc-my__empty { margin: 0; padding: 24px 0; border-top: 1px solid var(--hc-border-soft); color: var(--hc-text-3); text-align: center; }
.hc-main .hc-my__badges { margin: 0; padding: 0; border-top: 1px solid var(--hc-border-soft); list-style: none; }
.hc-main .hc-my__badges > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 4px; border-bottom: 1px solid var(--hc-border-soft); }
.hc-main .hc-my__badge { display: flex; align-items: center; gap: 6px; color: var(--hc-text-2); }
.hc-main .hc-my__current { color: var(--hc-accent); font-size: 13px; }

/* Notification list (modules/ncenterlite/skins/hc). */
.hc-main .hc-notify__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hc-main .hc-notify__head h1 { margin: 0; }
.hc-main .hc-notify__list { margin: 0; padding: 0; border-top: 1px solid var(--hc-border-soft); list-style: none; }
.hc-main .hc-notify__item > a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 4px 10px 16px; border-bottom: 1px solid var(--hc-border-soft); color: var(--hc-text-3); position: relative; }
.hc-main .hc-notify__item > a:hover { background: var(--hc-surface-2); }
.hc-main .hc-notify__item.is-unread > a { color: var(--hc-text); }
.hc-main .hc-notify__item.is-unread > a::before { content: ""; position: absolute; left: 4px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--hc-accent); }
.hc-main .hc-notify__text { min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.hc-main .hc-notify__time { flex: none; color: var(--hc-text-3); font-size: 12px; white-space: nowrap; }

/* Sign-up: the mailing-list and message choices are fixed parts of the stock form. They are hidden;
   the form still submits their defaults (no mailing, messages allowed). */
.hc-main :is(.xm, .xc) #fo_insert_member .control-group:has(input[name="allow_mailing"]),
.hc-main :is(.xm, .xc) #fo_insert_member .control-group:has(input[name="allow_message"]) { display: none; }

/* Integrated search (stock "default" skin) restyled with the --hc-* tokens. Core files are untouched. */
.hc-main #spot { margin: 4px 0 16px; }
.hc-main #spot .search { display: flex; gap: 8px; max-width: 520px; }
.hc-main #spot .search input[type="text"] { flex: 1 1 auto; min-width: 0; width: auto; height: 40px; padding: 0 14px; border: 1px solid var(--hc-border); border-radius: 20px; background: var(--hc-surface); color: var(--hc-text); font: inherit; font-size: 15px; font-weight: 400; line-height: normal; }
.hc-main #spot .search input[type="text"]:focus { border-color: var(--hc-accent); outline: none; }
.hc-main #spot .search input[type="submit"] { flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: var(--hc-ink); color: var(--hc-ink-text); font: inherit; font-size: 14px; font-weight: 600; line-height: 40px; box-shadow: none; }

.hc-main .localNavigation { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 16px; padding: 0; border-bottom: 1px solid var(--hc-border); }
.hc-main .localNavigation::after { display: none; }
.hc-main .localNavigation li { float: none; margin: 0; background: transparent; }
.hc-main .localNavigation li a { float: none; display: block; height: auto; margin: 0 0 -1px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--hc-text-3); }
.hc-main .localNavigation li.on { margin-bottom: 0; }
.hc-main .localNavigation li.on a, .hc-main .localNavigation li a:hover { height: auto; border-bottom-color: var(--hc-accent); color: var(--hc-accent); font-weight: 700; }

.hc-main h3.subTitle { margin: 20px 0 10px; padding: 0; background: none; color: var(--hc-text); font-size: 16px; font-weight: 700; }
.hc-main h3.subTitle span { color: var(--hc-text-3); font-family: inherit; font-size: 13px; }
.hc-main .subNavigation { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; border: 0; overflow: visible; }
.hc-main .subNavigation::after { display: none; }
.hc-main .subNavigation li { float: none; margin: 0; }
.hc-main .subNavigation li a { float: none; display: block; margin: 0; padding: 4px 12px; border: 0; border-radius: 14px; background: var(--hc-surface-2); color: var(--hc-text-2); font-size: 13px; }
.hc-main .subNavigation li.on { margin: 0; }
.hc-main .subNavigation li.on a { background: var(--hc-ink); color: var(--hc-ink-text); font-weight: 600; }

.hc-main .noResult { margin: 0 0 20px; padding: 16px 0; border-bottom: 1px solid var(--hc-border-soft); color: var(--hc-text-3); }
.hc-main .searchResult { margin: 0; padding: 0; }
.hc-main .searchResult li { margin: 0; padding: 12px 0; border-bottom: 1px dashed var(--hc-border-soft); }
.hc-main .searchResult li .thumb { width: 56px; height: 56px; margin-right: 12px; padding: 0; border: 0; border-radius: var(--hc-radius); object-fit: cover; }
.hc-main .searchResult li dl { margin: 0; }
.hc-main .searchResult li dl dt { margin: 0 0 2px; color: var(--hc-text-3); }
.hc-main .searchResult li dl dt a, .hc-main .searchResult.comment li dl dt a { color: var(--hc-text); font-size: 15px; font-weight: 600; text-decoration: none; }
.hc-main .searchResult.comment li dl dt a { font-weight: 400; }
.hc-main .searchResult li dl dt a:hover { color: var(--hc-accent); text-decoration: none; }
.hc-main .searchResult li dl dt .reply, .hc-main .searchResult li dl dt .reply em { color: var(--hc-accent); font: inherit; font-size: 12px; font-style: normal; }
.hc-main .searchResult li dl dd { margin: 0 0 2px; color: var(--hc-text-2); line-height: 1.5; overflow-wrap: anywhere; }
.hc-main .searchResult li address { margin-top: 2px; color: var(--hc-border); font-size: 12px; }
.hc-main .searchResult li address strong { color: var(--hc-text-2); }
.hc-main .searchResult li address .time, .hc-main .searchResult li address .read, .hc-main .searchResult li address .readNum,
.hc-main .searchResult li address .recom { color: var(--hc-text-3); font: inherit; }
.hc-main .searchResult li address .recomNum { color: var(--hc-accent); font: inherit; font-weight: 700; }
.hc-main div.isMore { margin: 0 0 8px; padding: 8px 0 12px; border-bottom: 1px solid var(--hc-border); }
.hc-main div.isMore a { color: var(--hc-text-3); font-size: 0; text-decoration: none; }
.hc-main div.isMore a::before { content: "더보기"; font-size: 13px; }
.hc-main strong.noKeyword { margin: 40px 0; color: var(--hc-text-2); font-weight: 400; text-align: center; }

.hc-main .pagination.a1 { padding: 16px 0; }
.hc-main .pagination.a1 a, .hc-main .pagination.a1 strong { min-width: 34px; height: 34px; margin: 0 1px; padding: 0 10px; border: 0; border-radius: 17px; background: transparent; color: var(--hc-text-2); font-family: inherit; font-size: 14px; font-weight: 400; line-height: 34px; }
.hc-main .pagination.a1 a:hover, .hc-main .pagination.a1 a:focus { background-color: var(--hc-surface-2) !important; }
.hc-main .pagination.a1 strong { background: var(--hc-ink); color: var(--hc-ink-text) !important; }
.hc-main .pagination.a1 a.prevEnd, .hc-main .pagination.a1 a.nextEnd { padding: 0 10px; background: transparent; color: var(--hc-text-3); font-size: 13px; }
