/*
Theme Name:   Portal Child
Description:  Child theme for the news portal. All design changes go here, never in the parent theme.
Template:     kadence
Version:      0.7.0
Requires PHP: 8.2
Text Domain:  portal
*/

/*
 * Mobile first: the rules without a media query are for phones. Wider screens add
 * columns in the @media (min-width: ...) blocks at the end.
 *
 * Colours come from Kadence's palette (Appearance > Customize > Colors), so changing
 * a colour there also changes it here. Brand values are set by scripts/setup-design.php.
 */

:root {
	--portal-serif: Georgia, "Noto Serif", "Noto Serif Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Times New Roman", serif;
	/* Task 17B: story text. System fonts only (no download); the Devanagari names make Hindi use a
	   proper Hindi font on each device: Android, Windows, iPhone/Mac, older Windows. */
	--portal-read-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Mangal, "Helvetica Neue", Arial, sans-serif;
	--portal-read-scale: 1;
	--portal-accent: var(--global-palette1, #c8102e);
	--portal-text: var(--global-palette3, #111827);
	--portal-body: var(--global-palette4, #1f2937);
	--portal-muted: var(--global-palette5, #4b5563);
	--portal-border: var(--global-palette7, #e5e7eb);
}

/* ---------------------------------------------------------------- Breaking strip */

.portal-breaking {
	background: var(--portal-accent);
	color: #fff;
	font-size: 0.9375rem;
}

.portal-breaking__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.portal-breaking__label {
	flex: none;
	padding: 0.15rem 0.5rem;
	border-radius: 2px;
	background: #fff;
	color: var(--portal-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Several headlines: swipe sideways on phones instead of a moving ticker (easier to read). */
.portal-breaking__list {
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	white-space: nowrap;
	scrollbar-width: none;
}

.portal-breaking__list a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.portal-breaking__list a:hover,
.portal-breaking__list a:focus {
	text-decoration: underline;
}

.portal-breaking__list time {
	margin-left: 0.4rem;
	font-size: 0.8125rem;
	opacity: 0.85;
}

/* ---------------------------------------------------------------- Home layout */

/* Kadence adds a large top margin to content areas; the home page sets its own spacing. */
.portal-home-area {
	margin-top: 0;
}

.portal-home {
	display: grid;
	gap: 2.25rem;
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

.portal-home > * {
	min-width: 0; /* lets long headlines wrap inside grid cells */
}

.portal-home__empty {
	padding: 3rem 0;
	color: var(--portal-muted);
	text-align: center;
}

.portal-plain-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Section heading: red rule on top, name on the left, "More →" on the right. */
.portal-section-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 0.75rem;
	padding-top: 0.5rem;
	border-top: 3px solid var(--portal-accent);
	color: var(--portal-text);
	font-family: var(--portal-serif);
	font-size: 1.25rem;
	line-height: 1.3;
}

.portal-section-title h2 {
	margin: 0;
	font-size: inherit;
}

.portal-section-title a {
	color: inherit;
	text-decoration: none;
}

.portal-section-title__more {
	flex: none;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
}

.portal-section-title a:hover,
.portal-section-title a:focus {
	color: var(--portal-accent);
}

/* Phones: 5 Latest headlines so Trending is not pushed far down. Desktop shows all 8. */
.portal-latest li:nth-child(n+6) {
	display: none;
}

.portal-home__sections {
	display: grid;
	gap: 2.25rem;
}

.portal-section {
	display: grid;
	gap: 0.85rem;
	align-content: start;
}

.portal-blogs__grid {
	display: grid;
	gap: 1.5rem;
}

/* ---------------------------------------------------------------- Story cards */

.portal-card {
	display: grid;
	gap: 0.5rem;
	align-content: start;
}

.portal-card a {
	color: inherit;
	text-decoration: none;
}

.portal-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
	background: var(--portal-border);
}

.portal-card__body {
	display: grid;
	gap: 0.4rem;
	align-content: start;
}

.portal-card__kicker {
	color: var(--portal-accent) !important;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.portal-card__title {
	margin: 0;
	color: var(--portal-text);
	font-family: var(--portal-serif);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.portal-card__title a:hover,
.portal-card__title a:focus {
	color: var(--portal-accent);
}

.portal-card__excerpt {
	margin: 0;
	color: var(--portal-muted);
	font-size: 0.975rem;
	line-height: 1.55;
}

.portal-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	color: var(--portal-muted);
	font-size: 0.8125rem;
}

/* Lead: big image, big headline, short summary. */
.portal-card--lead {
	gap: 0.75rem;
}

.portal-top-story .portal-card__title {
	font-size: clamp(1.5rem, 5vw, 2.25rem);
	line-height: 1.15;
}

.portal-section .portal-card--lead .portal-card__title {
	font-size: 1.25rem;
}

/* Compact: headline left, small square picture right. */
.portal-card--compact {
	padding-top: 0.85rem;
	border-top: 1px solid var(--portal-border);
}

.portal-card--compact.has-media {
	grid-template-columns: minmax(0, 1fr) 96px;
	gap: 0.85rem;
}

.portal-card--compact .portal-card__media {
	order: 2;
}

.portal-card--compact .portal-card__media img {
	aspect-ratio: 1 / 1;
}

.portal-card--compact .portal-card__title {
	font-size: 1rem;
}

/* Headline: text only, for the Latest list. */
.portal-card--headline {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--portal-border);
}

.portal-card--headline .portal-card__body {
	gap: 0.25rem;
}

.portal-card--headline .portal-card__title {
	font-size: 1rem;
}

/* Community blog: picture, title, writer's photo and name. */
.portal-card--blog .portal-card__meta img {
	border-radius: 50%;
}

.portal-card__author {
	color: var(--portal-body);
	font-weight: 600;
}

/* ---------------------------------------------------------------- Badges */

.portal-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.portal-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.5;
	text-transform: uppercase;
}

.portal-badge--verified {
	background: #e3f4e8;
	color: #0f5a2a;
}

.portal-badge--premium {
	background: #fff1cc;
	color: #6b4100;
}

/* ---------------------------------------------------------------- Trending */

.portal-trending__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: portal-trend;
}

.portal-trending__item {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	align-items: start;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--portal-border);
	counter-increment: portal-trend;
}

.portal-trending__item::before {
	content: counter(portal-trend);
	color: var(--portal-accent);
	font-family: var(--portal-serif);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}

.portal-trending__item a {
	color: var(--portal-text);
	font-family: var(--portal-serif);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.portal-trending__item a:hover,
.portal-trending__item a:focus {
	color: var(--portal-accent);
}

/* ---------------------------------------------------------------- Tablet (768px+) */

@media (min-width: 768px) {
	.portal-home__sections {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem 2rem;
	}

	.portal-blogs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------- Desktop (1024px+) */

@media (min-width: 1024px) {
	.portal-home {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		grid-template-areas:
			"top      latest"
			"sections trending"
			"blogs    blogs";
		gap: 2.5rem;
		padding-top: 2rem;
	}

	.portal-latest li:nth-child(n+6) {
		display: list-item;
	}

	.portal-home__top { grid-area: top; }
	.portal-home__latest { grid-area: latest; }
	.portal-home__sections { grid-area: sections; }
	.portal-home__blogs { grid-area: blogs; }

	.portal-home__trending { grid-area: trending; }

	/*
	 * Trending stays in view while the reader scrolls past the sections. A sticky box
	 * can only travel inside its parent, and the parent (.portal-home__trending) ends
	 * where the sections end - so it never slides over Community Blogs.
	 */
	.portal-trending {
		position: sticky;
		top: 1.5rem;
	}

	.admin-bar .portal-trending {
		top: calc(32px + 1.5rem);
	}

	.portal-blogs__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ================================================================ Article page (Task 8) */

/* Read time + Premium label, and the Verified box, right under the headline. */
.portal-article-flags {
	display: grid;
	gap: 0.75rem;
	margin-top: 0.75rem;
	text-align: left;
}

.portal-article-flags__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--portal-muted);
	font-size: 0.875rem;
}

.portal-verified {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border: 1px solid #b7e1c3;
	border-left: 4px solid #1a7f3c;
	border-radius: 4px;
	background: #f1faf3;
	color: #0f3d20;
}

.portal-verified__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #1a7f3c;
	color: #fff;
	font-weight: 700;
}

.portal-verified__title {
	display: block;
	font-size: 0.9375rem;
}

.portal-verified__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1.25rem;
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
}

.portal-verified__facts div {
	display: flex;
	gap: 0.35rem;
}

.portal-verified__facts dt {
	font-weight: 600;
}

.portal-verified__facts dd {
	margin: 0;
}

/* Share buttons + Report, after the article text. */
.portal-article-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--portal-border);
}

