/*
Theme Name: CGPA
Theme URI: https://www.cgpa.app/
Description: Lightweight theme for cgpa.app: CGPA, SGPA and GPA calculators and student guides.
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: cgpa
*/

/*
 * The calculators were built on Blogger inside these base styles, so the global element rules and the #cgpa-entry
 * rules below copy the old theme's values and selector weights exactly. Theme parts use only "cgpa-" classes, which
 * calculator markup does not use.
 */

/*
 * Inter as the Blogger site loaded it from Google Fonts: version 11, one variable file per subset, declared for the
 * weights 400, 500 and 700 only (other weights render as the nearest of these, as they did there).
 */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-greek.woff2") format("woff2");
	unicode-range: U+0370-03FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/inter-greek.woff2") format("woff2");
	unicode-range: U+0370-03FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/inter-greek.woff2") format("woff2");
	unicode-range: U+0370-03FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--cgpa-text: #202124;
	--cgpa-muted: #5f6368;
	--cgpa-link: #1a73e8;
	--cgpa-border: #dadce0;
	--cgpa-soft: #f8f9fa;
	--cgpa-width: 1200px;
	--cgpa-radius: 10px;
}

/* Base elements: the old theme's reset and element rules, unchanged */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
	content: "";
	content: none;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	margin: 0;
	padding: 0;
	background-color: #fff;
	color: var(--cgpa-text);
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-tap-highlight-color: transparent;
}

strong,
b {
	font-weight: bold;
}

cite,
em,
i {
	font-style: italic;
}

a {
	color: var(--cgpa-link);
}

a:link {
	text-decoration: none;
	outline: none;
}

img {
	width: auto;
	height: auto;
}

abbr,
acronym {
	border-bottom: 1px dotted;
	cursor: help;
}

sup,
sub {
	vertical-align: baseline;
	position: relative;
	top: -0.4rem;
	font-size: 86%;
}

sub {
	top: 0.4rem;
}

small {
	font-size: 86%;
}

kbd {
	display: inline-block;
	padding: 1px 5px;
	border-radius: 4px;
	background-color: #424242;
	color: #fff;
	font-size: 80%;
}

mark {
	background-color: #ffce00;
	color: black;
}

p,
blockquote,
pre,
table,
figure,
hr,
form,
ol,
ul,
dl {
	margin: 0 0 20px;
}

hr {
	border: 1px dashed;
	border-color: var(--cgpa-border);
}

svg {
	width: 24px;
	height: 24px;
}

h1 {
	font-size: 26px;
}

h2 {
	font-size: 24px;
}

h3 {
	font-size: 20px;
}

h4 {
	font-size: 18px;
}

h5 {
	font-size: 16px;
}

h6 {
	font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	margin: 0 0 15px;
}

ol,
ul,
dl {
	margin: 15px 0 15px 34px;
}

li {
	margin: 8px 0;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 0 0.5rem 2rem;
}

code {
	font-family: monospace, monospace;
}

code:not(pre code) {
	padding: 0 8px;
	border-radius: 4px;
	background-color: #eee;
	color: #202124;
	font-size: 14px;
	word-break: break-word;
}

/* Article and page content (the old theme's #post_middle) */

#cgpa-entry {
	margin-bottom: 30px;
	font-size: 16px;
	text-align: left;
	overflow-wrap: break-word; /* long web addresses in references would widen the page on phones */
}

#cgpa-entry a:not(.gila_material_button, .manual-related-post a):hover {
	text-decoration: underline;
}

#cgpa-entry img {
	width: 100%;
	height: 100%;
}

#cgpa-entry h1,
#cgpa-entry h2,
#cgpa-entry h3,
#cgpa-entry h4,
#cgpa-entry h5,
#cgpa-entry h6 {
	margin: 28px 0 8px;
	line-height: 1.4;
}

