/* WSN News Desk: staff page. Inherits the site's fonts; accent via --wsn-nd-accent. */
.wsn-nd {
	--wsn-nd-accent: #2a3b8e;
	--wsn-nd-line: #d9dce5;
	--wsn-nd-muted: #5b6070;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px 48px;
	box-sizing: border-box;
	color: #1a1d26;
}
.wsn-nd *, .wsn-nd *::before, .wsn-nd *::after { box-sizing: border-box; }
.wsn-nd h2 { margin: 0; font-size: 1.75rem; line-height: 1.2; }
.wsn-nd h3 { margin: 0 0 10px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.wsn-nd__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.wsn-nd__head-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wsn-nd__head-links a:not(.wsn-nd__btn), .wsn-nd__back { color: var(--wsn-nd-accent); font-weight: 600; }
.wsn-nd__card { background: #fff; border: 1px solid var(--wsn-nd-line); border-radius: 10px; padding: 20px; margin: 0 0 20px; }
.wsn-nd__center { max-width: 460px; margin: 0 auto; text-align: center; }
.wsn-nd__center p { margin: 8px 0 16px; }
.wsn-nd__small { font-size: .85rem; color: var(--wsn-nd-muted); margin: 6px 0 0; }
.wsn-nd__empty { padding: 14px 16px; background: #f4f5f8; border-radius: 8px; margin: 0; }
.wsn-nd__section { margin: 0 0 28px; }
.wsn-nd__count { font-size: .8rem; background: #b26a00; color: #fff; border-radius: 99px; padding: 1px 9px; }

/* Buttons */
.wsn-nd__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px;
	font: inherit; font-weight: 600; font-size: .95rem; border-radius: 6px; cursor: pointer; text-decoration: none;
	border: 1px solid var(--wsn-nd-accent); background: #fff; color: var(--wsn-nd-accent);
}
.wsn-nd__btn--primary { background: var(--wsn-nd-accent); color: #fff !important; }
.wsn-nd__btn--warn { border-color: #b26a00; color: #b26a00; }
.wsn-nd__btn[disabled] { opacity: .6; cursor: wait; }
.wsn-nd :focus-visible { outline: 3px solid var(--wsn-nd-accent); outline-offset: 2px; }

/* Messages */
.wsn-nd__msg { padding: 12px 16px; border-radius: 8px; margin: 0 0 20px; border-left: 5px solid #1e7e34; background: #eef8f0; }
.wsn-nd__msg--error { border-color: #b3261e; background: #fdeeee; }
.wsn-nd__msg--warn { border-color: #b26a00; background: #fff6e5; }

/* Story lists */
.wsn-nd__list { list-style: none; margin: 0; padding: 0; }
.wsn-nd__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--wsn-nd-line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.wsn-nd__item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; color: inherit; }
.wsn-nd__item-main strong { color: var(--wsn-nd-accent); font-size: 1.05rem; overflow-wrap: anywhere; }
.wsn-nd__item-main small { color: var(--wsn-nd-muted); }
.wsn-nd__note { font-size: .9rem; color: #7a4a00; margin-top: 4px; }
.wsn-nd__status { flex: 0 0 auto; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-right: 14px; white-space: nowrap; background: #eceef3; color: #3c4150; }
.wsn-nd__meta .wsn-nd__status { margin-right: 6px; }
.wsn-nd__status--pub { background: #e3f3e7; color: #1e6b31; }
.wsn-nd__status--pending { background: #fff1d6; color: #7a4a00; }
.wsn-nd__status--back { background: #fdeeee; color: #a3221b; }

/* Story form */
.wsn-nd__label { display: block; font-weight: 700; margin: 18px 0 6px; }
.wsn-nd__form > .wsn-nd__label:first-of-type { margin-top: 0; }
.wsn-nd input[type=text], .wsn-nd textarea {
	display: block; width: 100%; padding: 10px 12px; font: inherit; font-size: 16px;
	border: 1px solid #b8bdcc; border-radius: 6px; background: #fff; color: inherit;
}
.wsn-nd__title { font-size: 1.25rem !important; font-weight: 700; min-height: 50px; }
.wsn-nd .wp-editor-wrap { border: 1px solid #b8bdcc; border-radius: 6px; overflow: hidden; }
.wsn-nd .wp-editor-container { border: 0; }
.wsn-nd .mce-toolbar .mce-btn button { padding: 6px 7px; }
.wsn-nd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.wsn-nd input[type=file] { font-size: 15px; max-width: 100%; }
.wsn-nd__has-photo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.wsn-nd__thumb { width: 140px; height: auto; border-radius: 6px; }
.wsn-nd__inline { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
.wsn-nd__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.wsn-nd__actions p { margin: 0; flex-basis: 100%; }
.wsn-nd__photo { width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.wsn-nd__read { line-height: 1.6; }

@media (max-width: 767px) {
	.wsn-nd { padding: 0 12px 32px; }
	.wsn-nd h2 { font-size: 1.4rem; }
	.wsn-nd__grid { grid-template-columns: 1fr; }
	.wsn-nd__item { flex-direction: column; align-items: stretch; gap: 0; }
	.wsn-nd__item .wsn-nd__status { align-self: flex-start; margin: 0 16px 12px; }
	.wsn-nd__actions .wsn-nd__btn { flex: 1 1 100%; }
	.wsn-nd__head-links { width: 100%; justify-content: space-between; }
}
.wsn-nd__item-main, .wsn-nd__item-main *, .wsn-nd__btn { text-decoration: none !important; }

/* Themes style every <button>: keep ours as designed. */
.wsn-nd { padding-top: 32px; }
.wsn-nd .wsn-nd__btn { background: #fff !important; color: var(--wsn-nd-accent) !important; border: 1px solid var(--wsn-nd-accent) !important; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; }
.wsn-nd .wsn-nd__btn--primary { background: var(--wsn-nd-accent) !important; color: #fff !important; }
.wsn-nd .wsn-nd__btn--warn { border-color: #b26a00 !important; color: #b26a00 !important; }
/* Story editor toolbar: undo theme button styles inside TinyMCE. */
.wsn-nd .mce-toolbar-grp { background: #f6f7fa !important; border-bottom: 1px solid #d9dce5 !important; }
.wsn-nd .mce-btn, .wsn-nd .mce-btn button { background: transparent !important; border: 0 !important; box-shadow: none !important; color: #1a1d26 !important; min-height: 0 !important; text-transform: none !important; }
.wsn-nd .mce-btn button { padding: 6px 8px !important; border-radius: 4px !important; }
.wsn-nd .mce-btn:hover button, .wsn-nd .mce-btn.mce-active button { background: #dfe4f3 !important; }
.wsn-nd .mce-btn .mce-ico, .wsn-nd .mce-btn .mce-txt, .wsn-nd .mce-btn .mce-caret { color: #1a1d26 !important; border-top-color: #1a1d26 !important; }
.wsn-nd .mce-btn.mce-disabled button { opacity: .4; }
