/*
Theme Name: Studio Jordik
Theme URI: https://studio.jordik.com/
Author: Studio Jordik
Description: Custom theme for studio.jordik.com: the brands of Studio Jordik, contact and the shared legal page, in English and Indonesian.
Version: 0.9.24
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: studio-jordik
*/

/* ---------- Font: Inter, stored on the site itself (latin + latin-ext) ---------- */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, 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-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, 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-500-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, 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-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, 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: 600;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Colours and sizes from the Studio Jordik guide ---------- */

:root {
	--sj-bg: #FFFFFF;        /* background, also the footer */
	--sj-ink: #292929;       /* text */
	--sj-grey: #6B6A67;      /* secondary text: small print, labels */
	--sj-line: #E6E6E6;      /* thin lines, including the line above the footer */
	--sj-blue: #1F6FB2;      /* fjord blue: logo, mark, links and buttons */
	--sj-on-blue: #F8F7F3;   /* text on blue buttons */
	--sj-block: #1F6FB2;     /* the header band and the hover blocks, the same in dark mode */
	--sj-on-block: #F8F7F3;  /* text and logos on the band and the hover blocks */
	--sj-flag-edge: #BDBCB8; /* thin edge around the flags */

	--sj-frame: 1200px;      /* page width, a little narrower than JORDIK and Just Hanan */
	--sj-gutter: 32px;
}

/* Dark mode, chosen by the reader in the hamburger panel */
:root[data-theme="dark"] {
	--sj-bg: #292929;
	--sj-ink: #F8F7F3;
	--sj-grey: #A8A7A3;
	--sj-line: #404040;
	--sj-blue: #8EC0E3;      /* light fjord blue */
	--sj-on-blue: #292929;   /* the dark mode switch: knob on light blue */
	--sj-flag-edge: #6B6A67;
	color-scheme: dark;
}

/* Logo and mark files: the fjord-blue ones in light mode, the light-blue ones in dark mode */
.sj-logo-dark {
	display: none !important;
}

:root[data-theme="dark"] .sj-logo-light {
	display: none !important;
}

:root[data-theme="dark"] .sj-logo-dark {
	display: block !important;
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--sj-bg);
	color: var(--sj-ink);
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: var(--sj-blue);
}