#cgpa-entry h1:target::before,
#cgpa-entry h2:target::before,
#cgpa-entry h3:target::before,
#cgpa-entry h4:target::before,
#cgpa-entry h5:target::before,
#cgpa-entry h6:target::before {
	content: "";
	display: block;
	height: 75px;
	margin: -75px 0 0;
}

#cgpa-entry blockquote {
	position: relative;
	margin: 15px 0;
	padding: 15px 15px 15px 55px;
	border-radius: 4px;
	background-color: #5f63681f;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 30%), 0 1px 3px 1px rgb(0 0 0 / 15%);
}

#cgpa-entry blockquote::before {
	content: "";
	display: block;
	position: absolute;
	top: 10px;
	left: 10px;
	width: 35px;
	height: 35px;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z' fill='%2380868b'/%3E%3C/svg%3E") no-repeat center;
	opacity: 0.5;
}

#cgpa-entry blockquote span,
#cgpa-entry blockquote small,
#cgpa-entry blockquote footer {
	display: block;
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.4;
	opacity: 0.8;
}

/*
 * Content components of the old theme, under the class names the articles use: table of contents, alerts, tables,
 * collapsible panels and formula boxes. functions.php fills the table of contents; assets/js/main.js opens the panels.
 */

.toc_wrap {
	margin: 2rem 0;
	border: 1px solid var(--cgpa-border);
	border-radius: 8px;
}

.toc_wrap .toc_title {
	padding: 15px;
	border-bottom: 1px solid;
	border-color: var(--cgpa-border);
	font-size: 16px;
	font-weight: 700;
}

.toc_wrap #toc_content ol {
	margin: 0;
	padding: 15px;
	counter-reset: toc-count;
}

.toc_wrap #toc_content ol li {
	margin: 8px 0;
	padding: 0;
	list-style: none;
}

.toc_wrap #toc_content ol li a {
	display: inline-flex;
	color: var(--cgpa-text);
	font-size: 16px;
}

.toc_wrap #toc_content ol li a:hover {
	text-decoration: underline;
}

#toc_content li > a::before {
	content: counters(toc-count, ".") ". ";
	counter-increment: toc-count;
	display: inline-block;
	margin-right: 7px;
	color: var(--cgpa-muted);
}

.toc_wrap #toc_content li ol {
	margin: 5px 0 5px 5px;
	padding: 0 0 0 15px;
}

.gila_material_alert {
	position: relative;
	margin: 15px 0;
	padding: 15px;
	border-radius: 4px;
}

.gila_material_alert:not(.alert_outline) {
	background-color: rgba(0, 0, 0, 0.12);
}

.gila_material_alert.alert_outline {
	border: 1px solid var(--cgpa-border);
}

.gila_material_alert.alert_info,
.gila_material_alert.alert_warning,
.gila_material_alert.alert_success,
.gila_material_alert.alert_error {
	padding: 15px 15px 15px 53px;
	color: #fff;
}

.gila_material_alert.alert_info:not(.alert_outline) {
	background-color: #1976d2;
}

.gila_material_alert.alert_warning:not(.alert_outline) {
	background-color: #fbc02d;
	color: #202124;
}

.gila_material_alert.alert_success:not(.alert_outline) {
	background-color: #00701a;
}

.gila_material_alert.alert_error:not(.alert_outline) {
	background-color: #d32f2f;
}

.gila_material_alert.alert_info::before,
.gila_material_alert.alert_warning::before,
.gila_material_alert.alert_success::before,
.gila_material_alert.alert_error::before {
	content: "";
	position: absolute;
	top: 15px;
	left: 15px;
	width: 24px;
	height: 24px;
}