.portal-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.portal-share__label {
	margin-right: 0.25rem;
	color: var(--portal-text);
	font-size: 0.875rem;
	font-weight: 700;
}

.portal-share__btn,
.portal-report-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 2.5rem; /* big enough to tap on a phone */
	height: 2.5rem;
	padding: 0 0.7rem;
	border: 1px solid var(--portal-border);
	border-radius: 999px;
	background: #fff;
	color: var(--portal-text);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

/* "display: inline-flex" above would otherwise beat the hidden attribute. */
.portal-share__btn[hidden],
.portal-report-btn[hidden] {
	display: none;
}

.portal-share__btn:hover,
.portal-share__btn:focus-visible,
.portal-report-btn:hover,
.portal-report-btn:focus-visible {
	border-color: var(--portal-accent);
	background: #fff;
	color: var(--portal-accent);
}

.portal-share__btn svg {
	width: 1.125rem;
	height: 1.125rem;
}

.portal-share__status {
	color: #0f5a2a;
	font-size: 0.8125rem;
}

.portal-report-btn {
	color: var(--portal-muted);
	font-size: 0.8125rem;
}

.portal-report-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Author card. */
.portal-author-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin: 2rem 0;
	padding: 1.25rem;
	border: 1px solid var(--portal-border);
	border-radius: 6px;
	background: #fff;
}