/* No blue flash when tapping links and buttons on phones */
a,
button {
	-webkit-tap-highlight-color: transparent;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* The page width: 1305px for header, content and footer */
.sj-frame {
	width: 100%;
	max-width: calc(var(--sj-frame) + 2 * var(--sj-gutter));
	margin: 0 auto;
	padding-left: var(--sj-gutter);
	padding-right: var(--sj-gutter);
}

@media (max-width: 760px) {
	body {
		font-size: 17px;
	}

	.sj-frame {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ---------- Header: blue band with the logo (centred), then hamburger / Studio / language ---------- */

/* Fixed at the top, always at full size */
.sj-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 900;
	background: var(--sj-bg);
}

/* On phones WordPress's black admin bar (only for logged-in users) scrolls away
   with the page, so the header sticks to the very top there */
@media (max-width: 600px) {
	.sj-header {
		top: 0;
	}
}

/* The logo band: fjord blue across the full width, with the off-white logo,
   the same in dark mode. */
.sj-header__band {
	background: var(--sj-block);
}

.sj-header__logo-row {
	display: flex;
	justify-content: center;
	padding-top: 16px;
	padding-bottom: 12px;
}

.sj-header__logo {
	display: block;
	width: 360px;
}

.sj-header__logo img {
	width: 100%;
	height: auto;
}

/* The menu row, with a bold blue line under it across the full width,
   the same line as above the footer */
.sj-header__menu {
	border-bottom: 4px solid var(--sj-blue);
}

.sj-header__bar {
	display: flex;
	justify-content: space-between; /* equal space between the hamburger, Publications, Studio and the language switch */
	align-items: center;
	height: 44px;
}

/* Hamburger: three thin lines */
.sj-burger {
	justify-self: start;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	width: 44px;
	height: 40px;
	margin-left: -10px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.sj-burger span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--sj-ink);
}

/* The big X on the Privacy Policy pages, in the place of the hamburger:
   back to the page the visitor came from */
.sj-back {
	position: relative;
	flex: none;
	width: 44px;
	height: 40px;
	margin-left: -10px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.sj-back span {
	position: absolute;
	top: 50%;
	left: 7px;
	width: 30px;
	height: 2px;
	margin-top: -1px;
	background: var(--sj-ink);
}

.sj-back span:first-child {
	transform: rotate(45deg);
}

.sj-back span:last-child {
	transform: rotate(-45deg);
}

.sj-back:active,
.sj-back:focus-visible {
	background: var(--sj-block);
	outline: none;
}

.sj-back:active span,
.sj-back:focus-visible span {
	background: var(--sj-on-block);
}

@media (hover: hover) {
	.sj-back:hover {
		background: var(--sj-block);
	}

	.sj-back:hover span {
		background: var(--sj-on-block);
	}
}

/* Publications and Studio, in SemiBold; the page being shown in blue.
   The nav takes no space of its own, so the four parts of the row are spaced evenly. */
.sj-header__nav {
	display: contents;
}

.sj-header__link {
	padding: 8px 14px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sj-ink);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.sj-header__link.is-current {
	color: var(--sj-blue);
}

.sj-lang {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: -10px;
	padding: 8px 10px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--sj-ink);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.sj-flag {
	flex: none;
	width: 21px;
	height: 14px;
	box-shadow: 0 0 0 1px var(--sj-flag-edge); /* thin edge, so the white of the flag stays visible */
}

/* All three: off-white text and lines on a fjord-blue block */
.sj-burger:active,
.sj-burger:focus-visible,
.sj-header__link:active,
.sj-header__link:focus-visible,
.sj-lang:active,
.sj-lang:focus-visible {
	color: var(--sj-on-block);
	background: var(--sj-block);
	outline: none;
}

.sj-burger:active span,
.sj-burger:focus-visible span {
	background: var(--sj-on-block);
}

@media (hover: hover) {
	.sj-burger:hover,
	.sj-header__link:hover,
	.sj-lang:hover {
		color: var(--sj-on-block);
		background: var(--sj-block);
	}

	.sj-burger:hover span {
		background: var(--sj-on-block);
	}
}

@media (max-width: 760px) {
	.sj-header__logo-row {
		padding-top: 14px;
		padding-bottom: 10px;
	}

	.sj-header__logo {
		width: 264px;
	}

	.sj-header__bar {
		height: 44px;
	}

	.sj-header__link {
		padding: 8px 8px;
		font-size: 18px;
	}
}

/* ---------- Hamburger panel, sliding in from the left ---------- */

.sj-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(41, 41, 41, 0.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

:root[data-theme="dark"] .sj-overlay {
	background: rgba(0, 0, 0, 0.5);
}

.sj-panel {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	bottom: 0;
	z-index: 1001;
	width: 380px;
	max-width: 88vw;
	padding: 20px 32px 40px;
	background: var(--sj-bg);
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform 0.35s ease, visibility 0.35s ease;
	overflow-y: auto;
}

body.sj-menu-open {
	overflow: hidden;
}

body.sj-menu-open .sj-overlay {
	opacity: 1;
	visibility: visible;
}

body.sj-menu-open .sj-panel {
	transform: translateX(0);
	visibility: visible;
}

/* Top: the logo with the cross on its right, as on Just Hanan */
.sj-panel__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
}

.sj-panel__logo {
	display: block;
	width: 200px;
}

.sj-panel__logo img {
	width: 100%;
	height: auto;
}

.sj-panel__close {
	position: relative;
	flex: none;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	background: none;
	border: 0;
	cursor: pointer;
}

.sj-panel__close span {
	position: absolute;
	top: 50%;
	left: 10px;
	width: 24px;
	height: 1.5px;
	background: var(--sj-ink);
}

.sj-panel__close span:first-child {
	transform: rotate(45deg);
}

.sj-panel__close span:last-child {
	transform: rotate(-45deg);
}

/* Groups, each above a thin fjord-blue line */
.sj-panel__group {
	padding: 18px 0;
	border-top: 1px solid var(--sj-blue);
}

.sj-panel__heading {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sj-ink);
}

.sj-panel__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sj-panel__list li + li {
	margin-top: 2px;
}

/* Links: the same fjord-blue block on hover as in the header */
.sj-panel__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: -8px;
	padding: 5px 8px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--sj-ink);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sj-panel__link.is-current {
	color: var(--sj-blue); /* the page being shown */
}

