/* ── AIASG — Frontend table styles ──────────────────────────────────────── */

.aiasg-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.95em;
	overflow-x: auto;
	display: table;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	overflow: hidden; /* clip rounded corners */
}

/* Thead: site primary colour with white text */
.aiasg-table thead tr {
	background-color: var(--wp--preset--color--primary,
	                  var(--color-primary,
	                  var(--primary-color,
	                  #1e73be)));
	color: #ffffff;
	text-align: left;
}

.aiasg-table thead th {
	padding: 11px 16px;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.25);
	white-space: nowrap;
}

/* Tbody rows */
.aiasg-table tbody tr {
	border-bottom: 1px solid #d8d8d8;
	transition: background-color 0.15s ease;
}

.aiasg-table tbody tr:nth-child(even) {
	background-color: #f6f8fa;
}

.aiasg-table tbody tr:hover {
	background-color: #eef4fb;
}

.aiasg-table tbody td {
	padding: 10px 16px;
	border: 1px solid #d8d8d8;
	vertical-align: top;
	line-height: 1.5;
}

/* Responsive wrapper — prevent horizontal overflow on small screens */
@media (max-width: 768px) {
	.aiasg-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* ── AIASG — FAQ accordion (details/summary) ─────────────────────────────── */

/* ── FAQ section ─────────────────────────────────────────────────────────── */

.aiasg-faq {
	margin: 2.5em 0;
}

.aiasg-faq > h2 {
	display: flex;
	align-items: center;
	gap: 0.3em;
	margin: 0 0 1em;
	font-size: 1.9em;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.2;
}

/* Red "?" — the emoji in the heading keeps its colour naturally */
.aiasg-faq > h2 .aiasg-faq-emoji {
	color: #cc0000;
}

/* ── Individual FAQ accordion items ─────────────────────────────────────── */

.aiasg-faq-item {
	background: #ffffff;
	border: 1.5px solid #dde3ea;
	border-radius: 8px;
	margin-bottom: 0.6em;
	overflow: hidden;
	transition: box-shadow 0.15s ease;
}

.aiasg-faq-item:last-child {
	margin-bottom: 0;
}

.aiasg-faq-item:hover {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Remove native browser triangle */
.aiasg-faq-item summary {
	list-style: none;
}
.aiasg-faq-item summary::-webkit-details-marker {
	display: none;
}

/* Question row */
.aiasg-faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	padding: 0.9em 1.1em;
	cursor: pointer;
	user-select: none;
	background: #ffffff;
	margin: 0 !important;
	transition: background-color 0.15s ease;
}

/* Open state: light blue header */
.aiasg-faq-item[open] > .aiasg-faq-question {
	background-color: #e8f2fb;
}

.aiasg-faq-question strong {
	color: #1a1a1a;
	font-size: 0.95em;
	font-weight: 700;
	flex: 1;
	line-height: 1.4;
}

/* +/− icon — plain text, red, no circle */
.aiasg-faq-icon {
	font-style: normal;
	font-size: 1.3em;
	font-weight: 300;
	line-height: 1;
	flex-shrink: 0;
	color: #cc0000;
	transition: none;
	width: 20px;
	text-align: center;
}

.aiasg-faq-icon::before {
	content: '+';
}

.aiasg-faq-item[open] .aiasg-faq-icon::before {
	content: '-';
}

/* Answer body */
.aiasg-faq-answer {
	padding: 1em 1.1em 1.1em;
	border-top: 1px solid #dde3ea;
	background: #ffffff;
}

.aiasg-faq-answer p {
	margin: 0 !important;
	color: #333;
	line-height: 1.7;
	font-size: 0.95em;
}

/* ── AIASG — Similar articles list ──────────────────────────────────────── */

.similar-articles {
	margin: 2em 0;
}

.similar-articles > h2 {
	margin-bottom: 0.75em;
}

.aiasg-related-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.aiasg-related-list li {
	padding: 0.45em 0 0.45em 1.2em;
	border-bottom: 1px solid #eee;
	position: relative;
}

.aiasg-related-list li:last-child {
	border-bottom: none;
}

.aiasg-related-list li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--primary,
	           var(--color-primary,
	           var(--primary-color,
	           #1e73be)));
	font-size: 0.9em;
}

.aiasg-related-list a {
	text-decoration: none;
	color: #1a1a1a;
	font-size: 0.95em;
	transition: color 0.15s ease;
}

.aiasg-related-list a:hover {
	color: var(--wp--preset--color--primary,
	           var(--color-primary,
	           var(--primary-color,
	           #1e73be)));
	text-decoration: underline;
}

/* ── AIASG — Article intro ────────────────────────────────────────────────── */

.article-intro {
	margin-bottom: 2em;
}