.gila_material_alert.alert_info::before {
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.gila_material_alert.alert_warning::before {
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16' fill='%23202124'/%3E%3C/svg%3E");
}

.gila_material_alert.alert_success::before {
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.gila_material_alert.alert_error::before {
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.gila_material_alert.alert_info.alert_outline {
	border-color: #1976d2;
	color: #1976d2;
}

.gila_material_alert.alert_warning.alert_outline {
	border-color: #fb8c00;
	color: #fb8c00;
}

.gila_material_alert.alert_success.alert_outline {
	border-color: #00701a;
	color: #00701a;
}

.gila_material_alert.alert_error.alert_outline {
	border-color: #d32f2f;
	color: #d32f2f;
}

.gila_material_alert.alert_info.alert_outline::before {
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z' fill='%231976d2'/%3E%3C/svg%3E");
}

.gila_material_alert.alert_warning.alert_outline::before {
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16' fill='%23fb8c00'/%3E%3C/svg%3E");
}

.gila_material_alert.alert_success.alert_outline::before {
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z' fill='%2300701a'/%3E%3C/svg%3E");
}

.gila_material_alert.alert_error.alert_outline::before {
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z' fill='%23d32f2f'/%3E%3C/svg%3E");
}

.gila_material_alert .alert_message strong {
	display: block;
	margin-bottom: 8px;
}

.gila_material_alert .alert_message a {
	color: inherit;
	text-decoration: underline;
}

.gila_material_table {
	display: inline-block;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	border-radius: 4px;
	box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
}

.gila_material_table table {
	display: table;
	min-width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 16px;
	white-space: nowrap;
}

.gila_material_table .table_primary thead {
	background-color: #4281d9;
	color: #fff;
}

.gila_material_table table thead th {
	border-bottom: 1px solid;
	border-color: var(--cgpa-border);
	font-weight: 700;
}

.gila_material_table table th,
.gila_material_table table td {
	padding: 15px;
	font-weight: 400;
}

.gila_material_table table tbody tr:not(:first-child) {
	border-top: 1px solid;
	border-color: var(--cgpa-border);
}

.gila_material_table .table_stripped tbody tr:nth-of-type(2n+1) {
	background-color: rgba(0, 0, 0, 0.12);
}

.gila_material_collapse {
	display: block;
	margin: 15px 0;
	overflow: hidden;
	border: 1px solid var(--cgpa-border);
	border-radius: 4px;
}

.gila_material_collapse .collapse_panel .collapse_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	cursor: pointer;
}

.gila_material_collapse .collapse_panel:not(:first-child) .collapse_header {
	border-top: 1px solid;
	border-color: var(--cgpa-border);
}

.gila_material_collapse .collapse_panel .collapse_header.active {
	border-bottom: 1px solid;
	border-color: var(--cgpa-border);
}

.gila_material_collapse .collapse_panel .collapse_header::after {
	content: "";
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin-left: 12px;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' fill='%23000000'/%3E%3C/svg%3E") no-repeat center;
	transition: transform 0.3s ease;
}

.gila_material_collapse .collapse_panel .collapse_header.active::after {
	transform: rotate(180deg);
}

.gila_material_collapse .collapse_panel .collapse_content {
	display: none;
	padding: 16px;
}

.gila_material_collapse .collapse_panel .collapse_content.open {
	display: block;
}

.gila_material_collapse .collapse_panel .collapse_content .gila_material_highlight_wrap,
.gila_material_collapse .collapse_panel .collapse_content .gila_material_alert {
	margin: 0;
}

.gila_material_highlight_wrap {
	margin: 15px 0;
}

.gila_material_highlight_wrap pre {
	position: relative;
	padding: 20px;
	overflow: hidden;
	overflow-x: auto;
	border-radius: 4px;
	background-color: #181818;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 30%), 0 1px 3px 1px rgb(0 0 0 / 15%);
	color: #fff;
	font-size: 14px;
}

.gila_material_highlight_wrap pre[data-lang] {
	padding-top: 80px;
}

.gila_material_highlight_wrap pre[data-lang]::before {
	content: attr(data-lang);
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	padding: 15px;
	background-color: #303134;
}

/* Helpers */

.cgpa-container {
	width: 100%;
	max-width: var(--cgpa-width);
	margin: 0 auto;
	padding: 0 60px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Header */

.cgpa-header {
	position: relative;
	z-index: 50;
}

.cgpa-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
}

.cgpa-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #222;
	font-size: 22.4px;
	white-space: nowrap;
}

.cgpa-logo:hover {
	color: #222;
}

.cgpa-logo svg {
	width: 27px;
	height: 27px;
	fill: currentColor;
}

.cgpa-menu-toggle {
	display: none;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--cgpa-text);
	cursor: pointer;
}

