/**
 * Ignite Newswire front end.
 *
 * The marketing pages already carry the full design system. This file defines
 * only the tokens and components the plugin needs to stand on its own, all
 * scoped under .inw so a themed page wins wherever both define a rule.
 */

.inw {
	--inw-navy: #0C243C;
	--inw-navy-700: #173a5c;
	--inw-body: #4d6072;
	--inw-muted: #7d8fa1;
	--inw-orange: #F0821E;
	--inw-orange-600: #d9720f;
	--inw-line: #e4e9ef;
	--inw-soft: #f7f9fb;
	--inw-peach: #fdf0e3;
	--inw-mint: #edf3e9;
	--inw-radius: 6px;
	--inw-shadow: 0 1px 2px rgba(12, 36, 60, .05), 0 10px 30px rgba(12, 36, 60, .06);
	color: var(--inw-body);
	font-size: 16px;
	line-height: 1.6;
}

.inw *,
.inw *::before,
.inw *::after { box-sizing: border-box; }

/* Forms ------------------------------------------------------------------ */

.inw .inw-form {
	background: #fff;
	border: 1px solid var(--inw-line);
	border-radius: var(--inw-radius);
	padding: 28px;
	box-shadow: var(--inw-shadow);
}

.inw .inw-fieldset { border: 0; padding: 0; margin: 0 0 26px; }

.inw .inw-fieldset legend {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--inw-orange);
	padding: 0;
	margin-bottom: 14px;
}

.inw .inw-fgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.inw .inw-field { display: flex; flex-direction: column; gap: 6px; }
.inw .inw-field--full { grid-column: 1 / -1; }

.inw .inw-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--inw-navy);
}

.inw .inw-field .req { color: var(--inw-orange); }

.inw .inw-field input,
.inw .inw-field select,
.inw .inw-field textarea {
	font: inherit;
	font-size: 14.5px;
	color: var(--inw-navy);
	background: #fff;
	border: 1px solid var(--inw-line);
	border-radius: 4px;
	padding: 10px 12px;
	width: 100%;
}

.inw .inw-field textarea { min-height: 120px; resize: vertical; }

.inw .inw-field input:focus,
.inw .inw-field select:focus,
.inw .inw-field textarea:focus {
	outline: none;
	border-color: var(--inw-orange);
	box-shadow: 0 0 0 3px rgba(240, 130, 30, .14);
}

.inw .inw-field input.is-invalid,
.inw .inw-field select.is-invalid,
.inw .inw-field textarea.is-invalid { border-color: #d94848; }

.inw .inw-field small { font-size: 12px; color: var(--inw-muted); }

.inw .inw-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13.5px;
	line-height: 1.5;
	margin-bottom: 12px;
}

.inw .inw-check input { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.inw .inw-check input.is-invalid { outline: 2px solid #d94848; }

.inw .inw-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.inw .inw-hint {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--inw-navy-700);
	background: var(--inw-soft);
	border-radius: 4px;
	padding: 10px 12px;
}

/* The honeypot is off-screen rather than display:none, which bots skip. */
.inw .inw-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Buttons ---------------------------------------------------------------- */

.inw .inw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	padding: 14px 24px;
	border-radius: 4px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: .18s ease;
}

