/* Article pages only. Everything is scoped to .pn-hero and .pn-article. */

.pn-hero,
.pn-article {
	--pn-navy: #05174d;
	--pn-blue: #2f6ca6;
	--pn-sky: #e8f1f9;
	--pn-line: #c9dbec;
	--pn-sand: #fbf0de;
	--pn-gold: #d9a441;
}

/* ---------- opening: the page sheet rises over the photo ---------- */

.pn-hero {
	position: relative;
	min-height: 500px;
	display: flex;
	align-items: flex-end;
	background: var(--pn-sky);
	overflow: hidden;
}

.pn-hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

.pn-hero__photo--end { object-position: 78% 50%; }

.pn-hero__card {
	position: relative;
	box-sizing: border-box;
	width: 570px;
	margin: 0 0 -1px 60px;
	padding: 46px 48px 41px;
	background: #fff;
	border-top: 6px solid var(--pn-gold);
}

/* the white card starts on the text edge and carries on to the box edge */
.pn-hero__card:before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 100%;
	width: 60px;
	background: #fff;
	margin-top: -6px;
	border-top: 6px solid var(--pn-gold);
	box-sizing: border-box;
	height: calc(100% + 6px);
}

.pn-hero .pn-hero__card { padding-left: 0; }

.pn-hero .entry-title {
	margin: 0;
	padding: 0 0 16px;
	font-size: 38px;
	line-height: 1.18;
	font-weight: 700;
	text-wrap: balance;
	color: var(--pn-navy);
}

.pn-hero .post-meta {
	margin: 0;
	padding: 0;
	font-size: 16px;
	color: #4a4f5e !important;
}

.pn-single #main-content .container { padding-top: 34px; }

/* ---------- running text ---------- */

.pn-article .entry-content { padding-top: 0; }

.pn-article .pn-body {
	font-size: 18px;
	line-height: 1.6;
	color: #0a0a0a;
}

.pn-article .pn-body p {
	margin: 0 0 20px;
	padding: 0;
	font-size: 18px;
	line-height: 1.6;
}

.pn-article .pn-body a {
	color: #1f5f9c;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pn-article .pn-body a:hover { color: var(--pn-navy); text-decoration-thickness: 2px; }

.pn-article .pn-body h2 {
	margin: 52px 0 18px;
	padding: 0;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--pn-navy);
}

.pn-article .pn-body p.pn-lead {
	font-size: 22px;
	line-height: 1.5;
	color: var(--pn-navy);
}

.pn-article .pn-body img { max-width: none; }

.pn-article .pn-body > :last-child { margin-bottom: 0; }

/* ---------- panels ---------- */

.pn-article .pn-panel {
	margin: 8px 0 28px;
	padding: 28px 32px;
	background: var(--pn-sky);
}

.pn-article .pn-panel--sand { background: var(--pn-sand); }

.pn-article .pn-panel--navy { background: var(--pn-navy); padding: 36px 40px; }
.pn-article .pn-panel--navy p { color: #fff; }

.pn-article .pn-panel--blue { background: var(--pn-blue); padding: 34px 40px; }
.pn-article .pn-panel--blue p { color: #fff; font-size: 21px; line-height: 1.5; }

.pn-article .pn-body .pn-panel p:last-child,
.pn-article .pn-body .pn-cell p:last-child { margin-bottom: 0; }

.pn-article .pn-body .pn-panel--navy p.pn-panel__foot {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .32);
}

/* two things to do on one call, with the note to make underneath */
.pn-article .pn-kit { margin: 8px 0 8px; }

.pn-article .pn-kit__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--pn-sky);
}

.pn-article .pn-kit .pn-cell { padding: 30px 32px; }
.pn-article .pn-kit .pn-cell + .pn-cell { border-left: 1px solid var(--pn-line); }

.pn-article .pn-body .pn-kit p.pn-kit__note {
	margin: 0;
	padding: 20px 32px;
	background: var(--pn-navy);
	color: #fff;
	font-size: 20px;
	line-height: 1.4;
}

/* photo with a card that rises over it */
.pn-article .pn-scene {
	position: relative;
	margin: 10px 0 30px;
	padding-top: 270px;
}