.portal-author-card__photo {
	flex: none;
}

.portal-author-card__photo img {
	display: block;
	border-radius: 50%;
}

.portal-author-card__body {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
}

.portal-author-card__role {
	margin: 0;
	color: var(--portal-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.portal-author-card__name {
	margin: 0;
	font-family: var(--portal-serif);
	font-size: 1.125rem;
	line-height: 1.3;
}

.portal-author-card__name a {
	color: var(--portal-text);
	text-decoration: none;
}

.portal-author-card__bio {
	margin: 0;
	color: var(--portal-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.portal-author-card__more {
	color: var(--portal-accent);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

/* Related stories: 2 across on phones, 4 on tablets and up. */
.portal-related {
	margin: 2rem 0;
}

.portal-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1rem;
}

.portal-card--tile .portal-card__title {
	font-size: 0.9375rem;
}

/* Report pop-up. */
.portal-report {
	width: min(32rem, calc(100% - 2rem));
	max-height: calc(100% - 2rem);
	padding: 0;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(17, 24, 39, 0.3);
	color: var(--portal-body);
}

.portal-report::backdrop {
	background: rgba(17, 24, 39, 0.55);
}

.portal-report__form {
	display: grid;
	gap: 1rem;
	padding: 1.25rem;
}

.portal-report__title {
	margin: 0;
	color: var(--portal-text);
	font-family: var(--portal-serif);
	font-size: 1.25rem;
}

.portal-report__intro {
	margin: 0;
	color: var(--portal-muted);
	font-size: 0.875rem;
}

.portal-report__reasons {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	border: 0;
}

.portal-report__reasons legend {
	margin-bottom: 0.5rem;
	padding: 0;
	font-weight: 700;
}

.portal-report__reasons label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.portal-report__reasons input {
	margin-top: 0.2rem;
}

.portal-report__details {
	display: grid;
	gap: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.portal-report__details textarea {
	width: 100%;
	font-weight: 400;
}

.portal-report__status {
	min-height: 1.25em;
	margin: 0;
	font-size: 0.875rem;
}

.portal-report__buttons {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

.portal-report__cancel {
	border: 1px solid var(--portal-border);
	background: #fff;
	color: var(--portal-text);
}

/*
 * Phones: keep the share row on one line. With the phone's own share sheet available,
 * show WhatsApp + Share + Copy link (the sheet lists Facebook, X and the rest). Without
 * it, drop the "Share" word so all six icons fit.
 */
@media (max-width: 767px) {
	.portal-share__label,
	.portal-share--native .portal-share__btn--facebook,
	.portal-share--native .portal-share__btn--x,
	.portal-share--native .portal-share__btn--telegram,
	.portal-share--native .portal-share__btn--linkedin {
		display: none;
	}

	.portal-share {
		gap: 0.4rem;
	}
}

@media (min-width: 768px) {
	.portal-related__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ================================================================ Writer profile (Task 9) */

.portal-author-card__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	color: var(--portal-muted);
	font-size: 0.8125rem;
}

.portal-profile {
	display: grid;
	gap: 2rem;
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

/* Phones: photo on top, everything centred. Tablets and up: photo beside the name. */
.portal-profile__header {
	display: grid;
	justify-items: center;
	gap: 1rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--portal-border);
	text-align: center;
}

.portal-profile__photo img {
	display: block;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover; /* uploaded photos are not always square */
}

.portal-profile__info {
	display: grid;
	gap: 0.5rem;
	justify-items: inherit;
	min-width: 0;
}

.portal-profile__desk {
	margin: 0;
	color: var(--portal-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.portal-profile__name {
	margin: 0;
	color: var(--portal-text);
	font-family: var(--portal-serif);
	font-size: clamp(1.75rem, 6vw, 2.5rem);
	line-height: 1.15;
}

.portal-profile__bio {
	max-width: 40rem;
	margin: 0;
	color: var(--portal-body);
	line-height: 1.6;
}

.portal-profile__stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: inherit;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	color: var(--portal-muted);
	font-size: 0.9375rem;
	list-style: none;
}

.portal-profile__stats strong {
	color: var(--portal-text);
}

.portal-profile__website {
	color: var(--portal-accent);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.portal-profile__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1rem;
}

.portal-profile .pagination {
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.portal-profile__header {
		grid-template-columns: auto minmax(0, 1fr);
		justify-items: start;
		align-items: center;
		gap: 1.75rem;
		text-align: left;
	}

	.portal-profile__stats {
		justify-content: flex-start;
	}

	.portal-profile__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.portal-profile__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ================================================================ My Account (Task 10) */

.portal-photo-box {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1rem 1.25rem;
	margin-bottom: 2rem;
	padding: 1.25rem;
	border: 1px solid var(--portal-border);
	border-radius: 6px;
}

.portal-photo-box > img {
	flex: none;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.portal-photo-box__body {
	display: grid;
	flex: 1 1 14rem;
	gap: 0.5rem;
	min-width: 0;
}

.portal-photo-box h2 {
	margin: 0;
	font-family: var(--portal-serif);
	font-size: 1.125rem;
}

.portal-photo-box form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.portal-photo-box input[type="file"] {
	max-width: 100%;
	font-size: 0.875rem;
}

.portal-photo-box__help {
	margin: 0;
	color: var(--portal-muted);
	font-size: 0.8125rem;
}

.portal-photo-box__remove {
	border: 1px solid var(--portal-border);
	background: #fff;
	color: var(--portal-muted);
	font-size: 0.8125rem;
}

.portal-photo-box__msg {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.portal-photo-box__msg.is-ok {
	color: #0f5a2a;
}

.portal-photo-box__msg.is-error {
	color: var(--portal-accent);
}

/* "Sign in" / "My account" in the header menu stands out a little. */
.portal-account-link > a {
	font-weight: 700;
}

/*
 * WP User Frontend's account page nests four boxes, each with its own side padding,
 * which left the Edit Profile form about 150px wide on a phone. Trim it on small screens.
 */
@media (max-width: 767px) {
	.wpuf-account-container,
	.wpuf-account-content {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.wpuf-edit-profile-container > div {
		padding-right: 1rem !important;
		padding-left: 1rem !important;
	}

	.wpuf-edit-profile-form .wpuf-form-input {
		width: 100%;
	}

	.wpuf-edit-profile-form .wpuf-form-group:last-child,
	.wpuf-edit-profile-form [class*="submit"] {
		flex-wrap: wrap;
	}
}

/* ================================================================ Write a story (Task 11) */

.portal-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.25rem;
	border: 1px solid var(--portal-accent);
	border-radius: 4px;
	background: var(--portal-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.portal-button:hover,
.portal-button:focus-visible {
	filter: brightness(0.92);
	color: #fff;
}

.portal-button--ghost {
	background: #fff;
	color: var(--portal-accent);
}

.portal-button--ghost:hover,
.portal-button--ghost:focus-visible {
	color: var(--portal-accent);
}

.portal-write-box {
	display: grid;
	gap: 0.85rem;
	max-width: 40rem;
	padding: 1.5rem;
	border: 1px solid var(--portal-border);
	border-top: 4px solid var(--portal-accent);
	border-radius: 6px;
}

.portal-write-box h2 {
	margin: 0;
	font-family: var(--portal-serif);
	font-size: 1.5rem;
}

.portal-write-box p {
	margin: 0;
}

.portal-write-box__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.portal-write-box__status {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	background: #f1faf3;
	color: #0f3d20;
	font-weight: 600;
}

.portal-write-box__error {
	color: var(--portal-accent);
	font-weight: 600;
}

.portal-writer-form {
	display: grid;
	gap: 1rem;
}

.portal-writer-form label {
	display: grid;
	gap: 0.35rem;
	font-weight: 600;
}

.portal-writer-form textarea,
.portal-writer-form input[type="url"] {
	width: 100%;
	font-weight: 400;
}

.portal-writer-form .portal-writer-form__agree {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
}

.portal-writer-form__agree input {
	flex: none;
	margin-top: 0.2rem;
}

.portal-writer-form .portal-button {
	justify-self: start;
}

.portal-write-intro {
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--portal-accent);
	background: var(--global-palette8, #f3f4f6);
}

/* "Fill the form from a document" box above the story form. */
.portal-import {
	margin: 1.5rem 0;
	border: 1px dashed var(--portal-accent);
	border-radius: 6px;
	background: #fffafa;
}

.portal-import summary {
	padding: 0.85rem 1rem;
	color: var(--portal-text);
	font-weight: 700;
	cursor: pointer;
}

.portal-import__body {
	display: grid;
	/* minmax(0, 1fr): without it the column grows to the textarea's width and spills off phones. */
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0 1rem 1rem;
}

.portal-import__steps {
	margin: 0;
	padding-left: 1.25rem;
}

.portal-import__steps li + li {
	margin-top: 0.6rem;
}

.portal-import__file input {
	width: 100%;
}

.portal-import__steps a {
	color: var(--portal-accent);
	font-weight: 700;
}

.portal-import__file {
	display: grid;
	gap: 0.35rem;
}

.portal-import__file input {
	max-width: 100%;
}

.portal-import__or,
.portal-import__actions {
	margin: 0;
}

.portal-import textarea {
	box-sizing: border-box;
	width: 100%;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.875rem;
}

.portal-import__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.portal-import__status p {
	margin: 0;
	font-weight: 600;
}

.portal-import__status .is-ok {
	color: #0f5a2a;
}

.portal-import__status .is-error {
	color: var(--portal-accent);
}

.portal-import__status ul {
	margin: 0.35rem 0 0;
	padding-left: 1.25rem;
	color: #6b4100;
	font-size: 0.875rem;
}

.portal-import__note {
	margin: 0;
	color: var(--portal-muted);
	font-size: 0.8125rem;
}

/* ================================================================ Engagement (Task 12) */

.portal-engage {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	width: 100%;
}

.portal-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.5rem; /* easy to tap */
	padding: 0 0.9rem;
	border: 1px solid var(--portal-border);
	border-radius: 999px;
	background: #fff;
	color: var(--portal-text);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.portal-toggle:hover,
.portal-toggle:focus-visible {
	border-color: var(--portal-accent);
	background: #fff;
	color: var(--portal-accent);
}

.portal-toggle[aria-pressed="true"] {
	border-color: var(--portal-accent);
	background: var(--portal-accent);
	color: #fff;
}

.portal-toggle[aria-pressed="true"] .portal-toggle__icon {
	fill: currentColor;
}

/* A "+" on a pressed "Following" button would read as "follow more": hide it. */
.portal-toggle--follow-author[aria-pressed="true"] .portal-toggle__icon,
.portal-toggle--follow-tag[aria-pressed="true"] .portal-toggle__icon {
	display: none;
}

.portal-toggle:disabled {
	opacity: 0.7;
	cursor: progress;
}

.portal-toggle__count {
	font-weight: 400;
}

.portal-author-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0.25rem 0 0;
}

.portal-profile__info > .portal-toggle {
	justify-self: inherit;
}

/* Tag pages: Follow box above the stories. */
.portal-tag-follow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--portal-border);
	border-radius: 6px;
}

.portal-tag-follow__text {
	color: var(--portal-muted);
	font-size: 0.9375rem;
}

/* My Account: Saved and Following tabs. */
.portal-account-list {
	display: grid;
	gap: 1rem;
}

.portal-account-list h2,
.portal-account-list h3 {
	margin: 0;
	font-family: var(--portal-serif);
}

.portal-account-list__item {
	display: grid;
	gap: 0.5rem;
	justify-items: start;
	padding-bottom: 0.75rem;
}

.portal-account-list__item .portal-card {
	justify-self: stretch;
}

.portal-follow-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.portal-follow-chips li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.35rem 0.35rem 0.75rem;
	border: 1px solid var(--portal-border);
	border-radius: 999px;
}

.portal-follow-chips a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--portal-text);
	font-weight: 600;
	text-decoration: none;
}

.portal-follow-chips img {
	border-radius: 50%;
}

.portal-follow-chips .portal-toggle {
	min-height: 2rem;
	font-size: 0.8125rem;
}

.portal-comment-report {
	margin: 0.25rem 0 0;
}

.portal-report-btn--comment {
	min-width: 0;
	height: 2rem;
	padding: 0 0.6rem;
	font-size: 0.75rem;
}

/* ---------------------------------------------------------------- Series (Task 17A) */

.portal-series-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
}

.portal-series-label a {
	color: var(--portal-text);
	font-weight: 600;
	text-decoration: none;
}

.portal-series-label a:hover,
.portal-series-label a:focus-visible {
	text-decoration: underline;
}

.portal-series-label__kicker {
	color: var(--portal-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.portal-series-label__part {
	color: var(--portal-muted);
}

.portal-series-nav {
	margin: 2rem 0 1rem;
	padding: 1rem;
	border: 1px solid var(--portal-border);
	border-radius: 8px;
}

.portal-series-nav__where {
	margin: 0 0 0.75rem;
	color: var(--portal-muted);
	font-size: 0.9375rem;
}

.portal-series-nav__links {
	display: grid;
	gap: 0.75rem;
}

.portal-series-nav__link {
	display: grid;
	gap: 0.25rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--portal-border);
	border-radius: 6px;
	color: var(--portal-text);
	text-decoration: none;
}

.portal-series-nav__link--next {
	border-color: var(--portal-accent);
	text-align: right;
}

.portal-series-nav__link:hover,
.portal-series-nav__link:focus-visible {
	background: rgba(0, 0, 0, 0.03);
}

.portal-series-nav__dir {
	color: var(--portal-accent);
	font-size: 0.875rem;
	font-weight: 700;
}

.portal-series-nav__title {
	font-family: var(--portal-serif);
	font-size: 1.0625rem;
	line-height: 1.3;
}

.portal-series-nav__end {
	margin: 0;
	color: var(--portal-muted);
}

@media (min-width: 640px) {
	.portal-series-nav__links {
		grid-template-columns: 1fr 1fr;
	}

	.portal-series-nav__link--next,
	.portal-series-nav__end {
		grid-column: 2;
	}
}

.portal-series-page__header {
	display: grid;
	gap: 1.25rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--portal-border);
}

.portal-series-page__cover {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	object-fit: cover;
}

.portal-series-page__info {
	display: grid;
	gap: 0.5rem;
	align-content: start;
	min-width: 0;
}

.portal-series-page__info > p {
	margin: 0;
}

.portal-series-page__kicker {
	color: var(--portal-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.portal-series-page__name {
	margin: 0;
	color: var(--portal-text);
	font-family: var(--portal-serif);
	font-size: clamp(1.75rem, 6vw, 2.5rem);
	line-height: 1.15;
}

.portal-series-page__by {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	color: var(--portal-muted);
}

.portal-series-page__by img {
	border-radius: 50%;
}

.portal-series-page__description {
	color: var(--portal-body);
}

@media (min-width: 768px) {
	.portal-series-page__header {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		align-items: start;
	}
}

.portal-series-contents {
	margin: 0;
	padding: 0;
	list-style: none;
}

.portal-series-contents__item {
	display: grid;
	gap: 0.125rem;
	padding: 0.875rem 0;
	border-bottom: 1px solid var(--portal-border);
}

.portal-series-contents__number {
	color: var(--portal-accent);
	font-size: 0.8125rem;
	font-weight: 700;
}

.portal-series-contents__title {
	color: var(--portal-text);
	font-family: var(--portal-serif);
	font-size: 1.125rem;
	line-height: 1.3;
	text-decoration: none;
}

.portal-series-contents__title:hover,
.portal-series-contents__title:focus-visible {
	text-decoration: underline;
}

.portal-series-contents__meta {
	color: var(--portal-muted);
	font-size: 0.875rem;
}

/* Write page: the "New series name" box only appears for "+ Start a new series…". */
.portal-series-field__new {
	display: none;
	margin: 0.5rem 0;
}

.portal-series-field:has(option[value="new"]:checked) .portal-series-field__new {
	display: block;
}

.portal-series-field__new label {
	display: block;
	font-size: 0.875rem;
}

/* My Account → My series */
.portal-notice {
	padding: 0.75rem 1rem;
	border-left: 4px solid #15803d;
	background: #f0fdf4;
}

.portal-notice--error {
	border-left-color: var(--portal-accent);
	background: #fef2f2;
}

.portal-my-series__item {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--portal-border);
	border-radius: 8px;
}

.portal-my-series__item summary {
	cursor: pointer;
}

.portal-my-series__count,
.portal-my-series__status,
.portal-my-series__empty {
	color: var(--portal-muted);
	font-size: 0.875rem;
}

.portal-my-series label {
	display: block;
}

.portal-my-series input[type="text"],
.portal-my-series textarea {
	display: block;
	width: 100%;
}

.portal-my-series__parts {
	display: grid;
	gap: 0.5rem;
	margin: 0.5rem 0;
	padding: 0;
	list-style: none;
}

.portal-my-series__parts input[type="number"] {
	width: 4.5rem;
}

.portal-my-series__cover {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0.75rem 0;
}

.portal-my-series__cover img {
	border-radius: 4px;
	object-fit: cover;
}

.portal-link-button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--portal-muted);
	font-size: 0.875rem;
	text-decoration: underline;
	cursor: pointer;
}

.portal-link-button--danger {
	color: var(--portal-accent);
}

/* ---------------------------------------------------------------- Reading comfort (Task 17B) */

/* Story text on every article: larger, taller lines (Hindi matras need the room). */
.single-entry .entry-content {
	font-family: var(--portal-read-font);
	font-size: 1.125rem;
	line-height: 1.75;
}

.single-entry .entry-content :is(p, li) {
	overflow-wrap: break-word;
}

@media (min-width: 768px) {
	.single-entry .entry-content {
		font-size: 1.1875rem;
	}
}

/* Reading mode button, next to "x min read". */
.portal-reading-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--portal-border);
	border-radius: 999px;
	background: transparent;
	color: var(--portal-text);
	font-size: 0.875rem;
	line-height: 1.4;
	cursor: pointer;
}

.portal-reading-toggle:hover,
.portal-reading-toggle:focus-visible {
	border-color: var(--portal-accent);
	color: var(--portal-accent);
	background: transparent; /* beat Kadence's own button hover colours */
	box-shadow: none;
}

.portal-reading-toggle[hidden] {
	display: none;
}

/* Progress bar: drawn over the page (fixed), so it never pushes anything (no layout shift). */
.portal-progress {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	left: 0;
	z-index: 1001;
	height: 3px;
	pointer-events: none;
}

.portal-progress__bar {
	width: 100%;
	height: 100%;
	background: var(--portal-accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

/* Toolbar: only in reading mode. */
.portal-reading-bar {
	display: none;
}

html.portal-reading .portal-reading-bar {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 3px);
	right: 0;
	left: 0;
	z-index: 1000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 16px;
	border-bottom: 1px solid var(--global-palette7);
	background: var(--global-palette9);
	color: var(--global-palette4);
	font-family: var(--portal-read-font);
	font-size: 0.875rem;
}

.portal-reading-bar__left {
	margin-right: auto;
	color: var(--global-palette5);
	white-space: nowrap;
}

.portal-reading-bar__group {
	display: inline-flex;
	gap: 0.25rem;
}

.portal-reading-bar__btn {
	min-width: 2.5rem;
	min-height: 2.25rem;
	padding: 0.25rem 0.625rem;
	border: 1px solid var(--global-palette7);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.portal-reading-bar__btn:hover,
.portal-reading-bar__btn:focus-visible,
.portal-reading-bar__btn[aria-pressed="true"] {
	border-color: var(--global-palette1);
	color: var(--global-palette1);
	background: transparent; /* beat Kadence's own button hover colours */
	box-shadow: none;
}

.portal-reading-bar__big {
	font-size: 1.125rem;
}

/* Phones: colour buttons become small swatches (the words stay for screen readers). */
@media (max-width: 479px) {
	.portal-reading-bar__theme {
		position: relative;
		min-width: 2.25rem;
		font-size: 0;
	}

	.portal-reading-bar__theme::before {
		content: "";
		position: absolute;
		inset: 0.45rem;
		border: 1px solid #9ca3af;
		border-radius: 50%;
	}

	.portal-reading-bar__theme--light::before { background: #fff; }
	.portal-reading-bar__theme--sepia::before { background: #f6efe1; }
	.portal-reading-bar__theme--dark::before { background: #14161a; }
}

/* Reading mode: only the headline, the story and the series links stay. */
html.portal-reading body {
	padding-top: 3.5rem;
	background: var(--global-palette9);
}


html.portal-reading :is(#masthead, .portal-breaking, #colophon, .portal-article-actions, .portal-author-card, #comments, .portal-comments-panel, .portal-byline-follow, .portal-related, .entry-footer, #kt-scroll-up, .post-navigation-wrap, .post-navigation) {
	display: none !important;
}

html.portal-reading .content-container {
	max-width: calc(42rem + 32px); /* about 65 characters a line */
}

html.portal-reading .single-entry {
	box-shadow: none;
	background: transparent;
}

html.portal-reading .single-entry .entry-content {
	font-size: calc(1.125rem * var(--portal-read-scale));
}

@media (min-width: 768px) {
	html.portal-reading .single-entry .entry-content {
		font-size: calc(1.1875rem * var(--portal-read-scale));
	}
}

/* Colours: reading mode swaps Kadence's palette, and everything built on it follows. */
html.portal-reading[data-portal-theme="sepia"] {
	--global-palette1: #9a3412;
	--global-palette2: #7c2d12;
	--global-palette3: #2f261b;
	--global-palette4: #3d3326;
	--global-palette5: #6b5d4b;
	--global-palette6: #857560;
	--global-palette7: #e4d8c1;
	--global-palette8: #efe5d2;
	--global-palette9: #f6efe1;
	color-scheme: light;
}

html.portal-reading[data-portal-theme="dark"] {
	--global-palette1: #f87171;
	--global-palette2: #fca5a5;
	--global-palette3: #f3f4f6;
	--global-palette4: #e5e7eb;
	--global-palette5: #a1a7b3;
	--global-palette6: #8b919c;
	--global-palette7: #2d3138;
	--global-palette8: #1b1e23;
	--global-palette9: #14161a;
	color-scheme: dark;
}

html.portal-reading[data-portal-theme="dark"] .single-entry img {
	filter: brightness(0.9); /* photos less glaring at night */
}

@media print {
	.portal-progress,
	.portal-reading-bar,
	.portal-reading-toggle {
		display: none !important;
	}
}

/* Kadence colours every hovered/focused button; our reading buttons stay plain. */
.portal-reading-toggle:is(:hover, :focus, :active),
.portal-reading-bar__btn:is(:hover, :focus, :active) {
	background: transparent;
	box-shadow: none;
}

/* Small phones: the toolbar stays on one line (✕ instead of "Exit", tighter spacing). */
@media (max-width: 479px) {
	html.portal-reading .portal-reading-bar {
		flex-wrap: nowrap;
		gap: 0.375rem;
		padding: 0.5rem 12px;
	}

	.portal-reading-bar__btn {
		min-width: 2.25rem;
		padding: 0.25rem 0.5rem;
	}

	.portal-reading-bar__word {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ---------------------------------------------------------------- Article: writer card, Follow, comments in place */

/* "Follow" next to "By <writer>" under the headline. */
.portal-byline-follow {
	display: inline-block;
	margin-left: 0.5rem;
	vertical-align: middle;
}

.portal-byline-follow .portal-toggle {
	padding: 0.125rem 0.625rem;
	font-size: 0.8125rem;
}

/* The writer card now sits inside the story box, above Like / Save / Comments. */
.single-entry .portal-author-card {
	margin: 1.5rem 0 0;
}

/* Comments open right under the Comments button. */
.portal-comments-panel[hidden] {
	display: none;
}

.portal-comments-panel {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--portal-border);
}

/* Kadence draws comments as their own box; inside the story box that would be a box in a box. */
.single-entry .portal-comments-panel #comments {
	max-width: none;
	margin: 0;
	padding: 0;
	box-shadow: none;
	background: transparent;
}

.portal-toggle--comments[aria-expanded="true"] {
	border-color: var(--portal-accent);
	color: var(--portal-accent);
}

/* ---------------------------------------------------------------- Community page (Task 17C) */

.portal-community {
	padding-top: 1.5rem; /* same spacing as the home and profile pages */
	padding-bottom: 3rem;
}

.portal-community__header {
	display: grid;
	gap: 0.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--portal-border);
}

.portal-community__title {
	margin: 0;
	color: var(--portal-text);
	font-family: var(--portal-serif);
	font-size: clamp(1.75rem, 6vw, 2.5rem);
	line-height: 1.15;
}

.portal-community__intro {
	max-width: 42rem;
	color: var(--portal-body);
}

.portal-community__intro > :last-child,
.portal-community__header > p {
	margin-bottom: 0;
}

.portal-community__section {
	margin-top: 2rem;
}

/* Trending writers: a row of people (2 across on phones, 3 on tablets, 6 on computers). */
.portal-writers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.portal-writers__item {
	display: grid;
	justify-items: center;
	gap: 0.375rem;
	padding: 1rem 0.5rem;
	border: 1px solid var(--portal-border);
	border-radius: 8px;
	text-align: center;
}

.portal-writers__link {
	display: grid;
	justify-items: center;
	gap: 0.375rem;
	color: var(--portal-text);
	text-decoration: none;
}

.portal-writers__link img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.portal-writers__name {
	font-family: var(--portal-serif);
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.portal-writers__link:hover .portal-writers__name,
.portal-writers__link:focus-visible .portal-writers__name {
	text-decoration: underline;
}

.portal-writers__meta {
	color: var(--portal-muted);
	font-size: 0.8125rem;
}

/* New series: cover cards. */
.portal-series-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.portal-series-card {
	display: grid;
	gap: 0.25rem;
	align-content: start;
}

.portal-series-card__link {
	display: grid;
	gap: 0.25rem;
	color: var(--portal-text);
	text-decoration: none;
}

.portal-series-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	background: var(--global-palette8, #f3f4f6);
}

.portal-series-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.portal-series-card__kicker {
	margin-top: 0.25rem;
	color: var(--portal-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.portal-series-card__name {
	font-family: var(--portal-serif);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.portal-series-card__link:hover .portal-series-card__name,
.portal-series-card__link:focus-visible .portal-series-card__name {
	text-decoration: underline;
}

.portal-series-card__meta {
	color: var(--portal-muted);
	font-size: 0.8125rem;
}

.portal-community__latest {
	display: grid;
	gap: 1rem;
}

@media (min-width: 768px) {
	.portal-writers {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.portal-series-cards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.portal-community__latest {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 2rem;
	}
}

@media (min-width: 1024px) {
	.portal-writers {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------- Reader news tips (Task 17D) */

.portal-tip-credit {
	margin: 1.5rem 0 0;
	color: var(--portal-muted);
	font-size: 0.9375rem;
	font-style: italic;
}

.portal-tip-form {
	display: grid;
	gap: 0.25rem;
	max-width: 42rem;
}

.portal-tip-form label,
.portal-tip-form legend {
	display: block;
	font-weight: 600;
}

.portal-tip-form :is(input[type="text"], input[type="url"], input[type="tel"], input[type="date"], textarea) {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
}

.portal-tip-form fieldset {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.portal-tip-form .portal-tip-form__choice {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0.375rem 0;
	font-weight: 400;
}

.portal-tip-form__choice input {
	margin-top: 0.3rem;
}

.portal-tip-form__help {
	display: block;
	margin-top: 0.25rem;
	color: var(--portal-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.portal-tip-form__intro {
	color: var(--portal-body);
}

/* The spam trap is invisible to people (not display:none, which some bots skip). */
.portal-tip-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (min-width: 640px) {
	.portal-tip-form__row {
		display: grid;
		grid-template-columns: 2fr 1fr;
		gap: 1rem;
	}
}

.portal-my-tips__list {
	display: grid;
	gap: 0.75rem;
}

.portal-my-tips__item {
	display: grid;
	gap: 0.25rem;
	justify-items: start;
	padding: 0.75rem 1rem;
	border: 1px solid var(--portal-border);
	border-radius: 8px;
}

.portal-my-tips__meta,
.portal-my-tips__reason {
	color: var(--portal-muted);
	font-size: 0.875rem;
}

.portal-tip-state {
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	font-size: 0.75rem;
	font-weight: 700;
}

.portal-tip-state--checking {
	background: #fef3c7;
	color: #92400e;
}

.portal-tip-state--published {
	background: #dcfce7;
	color: #166534;
}

.portal-tip-state--declined {
	background: #fee2e2;
	color: #991b1b;
}