.cgpa-menu-toggle svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.cgpa-nav__menu,
.cgpa-nav__menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgpa-nav__menu {
	display: flex;
	align-items: center;
}

.cgpa-nav__menu li {
	position: relative;
	margin: 0;
}

.cgpa-nav__menu a {
	display: block;
	padding: 10px 15px;
	color: var(--cgpa-muted);
	font-size: 14px;
}

.cgpa-nav__menu a:hover,
.cgpa-nav__menu .current-menu-item > a {
	color: var(--cgpa-text);
}

.cgpa-nav__menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	border: 4px solid transparent;
	border-top-color: currentColor;
	border-bottom: 0;
	vertical-align: middle;
}

.cgpa-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	min-width: 220px;
	padding: 8px 0;
	border: 1px solid var(--cgpa-border);
	border-radius: var(--cgpa-radius);
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cgpa-nav__menu li:hover > .sub-menu,
.cgpa-nav__menu li:focus-within > .sub-menu {
	display: block;
}

.cgpa-nav__menu .sub-menu a {
	padding: 8px 18px;
}

/* Layout: the old theme's columns (content 65%, sidebar 35%, 30px apart; stacked up to 1024px) */

.cgpa-main {
	padding: 8px 0 48px;
}

.cgpa-layout {
	display: flex;
}

.cgpa-layout__main {
	width: 65%;
	margin-right: 30px;
}

.cgpa-sidebar {
	width: 35%;
}

.cgpa-front {
	margin-bottom: 40px;
}

/* Breadcrumbs, titles, meta */

.cgpa-breadcrumbs {
	margin: 0 0 10px;
	color: var(--cgpa-muted);
	font-size: 14px;
}

.cgpa-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgpa-breadcrumbs li {
	margin: 0;
}

.cgpa-breadcrumbs li + li::before {
	content: "›";
	margin: 0 8px;
}

.cgpa-breadcrumbs a {
	color: var(--cgpa-muted);
}

.cgpa-breadcrumbs li:first-child a {
	color: var(--cgpa-link);
}

.cgpa-breadcrumbs a:hover {
	text-decoration: underline;
}

.cgpa-title {
	margin: 0 0 5px;
	font-size: 26px;
	line-height: 1.5;
}

.cgpa-meta {
	margin: 0 0 22px;
	color: var(--cgpa-muted);
	font-size: 14px;
}

.cgpa-section-title {
	margin: 0 0 16px;
	font-size: 22px;
}

.cgpa-description {
	margin: 0 0 24px;
	color: var(--cgpa-muted);
	font-size: 16px;
}

/* Article cards */

.cgpa-cards {
	display: grid;
	gap: 24px;
	margin: 0 0 24px;
}

.cgpa-card {
	display: flex;
	gap: 16px;
}

.cgpa-card__image {
	flex: 0 0 200px;
	overflow: hidden;
	border-radius: var(--cgpa-radius);
	background: var(--cgpa-soft);
	aspect-ratio: 16 / 9;
}

.cgpa-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cgpa-card__title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.4;
}

.cgpa-card__title a {
	color: var(--cgpa-text);
}

.cgpa-card__title a:hover {
	color: var(--cgpa-link);
}

.cgpa-card__excerpt {
	margin: 0 0 6px;
	color: var(--cgpa-muted);
}

.cgpa-card__date {
	color: var(--cgpa-muted);
	font-size: 13px;
}

.cgpa-related {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--cgpa-border);
}

.cgpa-button {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--cgpa-border);
	border-radius: 999px;
	color: var(--cgpa-text);
	font-weight: 600;
}

.cgpa-button:hover {
	background: var(--cgpa-soft);
	color: var(--cgpa-text);
}