.sj-panel__link--sub {
	margin-left: 18px; /* indented under the heading, as on Just Hanan */
}

.sj-panel__link:active,
.sj-panel__link:focus-visible {
	color: var(--sj-on-block);
	background: var(--sj-block);
	outline: none;
}

@media (hover: hover) {
	.sj-panel__link:hover {
		color: var(--sj-on-block);
		background: var(--sj-block);
	}
}

/* Dark mode switch, in fjord blue */
.sj-mode {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sj-mode__label {
	font-size: 18px;
	color: var(--sj-ink);
}

.sj-mode__switch {
	position: relative;
	flex: none;
	width: 42px;
	height: 24px;
	padding: 0;
	background: none;
	border: 1px solid var(--sj-blue);
	border-radius: 12px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.sj-mode__switch span {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--sj-blue);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.sj-mode__switch[aria-checked="true"] {
	background: var(--sj-blue);
}

.sj-mode__switch[aria-checked="true"] span {
	background: var(--sj-on-blue);
	transform: translateX(18px);
}

@media (prefers-reduced-motion: reduce) {
	.sj-overlay,
	.sj-panel,
	.sj-mode__switch,
	.sj-mode__switch span {
		transition: none;
	}
}

/* ---------- Footer: centred, white, under a bold blue line ---------- */

.sj-footer {
	margin-top: auto; /* keeps the footer at the bottom on short pages */
	border-top: 4px solid var(--sj-blue); /* a bold blue line, the same as under the header menu */
	text-align: center;
}

.sj-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 48px;
	padding-bottom: 40px;
}

/* The s.j mark */
.sj-footer__mark {
	display: block;
	width: 36px;
	margin-bottom: 24px;
}

.sj-footer__mark img {
	width: 100%;
	height: auto;
}

/* About text, links and the © line: Inter 14px in the secondary grey */
.sj-footer__about,
.sj-footer__links,
.sj-footer__credit {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--sj-grey);
}

.sj-footer__about {
	max-width: 560px;
	margin-bottom: 20px;
}

.sj-footer__links {
	margin-bottom: 28px;
}

/* Privacy Policy: smaller, underlined, turns blue on hover (no block) */
.sj-footer__links {
	font-size: 13px;
}

.sj-footer__links a {
	color: var(--sj-grey);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.sj-footer__links a:active,
.sj-footer__links a:focus-visible {
	color: var(--sj-blue);
	outline: none;
}

@media (hover: hover) {
	.sj-footer__links a:hover {
		color: var(--sj-blue);
	}
}

/* "© 2026" with the Studio Jordik logo, about 20px high, on the same baseline */
.sj-footer__credit a {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	color: var(--sj-blue); /* "© 2026" in the same blue as the logo */
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.sj-footer__credit img {
	display: inline-block;
	width: auto;
	height: 20px;
	vertical-align: -4.6px; /* the j hangs below the baseline */
	position: relative;
	top: 4.6px;
}

:root[data-theme="dark"] .sj-footer__credit .sj-logo-dark {
	display: inline-block !important;
}

@media (hover: hover) {
	.sj-footer__credit a:hover {
		opacity: 0.75;
	}
}

@media (max-width: 760px) {
	.sj-footer__inner {
		padding-top: 40px;
		padding-bottom: 32px;
	}
}

/* ---------- Home page: the brands ---------- */

.sj-home {
	text-align: center;
}

/* "CREATED BY STUDIO JORDIK": a small label in the grey */
.sj-home__kicker {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--sj-grey);
	letter-spacing: 0.1em;
}

/* "Our Publications": the page title size */
.sj-home__title {
	margin: 0 0 48px;
	font-size: 36px;
	font-weight: 500;
	line-height: 1.2;
}

.sj-brands {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Logo, language and description together form one link; on hover (and when
   tapped) the whole block turns fjord blue, the text off-white and the logo
   switches to its reversed version */
.sj-brand__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 24px 20px 28px;
	border: 1px solid var(--sj-blue); /* a thin blue line, so it reads as a block */
	color: var(--sj-ink);
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Each logo at most 260px wide, centred in an area 80px high,
   so the language labels start on the same line */
.sj-brand__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 80px;
	margin-bottom: 20px;
}

.sj-brand__img {
	width: 260px;
	max-width: 100%;
	height: auto;
}

/* The language of the magazine: ENGLISH or BAHASA INDONESIA */
.sj-brand__lang {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--sj-grey);
	transition: color 0.15s ease;
}