.pn-article .pn-scene__photo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
}

.pn-article .pn-scene__card {
	position: relative;
	margin: 0 0 0 40px;
	padding: 32px 36px;
	background: var(--pn-navy);
}

.pn-article .pn-body .pn-scene__card p { margin: 0; color: #fff; }

.pn-article .pn-body .pn-panel--navy a,
.pn-article .pn-body .pn-panel--blue a,
.pn-article .pn-body .pn-scene__card a { color: #cfe3f7; }

.pn-article .pn-body .pn-panel--navy a:hover,
.pn-article .pn-body .pn-panel--blue a:hover,
.pn-article .pn-body .pn-scene__card a:hover { color: #fff; }

.pn-article .pn-scene--right .pn-scene__card { margin: 0 40px 0 0; }

/* list on a ruled sheet, photo running to the sheet edges */
.pn-article .pn-sheet {
	display: grid;
	grid-template-columns: 34% 1fr;
	margin: 8px 0 28px;
	background: var(--pn-sky);
}

.pn-article .pn-sheet__photo { position: relative; min-height: 100%; }

.pn-article .pn-sheet__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#left-area .pn-article .pn-sheet ul {
	margin: 0;
	padding: 14px 34px 14px 34px;
	list-style: none;
	line-height: 1.5;
}

.pn-article .pn-sheet li {
	position: relative;
	padding: 15px 0 15px 26px;
	border-bottom: 1px solid var(--pn-line);
	font-size: 18px;
	line-height: 1.5;
}

.pn-article .pn-sheet li:last-child { border-bottom: 0; }

.pn-article .pn-sheet li:before {
	content: "";
	position: absolute;
	left: 0;
	top: 24px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pn-gold);
}

/* steps: the order matters here, so they are numbered */
#left-area .pn-article .pn-steps {
	margin: 4px 0 28px;
	padding: 0;
	list-style: none;
	counter-reset: pn;
	border-top: 1px solid var(--pn-line);
}

.pn-article .pn-steps li {
	position: relative;
	padding: 23px 0 23px 72px;
	border-bottom: 1px solid var(--pn-line);
	font-size: 18px;
	line-height: 1.5;
	box-sizing: border-box;
	counter-increment: pn;
}

.pn-article .pn-steps li:before {
	content: counter(pn);
	position: absolute;
	left: 0;
	top: 14px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--pn-navy);
	color: #fff;
	font: 700 20px/46px 'PT Sans', Helvetica, Arial, sans-serif;
	text-align: center;
}

/* ---------- comparison table ---------- */

/* the theme pads every table cell with !important */
#content-area .pn-table th { padding: 16px 24px !important; max-width: none; }
#content-area .pn-table td { padding: 18px 24px !important; max-width: none; }

.pn-article .pn-body table.pn-table {
	width: 100%;
	margin: 4px 0 28px;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
	text-align: left;
}

.pn-article .pn-table th {
	background: var(--pn-navy);
	color: #fff;
	font: 700 18px/1.35 'PT Sans', Helvetica, Arial, sans-serif;
	vertical-align: middle;
}

.pn-article .pn-table th + th { background: var(--pn-blue); }

.pn-article .pn-table td {
	border: 0;
	border-bottom: 1px solid var(--pn-line);
	font-size: 18px;
	line-height: 1.5;
	vertical-align: top;
}

.pn-article .pn-table td + td { border-left: 1px solid var(--pn-line); }

.pn-article .pn-table tbody tr:nth-child(odd) td { background: #f5f9fc; }

/* ---------- pairs of cards ---------- */

.pn-article .pn-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 8px 0 28px;
}

.pn-article .pn-pair .pn-cell { padding: 28px 30px; background: var(--pn-sky); }