.cgpa-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cgpa-pagination .page-numbers {
	padding: 6px 12px;
	border: 1px solid var(--cgpa-border);
	border-radius: 8px;
	color: var(--cgpa-text);
}

.cgpa-pagination .current {
	background: var(--cgpa-text);
	color: #fff;
}

/* Sidebar */

.cgpa-widget {
	margin: 0 0 32px;
}

.cgpa-widget__title {
	margin: 0 0 12px;
	font-size: 16px;
}

.cgpa-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgpa-widget li {
	margin: 0;
}

.cgpa-widget--categories li {
	display: inline-block;
	margin: 0 6px 8px 0;
}

.cgpa-widget--categories a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--cgpa-border);
	border-radius: 999px;
	color: var(--cgpa-text);
	font-size: 13px;
}

.cgpa-widget__count {
	margin-left: 2px;
	color: var(--cgpa-muted);
}

.cgpa-widget--latest li {
	padding: 10px 0;
	border-bottom: 1px dashed var(--cgpa-border);
}

.cgpa-widget--latest a {
	color: var(--cgpa-text);
	font-size: 15px;
}

.cgpa-widget--latest a:hover {
	text-decoration: underline;
}

.cgpa-search .search-form {
	display: flex;
	gap: 8px;
	margin: 0;
}

/* The label around the field is what sits in the row: it may shrink, so on a 320 px phone the button still fits. */
.cgpa-search .search-form label {
	min-width: 0;
}

.cgpa-search .search-field {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--cgpa-border);
	border-radius: 8px;
	font: inherit;
}

.cgpa-search .search-submit {
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--cgpa-text);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

/* Footer */

.cgpa-footer {
	padding: 32px 0 24px;
	border-top: 1px solid var(--cgpa-border);
}

.cgpa-footer__columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 24px;
}

.cgpa-footer__title {
	margin: 0 0 12px;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cgpa-footer__column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgpa-footer__column li {
	margin: 0 0 8px;
}

.cgpa-footer a {
	color: var(--cgpa-muted);
}

.cgpa-footer a:hover {
	color: var(--cgpa-text);
}

.cgpa-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	padding-top: 20px;
	border-top: 1px solid var(--cgpa-border);
	color: var(--cgpa-muted);
}

.cgpa-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cgpa-footer__legal li {
	margin: 0;
}

/* 404 */

.cgpa-not-found {
	max-width: 640px;
	margin: 40px auto;
	text-align: center;
}

.cgpa-not-found .cgpa-search {
	margin: 24px 0;
}

/* Small screens */

@media (max-width: 1024px) {
	.cgpa-layout {
		display: block;
	}

	.cgpa-layout__main {
		width: 100%;
		margin: 0 0 40px;
	}

	.cgpa-sidebar {
		width: 100%;
	}
}

@media (max-width: 900px) {
	.cgpa-menu-toggle {
		display: block;
	}

	.cgpa-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 8px 0;
		border-bottom: 1px solid var(--cgpa-border);
		background: #fff;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	}

	.cgpa-nav.is-open {
		display: block;
	}

	.cgpa-nav__menu {
		display: block;
	}

	.cgpa-nav__menu a {
		padding: 12px 20px;
	}

	.cgpa-nav__menu .sub-menu {
		position: static;
		display: none;
		padding: 0 0 0 16px;
		border: 0;
		box-shadow: none;
	}

	.cgpa-nav__menu li:hover > .sub-menu,
	.cgpa-nav__menu li:focus-within > .sub-menu {
		display: none;
	}

	.cgpa-nav__menu li.is-open > .sub-menu {
		display: block;
	}

	.cgpa-footer__columns {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.cgpa-container {
		padding: 0 15px;
	}
}

@media (max-width: 600px) {
	.cgpa-card {
		flex-direction: column;
	}

	.cgpa-card__image {
		flex-basis: auto;
	}

	.cgpa-title {
		font-size: 22px;
	}
}