.sj-brand__text {
	display: block;
}

/* Which logo shows: normal in light mode, reversed in dark mode,
   and reversed on the blue hover block in both modes */
.sj-brand__img--reversed,
:root[data-theme="dark"] .sj-brand__img--normal {
	display: none;
}

:root[data-theme="dark"] .sj-brand__img--reversed {
	display: block;
}

.sj-brand__card:active,
.sj-brand__card:focus-visible {
	color: var(--sj-on-block);
	background: var(--sj-block);
	border-color: var(--sj-block);
	outline: none;
}

.sj-brand__card:active .sj-brand__lang,
.sj-brand__card:focus-visible .sj-brand__lang {
	color: var(--sj-on-block);
}

.sj-brand__card:active .sj-brand__img--normal,
.sj-brand__card:focus-visible .sj-brand__img--normal {
	display: none;
}

.sj-brand__card:active .sj-brand__img--reversed,
.sj-brand__card:focus-visible .sj-brand__img--reversed {
	display: block;
}

@media (hover: hover) {
	.sj-brand__card:hover {
		color: var(--sj-on-block);
		background: var(--sj-block);
		border-color: var(--sj-block);
	}

	.sj-brand__card:hover .sj-brand__lang {
		color: var(--sj-on-block);
	}

	.sj-brand__card:hover .sj-brand__img--normal {
		display: none;
	}

	.sj-brand__card:hover .sj-brand__img--reversed {
		display: block;
	}
}