/* under the table: the same two columns, the same two colors */
.pn-article .pn-pair--routes { gap: 0; margin-top: -28px; }
.pn-article .pn-pair--routes .pn-cell { padding: 28px 24px; background: var(--pn-navy); }
.pn-article .pn-pair--routes .pn-cell + .pn-cell { background: var(--pn-blue); }
.pn-article .pn-body .pn-pair--routes p { color: #fff; }
.pn-article .pn-body .pn-pair--routes a { color: #dcebf9; }
.pn-article .pn-body .pn-pair--routes a:hover { color: #fff; }

.pn-article .pn-body .pn-q {
	display: block;
	margin-bottom: 8px;
	font: 700 20px/1.3 'PT Sans', Helvetica, Arial, sans-serif;
	color: var(--pn-navy);
}

/* ---------- closing note ---------- */

.pn-article .pn-body p.pn-fine {
	margin: 34px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--pn-line);
	font-size: 16px;
	line-height: 1.5;
	color: #3f4658;
}

.pn-hero a:focus-visible,
.pn-article a:focus-visible { outline: 2px solid var(--pn-gold); outline-offset: 3px; }

/* ---------- narrower screens ---------- */

@media (max-width: 1280px) {
	.pn-hero__card { margin-left: 5%; }
	.pn-hero { min-height: 460px; }
	.pn-hero__card:before { width: 200px; }
}

@media (max-width: 1100px) {
	.pn-hero .entry-title { font-size: 33px; }
	.pn-hero__card { width: 50%; padding-right: 34px; }
}

@media (max-width: 980px) {
	.pn-hero { display: block; min-height: 0; background: #fff; overflow: visible; }
	.pn-hero__photo { position: static; height: 360px; }
	.pn-hero__card {
		width: auto;
		margin: -70px 14% 0 0;
		padding: 34px 40px 10px 5%;
	}
	.pn-hero .pn-hero__card { padding-left: 5%; }
	.pn-hero__card:before { content: none; }
	.pn-single #main-content .container { padding-top: 24px; }
}

@media (max-width: 767px) {
	.pn-article .pn-kit__pair,
	.pn-article .pn-pair,
	.pn-article .pn-sheet { grid-template-columns: minmax(0, 1fr); }
	.pn-article .pn-kit .pn-cell + .pn-cell { border-left: 0; border-top: 1px solid var(--pn-line); }
	.pn-article .pn-pair { gap: 16px; }
	.pn-article .pn-pair--routes { gap: 0; margin-top: -28px; }
	.pn-article .pn-sheet__photo { min-height: 260px; }
}

@media (max-width: 640px) {
	.pn-hero__photo { height: 230px; }
	.pn-hero__card { margin: -36px 8% 0 0; padding: 24px 18px 4px 5%; }
	.pn-hero .entry-title { font-size: 27px; padding-bottom: 10px; }
	.pn-article .pn-body p,
	.pn-article .pn-sheet li,
	.pn-article .pn-steps li { font-size: 17px; }
	.pn-article .pn-body p.pn-lead { font-size: 19px; }
	.pn-article .pn-body h2 { margin-top: 40px; font-size: 24px; }
	.pn-article .pn-panel,
	.pn-article .pn-panel--navy,
	.pn-article .pn-panel--blue { padding: 24px 20px; }
	.pn-article .pn-panel--blue p { font-size: 18px; }
	.pn-article .pn-kit .pn-cell,
	.pn-article .pn-pair .pn-cell,
	.pn-article .pn-pair--routes .pn-cell { padding: 24px 20px; }
	.pn-article .pn-body .pn-kit p.pn-kit__note { padding: 18px 20px; font-size: 18px; }
	.pn-article .pn-scene { padding-top: 180px; }
	.pn-article .pn-scene__photo { height: 230px; }
	.pn-article .pn-scene__card { margin: 0 0 0 16px; padding: 22px 20px; }
	.pn-article .pn-scene--right .pn-scene__card { margin: 0 16px 0 0; }
	#left-area .pn-article .pn-sheet ul { padding: 8px 20px; }
	.pn-article .pn-steps li { padding-left: 56px; }
	.pn-article .pn-steps li:before { width: 38px; height: 38px; font-size: 17px; line-height: 38px; top: 16px; }
	#content-area .pn-table th,
	#content-area .pn-table td { padding: 12px 10px !important; }
	.pn-article .pn-table th { font-size: 15px; }
	.pn-article .pn-table td { font-size: 16px; line-height: 1.4; hyphens: auto; }
}