.inw .inw-btn--primary { background: var(--inw-orange); color: #fff; border-color: var(--inw-orange); }
.inw .inw-btn--primary:hover { background: var(--inw-orange-600); border-color: var(--inw-orange-600); color: #fff; }
.inw .inw-btn--navy { background: var(--inw-navy); color: #fff; border-color: var(--inw-navy); }
.inw .inw-btn--navy:hover { background: var(--inw-navy-700); color: #fff; }
.inw .inw-btn--ghost { background: #fff; color: var(--inw-navy); border-color: var(--inw-line); }
.inw .inw-btn--ghost:hover { border-color: var(--inw-navy); }
.inw .inw-btn[disabled] { opacity: .6; cursor: default; }

/* Messages --------------------------------------------------------------- */

.inw .inw-msg {
	border-radius: var(--inw-radius);
	padding: 14px 16px;
	font-size: 14px;
	margin-bottom: 18px;
	border: 1px solid transparent;
}

.inw .inw-msg--error { background: #fdeceb; border-color: #f3c7c4; color: #8a2b25; }
.inw .inw-msg--success { background: var(--inw-mint); border-color: #cfe0c4; color: #2f5223; margin: 18px 0 0; }
.inw .inw-msg--info { background: var(--inw-soft); border-color: var(--inw-line); color: var(--inw-navy-700); }

/* Filters ---------------------------------------------------------------- */

.inw .inw-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: flex-end;
	background: #fff;
	border: 1px solid var(--inw-line);
	border-radius: var(--inw-radius);
	padding: 16px 18px;
}

.inw .inw-filters .inw-field { flex: 1 1 170px; }
.inw .inw-filters .inw-btn { padding: 11px 20px; font-size: 14px; }

/* Status ----------------------------------------------------------------- */

.inw .inw-status {
	margin-top: 20px;
	background: var(--inw-soft);
	border: 1px solid var(--inw-line);
	border-radius: var(--inw-radius);
	padding: 20px;
}

.inw .inw-status__ref {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	letter-spacing: .06em;
	color: var(--inw-muted);
}

.inw .inw-status__label { font-size: 22px; font-weight: 600; color: var(--inw-navy); margin-top: 4px; }
.inw .inw-status__place { font-size: 13.5px; color: var(--inw-body); margin-top: 6px; }
.inw .inw-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }

/* Coverage ladder -------------------------------------------------------- */

.inw .inw-ladder {
	margin-top: 20px;
	background: #fff;
	border: 1px solid var(--inw-line);
	border-radius: var(--inw-radius);
	padding: 22px 24px;
}

.inw .inw-ladder__list { list-style: none; margin: 0; padding: 0; }

.inw .inw-ladder__list li {
	position: relative;
	padding: 0 0 14px 26px;
	border-left: 2px solid var(--inw-line);
	margin-left: 5px;
}

.inw .inw-ladder__list li:last-child { border-left-color: transparent; padding-bottom: 0; }

.inw .inw-ladder__list li::before {
	content: "";
	position: absolute;
	left: -6px;
	top: 5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--inw-orange);
}

.inw .inw-ladder__level {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--inw-muted);
}

.inw .inw-ladder__who { margin: 14px 0 0; font-size: 14.5px; }
.inw .inw-ladder__partners { margin: 6px 0 0; font-size: 13.5px; color: var(--inw-muted); }

/* Story cards ------------------------------------------------------------ */

.inw .inw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.inw .inw-story {
	background: #fff;
	border: 1px solid var(--inw-line);
	border-radius: var(--inw-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--inw-shadow);
}

.inw .inw-story__media { display: block; background: var(--inw-soft); }
.inw .inw-story__media img { display: block; width: 100%; height: 160px; object-fit: cover; }
.inw .inw-story__body { padding: 20px 22px 0; flex: 1; }

.inw .inw-story__kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--inw-orange);
	margin-bottom: 8px;
}

.inw .inw-story h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; color: var(--inw-navy); }
.inw .inw-story h3 a { color: inherit; text-decoration: none; }
.inw .inw-story h3 a:hover { color: var(--inw-orange); }
.inw .inw-story p { font-size: 14px; line-height: 1.55; }

.inw .inw-story__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 22px 20px;
	font-size: 13px;
	color: var(--inw-muted);
}

.inw .inw-story__more { font-weight: 600; color: var(--inw-navy); text-decoration: none; }
.inw .inw-story__more:hover { color: var(--inw-orange); }

.inw .inw-story__place {
	border-top: 1px solid var(--inw-line);
	padding: 10px 22px;
	font-size: 12px;
	color: var(--inw-muted);
}

/* Pager ------------------------------------------------------------------ */

.inw .inw-pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }

.inw .inw-pager a {
	min-width: 38px;
	height: 38px;
	border: 1px solid var(--inw-line);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	background: #fff;
	color: var(--inw-navy);
	text-decoration: none;
}

.inw .inw-pager a.is-on { background: var(--inw-navy); border-color: var(--inw-navy); color: #fff; }

/* Attribution ------------------------------------------------------------ */

.inw-attribution { font-size: 13.5px; color: #7d8fa1; margin-top: 28px; }


/* Publisher dashboard ----------------------------------------------------- */

.inw-dash h2 { font-size: 24px; margin: 34px 0 14px; color: var(--inw-navy); }
.inw-dash__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.inw-stat { background: #fff; border: 1px solid var(--inw-line); border-left: 3px solid var(--inw-orange); border-radius: var(--inw-radius); padding: 16px 18px; }
.inw-stat b { display: block; font-size: 26px; line-height: 1.1; color: var(--inw-navy); }
.inw-stat span { display: block; font-size: 12.5px; color: var(--inw-muted); margin-top: 2px; }

.inw .inw-card { background: #fff; border: 1px solid var(--inw-line); border-radius: var(--inw-radius); padding: 20px 22px; margin-bottom: 16px; }
.inw .inw-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--inw-navy); }

.inw-sub__url { display: flex; gap: 8px; margin: 0 0 8px; }
.inw-sub__url a { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--inw-line); border-radius: 3px; padding: 4px 9px; text-decoration: none; color: var(--inw-navy); }
.inw-sub__url a:hover { border-color: var(--inw-orange); color: var(--inw-orange); }
.inw-feedurl, .inw-key { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--inw-soft); border: 1px solid var(--inw-line); border-radius: 4px; padding: 9px 11px; word-break: break-all; }
.inw-sub__form { margin-top: 16px; border-top: 1px solid var(--inw-line); padding-top: 16px; }

.inw-keys { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--inw-line); border-radius: var(--inw-radius); font-size: 14px; }
.inw-keys th, .inw-keys td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--inw-line); }
.inw-keys th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--inw-muted); }
.inw-keys tr.is-revoked { opacity: .5; }
.inw-linkbtn { background: none; border: 0; color: #a33; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.inw-muted { color: var(--inw-muted); }
.inw-inline-form { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; }
.inw-inline-form input[type="text"] { border: 1px solid var(--inw-line); border-radius: 4px; padding: 9px 12px; font: inherit; font-size: 14px; }
.inw .inw-btn--sm { padding: 10px 18px; font-size: 14px; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
	.inw .inw-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.inw .inw-fgrid { grid-template-columns: 1fr; }
	.inw .inw-form { padding: 20px; }
}