/* Tablets: two by two */
@media (max-width: 1000px) {
	.sj-brands {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phones: under each other */
@media (max-width: 600px) {
	.sj-home__kicker {
		font-size: 13px;
	}

	.sj-home__title {
		margin-bottom: 32px;
		font-size: 28px;
	}

	.sj-brands {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* ---------- Page not found (404) ---------- */

/* Without the "page-not-found" pages: a standard title and line, centred */
.sj-notfound {
	text-align: center;
}

.sj-notfound__title {
	margin: 0 0 24px;
	font-size: 36px;
	font-weight: 500;
	line-height: 1.2;
}

.sj-notfound__text {
	margin: 0;
}

@media (max-width: 600px) {
	.sj-notfound__title {
		font-size: 28px;
	}
}

/* ---------- Text from the editor (Studio, Privacy Policy, Page not found) ---------- */

/* Links in the text: the text colour without an underline, turning blue on hover
   (no block), as Privacy Policy in the footer */
.sj-content a {
	color: var(--sj-ink);
	text-decoration: none;
	transition: color 0.15s ease;
}

.sj-content a:active,
.sj-content a:focus-visible {
	color: var(--sj-blue);
	outline: none;
}

@media (hover: hover) {
	.sj-content a:hover {
		color: var(--sj-blue);
	}
}

/* A link coloured in the editor (for example Fjord blue) keeps that colour;
   WordPress may put the colour around the link instead of on it */
.sj-content .has-inline-color a,
.sj-content .has-text-color a,
.sj-content a .has-inline-color {
	color: inherit;
}

/* A Fjord blue link turns light fjord blue on hover;
   in dark mode (where it is light fjord blue) it turns fjord blue */
.sj-content .has-fjord-blue-color a:active,
.sj-content .has-fjord-blue-color a:focus-visible,
.sj-content a:active .has-fjord-blue-color,
.sj-content a:focus-visible .has-fjord-blue-color {
	color: #8EC0E3 !important;
}

:root[data-theme="dark"] .sj-content .has-fjord-blue-color a:active,
:root[data-theme="dark"] .sj-content .has-fjord-blue-color a:focus-visible,
:root[data-theme="dark"] .sj-content a:active .has-fjord-blue-color,
:root[data-theme="dark"] .sj-content a:focus-visible .has-fjord-blue-color {
	color: #1F6FB2 !important;
}

@media (hover: hover) {
	.sj-content .has-fjord-blue-color a:hover,
	.sj-content a:hover .has-fjord-blue-color {
		color: #8EC0E3 !important;
	}

	:root[data-theme="dark"] .sj-content .has-fjord-blue-color a:hover,
	:root[data-theme="dark"] .sj-content a:hover .has-fjord-blue-color {
		color: #1F6FB2 !important;
	}
}

/* A Grey link turns blue on hover, like the other links */
.sj-content .has-grey-color a:active,
.sj-content .has-grey-color a:focus-visible,
.sj-content a:active .has-grey-color,
.sj-content a:focus-visible .has-grey-color {
	color: var(--sj-blue) !important;
}

@media (hover: hover) {
	.sj-content .has-grey-color a:hover,
	.sj-content a:hover .has-grey-color {
		color: var(--sj-blue) !important;
	}
}

/* An underline made with Ctrl+U sits around the link, so it would stay grey;
   it turns blue together with the link, and looks like the footer link.
   (!important because WordPress writes the underline as an inline style.) */
.sj-content u,
.sj-content [style*="underline"] {
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease;
}

.sj-content u:has(a:active),
.sj-content u:has(a:focus-visible),
.sj-content [style*="underline"]:has(a:active),
.sj-content [style*="underline"]:has(a:focus-visible) {
	text-decoration-color: var(--sj-blue) !important;
}

@media (hover: hover) {
	.sj-content u:has(a:hover),
	.sj-content [style*="underline"]:has(a:hover) {
		text-decoration-color: var(--sj-blue) !important;
	}
}

/* Words made smaller with the "Small text" button in the editor:
   14px, the size of the footer text and the labels */
.sj-small {
	font-size: 14px;
}

/* ---------- Colours from the editor ---------- */

/* Text coloured "Fjord blue" in the editor: fjord blue, and the light
   fjord blue of the logo in dark mode */
.has-fjord-blue-color {
	color: #1F6FB2 !important;
}

:root[data-theme="dark"] {
	--wp--preset--color--fjord-blue: #8EC0E3;
}

:root[data-theme="dark"] .has-fjord-blue-color {
	color: #8EC0E3 !important;
}

/* Text coloured "Grey" in the editor: the grey of the labels on the home page,
   and the lighter grey of dark mode */
.has-grey-color {
	color: #6B6A67 !important;
}

:root[data-theme="dark"] {
	--wp--preset--color--grey: #A8A7A3;
}

:root[data-theme="dark"] .has-grey-color {
	color: #A8A7A3 !important;
}

/* ---------- Pages ---------- */

.sj-page {
	padding-top: 48px;
	padding-bottom: 56px;
}

/* No extra space under the last thing on a page, so the gap above the footer
   line is about the same as the gap under the menu */
.sj-page > :last-child {
	margin-bottom: 0;
}

/* The text of the pages (Studio, Privacy Policy, Page not found) in a centred
   column of 700px, about 70 characters a line, comfortable to read */
.sj-frame.sj-content {
	max-width: calc(700px + 2 * var(--sj-gutter));
}

/* No extra space above the first thing on a page (usually the H1 title),
   so the gap under the menu is the same as on the home page */
.sj-page > :first-child {
	margin-top: 0;
}

/* Headings without the extra space of the body line height above and under
   the letters, so the title starts as close under the menu as on the home page */
.sj-page h1,
.sj-page h2,
.sj-page h3 {
	line-height: 1.2;
}

/* Heading sizes in the text of the pages, so H3 stands clearly above the text */
.sj-content h1 {
	font-size: 40px;
}

.sj-content h2 {
	font-size: 30px;
}

.sj-content h3 {
	font-size: 24px;
}

@media (max-width: 600px) {
	.sj-content h1 {
		font-size: 32px;
	}

	.sj-content h2 {
		font-size: 26px;
	}

	.sj-content h3 {
		font-size: 21px;
	}
}

/* Temporary: shows the language and a test link to the other language */
.sj-placeholder-note {
	margin-top: 48px;
	font-size: 14px;
	color: var(--sj-grey);
}

/* ---------- Temporary placeholder content ---------- */

.sj-placeholder {
	padding-top: 80px;
	padding-bottom: 160px;
	color: var(--sj-grey);
}

.sj-placeholder__logo {
	width: 260px;
	margin-bottom: 32px;
}
