/*
Theme Name: Tathagata Satpathy
Description: tathagatasatpathy.com: the editorials, speeches and pages of Tathagata Satpathy. Child theme of Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: tathagata
License: GNU General Public License v2 or later
*/

/*
 * The site is mostly long reading (editorials, speeches), so the page is set like a good
 * newspaper's opinion page: warm newsprint paper, near-black ink, Newsreader (a typeface
 * made for reading news on screen) at a generous size, about 70 characters to a line.
 * Menus, dates and labels use Schibsted Grotesk, a sans made for a newspaper publisher.
 * One colour besides ink: the green of the Lok Sabha's benches, for links.
 * Colours, fonts and sizes are in theme.json; this file holds the rest.
 */

:root {
	--t-ui: var(--wp--preset--font-family--schibsted);
	--t-rule: 1px solid var(--wp--preset--color--rule);
	--t-rule-ink: 2px solid var(--wp--preset--color--ink);
	--t-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--t-gutter: clamp(1rem, 4vw, 2.5rem);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-optical-sizing: auto;
	font-kerning: normal;
	text-rendering: optimizeLegibility;
}

html {
	accent-color: var(--wp--preset--color--green);
	caret-color: var(--wp--preset--color--green);
}

::placeholder {
	color: var(--wp--preset--color--ink-soft);
	opacity: 1;
}

/* WordPress's "Skip to content" link, when a keyboard user reaches it. */
.skip-link.screen-reader-text:focus {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	padding: 0.6rem 1rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	clip-path: none;
	width: auto;
	height: auto;
}

::selection {
	background: #D5E3DA;
	color: var(--wp--preset--color--ink);
}

p,
li {
	text-wrap: pretty;
	hanging-punctuation: first;
}

h1,
h2,
h3,
.wp-block-post-title {
	text-wrap: balance;
}

/* Links: a fine underline that firms up on hover. */
a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
	transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
	text-decoration-color: currentColor;
}

:where(a, button, input, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--green);
	outline-offset: 2px;
	border-radius: 1px;
}

/* A small label: "Latest editorial", "At a glance", "Old Editorial". */
.t-label,
h2.t-label {
	margin: 0 0 0.75rem;
	font-family: var(--t-ui);
	font-size: 0.75rem;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-soft);
}

/* ------------------------------------------------------------------ masthead */

.t-masthead {
	padding-top: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}

.t-nameplate {
	padding-bottom: clamp(0.9rem, 0.6rem + 1vw, 1.4rem);
	border-bottom: var(--t-rule-ink);
}

.t-nameplate__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: clamp(2.125rem, 1.4rem + 3.4vw, 4rem);
	font-weight: 560;
	line-height: 0.98;
	letter-spacing: -0.022em;
}

.t-nameplate__name a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-nameplate__line {
	margin: 0.6rem 0 0;
	font-family: var(--t-ui);
	font-size: 0.875rem;
	font-weight: 450;
	line-height: 1.4;
	color: var(--wp--preset--color--ink-soft);
}

.t-nameplate__line em {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.07em;
	font-style: italic;
	color: var(--wp--preset--color--ink);
}

/* The menu: one row under the nameplate, closed by a fine rule. (WordPress gives the
   menu's inner list the block's class too, hence "nav.t-nav".) */
.t-masthead nav.t-nav {
	margin-top: 0 !important;
	padding: 0.15rem 0;
	border-bottom: var(--t-rule);
	row-gap: 0;
	column-gap: clamp(1rem, 0.5rem + 1.6vw, 1.9rem);
}

.t-nav .wp-block-navigation-item__content {
	padding: 0.7rem 0;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-nav .wp-block-navigation-item__content:hover,
.t-nav .current-menu-item > .wp-block-navigation-item__content,
.t-nav .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--green);
}

.t-nav .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--green);
}

/* Sub-menus (Editorial › Old Editorials, In Parliament › …): a plain sheet of paper. */
.t-nav .wp-block-navigation__submenu-container {
	min-width: 15rem !important;
	padding: 0.4rem 0;
	background: var(--wp--preset--color--paper) !important;
	border: var(--t-rule) !important;
	box-shadow: 0 10px 24px -14px rgba(28, 26, 23, 0.35);
}

.t-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.45rem 1rem;
}

.t-nav .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	top: -0.45rem;
}

/* The search box, last in the menu row. */
.t-nav .wp-block-search {
	margin-left: auto;
}

.t-nav .wp-block-search__inside-wrapper,
.t-search__form .wp-block-search__inside-wrapper {
	border: var(--t-rule);
	border-radius: 2px;
	background: #FBF9F4;
	padding: 0;
}

.t-nav .wp-block-search__input,
.t-search__form .wp-block-search__input {
	border: 0;
	background: transparent;
	padding: 0.4rem 0.6rem;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	color: var(--wp--preset--color--ink);
	min-width: 0;
}

.t-nav .wp-block-search__input {
	width: 9.5rem;
}

.t-nav .wp-block-search__button,
.t-search__form .wp-block-search__button {
	margin: 0;
	border-radius: 0 1px 1px 0;
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
}

.t-nav .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border-left: var(--t-rule);
}

.t-nav .wp-block-search__button:hover {
	background: var(--wp--preset--color--paper-deep);
	color: var(--wp--preset--color--ink);
}

/* Phones: the menu opens over the page, set large. */
.t-nav .wp-block-navigation__responsive-container-open {
	padding: 0.7rem 0;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 600;
	gap: 0.4rem;
}

.t-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper) !important;
	color: var(--wp--preset--color--ink) !important;
	padding: 1.25rem var(--t-gutter) 2rem;
}

.t-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-top: 2.75rem;
}

.t-nav .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	align-items: stretch !important;
	width: 100%;
}

.t-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	align-items: stretch !important;
}

.t-nav .is-menu-open .wp-block-navigation-item__content {
	padding: 0.55rem 0 !important;
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.375rem;
	font-weight: 500;
	border-bottom: var(--t-rule);
}

.t-nav .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding: 0 0 0 1rem !important;
	background: transparent !important;
}

.t-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1.125rem;
	padding: 0.45rem 0 !important;
}

.t-nav .is-menu-open .wp-block-search {
	margin: 1.25rem 0 0;
	width: 100%;
}

.t-nav .is-menu-open .wp-block-search__input {
	width: 100%;
	font-size: 1rem;
	padding: 0.65rem 0.75rem;
}

/* ------------------------------------------------------------------ the page */

.t-main {
	padding-top: clamp(2rem, 1.25rem + 3vw, 4rem);
	padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.t-title {
	margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 520;
	line-height: 1.04;
	letter-spacing: -0.015em;
}

.t-page .wp-block-post-content > h2,
.t-article .wp-block-post-content > h2 {
	margin-top: 2.2em;
}

.wp-block-post-content > h3 {
	margin-top: 1.8em;
}

.wp-block-post-content > :where(h2, h3, h4) + * {
	margin-top: 0.6em;
}

.wp-block-post-content strong {
	font-weight: 640;
}

/* Lists written in a page or post (not the theme's own lists, which style themselves). */
.wp-block-post-content > :where(ul, ol),
.wp-block-post-content > :where(ul, ol) :where(ul, ol) {
	padding-left: 1.3em;
}

.wp-block-post-content > :where(ul, ol) li + li {
	margin-top: 0.35em;
}

.wp-block-post-content li::marker {
	color: var(--wp--preset--color--ink-soft);
}

/* A paragraph that is a long web address (In Media, Links): may break anywhere. */
.wp-block-post-content a[href^="http"] {
	overflow-wrap: anywhere;
}

/* A line under a title, saying what the page holds. */
.t-intro {
	margin-top: calc(-1 * clamp(0.75rem, 0.5rem + 1vw, 1.5rem));
	margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--ink-soft);
}

/* ------------------------------------------------------------------ an editorial */

.t-dateline {
	gap: 0.6rem;
	margin-top: calc(-1 * clamp(0.75rem, 0.5rem + 1vw, 1.75rem));
	margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 3rem);
	font-family: var(--t-ui);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.t-dateline__kind,
.t-dateline__kind a {
	font-weight: 600;
	color: var(--wp--preset--color--green);
	text-decoration: none;
}

.t-dateline__kind a:hover {
	text-decoration: underline;
}

.t-dateline__date {
	margin: 0;
	font-size: inherit;
	color: var(--wp--preset--color--ink-soft);
}

.t-dateline__kind::before {
	content: "·";
	margin-right: 0.6rem;
	color: var(--wp--preset--color--ink-soft);
}

.t-article__picture {
	margin-bottom: 2rem;
}

.t-article__picture img {
	width: auto;
	max-width: 100%;
	height: auto;
}

/* The end of an editorial: the ones before and after, and the way back to the list. */
.t-article__end {
	margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
	padding-top: 1.25rem;
	border-top: var(--t-rule-ink);
}

.t-prevnext {
	gap: 1.5rem 2rem;
}

.t-prevnext__link {
	font-family: var(--t-ui);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-soft);
}

.t-prevnext__link a {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.1875rem;
	font-weight: 520;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.25;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-prevnext__link a:hover {
	color: var(--wp--preset--color--green);
}

.t-prevnext__link--later {
	text-align: right;
}

.t-back-to-list {
	margin-top: 2rem;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* ------------------------------------------------------------------ lists of editorials */

.wp-block-query .wp-block-post-template {
	padding-left: 0;
	margin-left: 0;
}

.t-list__items {
	border-top: var(--t-rule-ink);
}

.t-list__item {
	padding: 1.35rem 0 1.5rem;
	border-bottom: var(--t-rule);
}

.t-list__date,
.t-list__item .wp-block-post-date {
	margin: 0 0 0.3rem;
	font-family: var(--t-ui);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink-soft);
}

.t-list__title {
	margin: 0;
	font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
	font-weight: 540;
	line-height: 1.15;
}

.t-list__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-list__title a:hover {
	color: var(--wp--preset--color--green);
}

.t-list__excerpt {
	margin-top: 0.5rem;
	color: #3B3731;
}

.t-list__excerpt p {
	margin: 0;
}

.t-list__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.t-pages {
	margin-top: 2rem;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 500;
	gap: 0.5rem 1rem;
}

.t-pages .page-numbers {
	padding: 0.15rem 0.45rem;
}

.t-pages .page-numbers.current {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

/* The Old Editorials, by year. */
.t-years {
	position: sticky;
	top: 0;
	z-index: 2;
	margin: 0 0 1rem;
	padding: 0.55rem 0;
	background: var(--wp--preset--color--paper);
	border-top: var(--t-rule-ink);
	border-bottom: var(--t-rule);
}

.admin-bar .t-years {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.t-years ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.t-years a {
	text-decoration: none;
}

.t-year {
	scroll-margin-top: 4rem;
	margin-top: 2.25rem;
}

.t-year__title {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	font-weight: 500;
	font-variant-numeric: oldstyle-nums;
}

.t-year__count {
	font-family: var(--t-ui);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink-soft);
}

.t-titles {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--t-rule);
}

.t-titles li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 !important;
	padding: 0.5rem 0;
	border-bottom: var(--t-rule);
	line-height: 1.3;
}

.t-titles a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-titles a:hover {
	color: var(--wp--preset--color--green);
	text-decoration: underline;
}

.t-titles time {
	flex: none;
	font-family: var(--t-ui);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-soft);
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ the speeches */

/* The list of speeches at the top of each year's page. */
.t-contents {
	margin: 0 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
	padding: 1.1rem 0 0.4rem;
	border-top: var(--t-rule-ink);
	border-bottom: var(--t-rule);
	scroll-margin-top: 1rem;
}

.t-contents ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: speech;
}

.t-contents li {
	counter-increment: speech;
	display: grid;
	grid-template-columns: 2rem 1fr;
	column-gap: 0.25rem;
	margin: 0 0 0.9rem !important;
	line-height: 1.32;
}

.t-contents li::before {
	content: counter(speech);
	grid-row: span 2;
	font-family: var(--t-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.75;
	color: var(--wp--preset--color--ink-soft);
	font-variant-numeric: tabular-nums;
}

.t-contents a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 1.0625rem;
}

.t-contents a:hover {
	color: var(--wp--preset--color--green);
	text-decoration: underline;
}

.t-contents time {
	display: block;
	margin-top: 0.15rem;
	font-family: var(--t-ui);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-soft);
}

/* Each speech's title. */
.t-page .wp-block-post-content > h2[id^="speech-"],
.t-page .wp-block-post-content > h2[id^="session-"] {
	scroll-margin-top: 1.25rem;
	margin-top: 1.25rem;
	padding-top: 1.75rem;
	border-top: var(--t-rule-ink);
	font-size: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem);
	line-height: 1.22;
}

.t-back {
	margin-top: 2.5rem !important;
	font-family: var(--t-ui);
	font-size: 0.875rem;
	font-weight: 600;
}

/* The other pages of In Parliament, at the end. */
.t-sections {
	margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
	padding-top: 1.1rem;
	border-top: var(--t-rule-ink);
}

.t-sections ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 600;
}

.t-sections li {
	margin: 0 !important;
}

.t-sections [aria-current] {
	color: var(--wp--preset--color--ink-soft);
}

/* ------------------------------------------------------------------ tables (MPLAD, Articles in the Press) */

.wp-block-table {
	overflow-x: auto;
	margin-left: 0;
	margin-right: 0;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	border-top: var(--t-rule-ink);
	border-bottom: var(--t-rule-ink);
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.55rem 0.75rem 0.55rem 0;
	border: 0;
	border-bottom: var(--t-rule);
	vertical-align: top;
	text-align: left;
}

.wp-block-table th {
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-soft);
	border-bottom: var(--t-rule-ink);
}

.wp-block-table td {
	font-variant-numeric: tabular-nums;
}

.wp-block-table tr:last-child td {
	border-bottom: 0;
}

/* ------------------------------------------------------------------ pictures */

.wp-block-image img,
.wp-block-gallery img {
	height: auto;
}

.wp-block-image figcaption,
.wp-block-gallery figcaption {
	margin-top: 0.5rem;
}

/* A picture in an editorial: as wide as the column allows, never enlarged beyond its size. */
.t-article .wp-block-post-content .wp-block-image img {
	max-width: 100%;
	height: auto;
}

/* Galleries (Constituency, the albums): pictures whole, never cropped, and never larger
   than they are: a small picture sits at its own size in its column, and a short last row
   keeps the same column width instead of spreading across the page. */
.wp-block-gallery.has-nested-images {
	gap: 0.6rem;
	align-items: flex-start;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex-grow: 0;
	justify-content: flex-start;
	align-items: flex-start;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: auto !important;
	max-width: 100% !important;
	height: auto;
	background: var(--wp--preset--color--paper-deep);
}

/* ------------------------------------------------------------------ videos and the map */

.t-video {
	margin: 0;
}

.t-video__link,
.t-video__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #24211D;
	border: 0;
	overflow: hidden;
}

.t-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms var(--t-ease), opacity 300ms ease;
}

.t-video__link:hover .t-video__poster {
	opacity: 0.9;
}

.t-video__play {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.8rem 0.45rem 0.6rem;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-family: var(--t-ui);
	font-size: 0.875rem;
	font-weight: 650;
	border-radius: 2px;
	transition: transform 160ms var(--t-ease);
}

.t-video__link:active .t-video__play {
	transform: scale(0.97);
}

.t-video figcaption {
	margin-top: 0.5rem;
}

.t-videos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.t-map__frame {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* Before the map is asked for: a strip with the button, not an empty map-sized box. */
.t-map__link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 1.1rem 1.25rem;
	border: var(--t-rule);
	background: var(--wp--preset--color--paper-deep);
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.t-map__label {
	padding: 0.5rem 0.9rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 650;
	border-radius: 2px;
	transition: background-color 150ms ease;
}

.t-map__link:hover .t-map__label {
	background: var(--wp--preset--color--green-deep);
}

.t-map__note {
	font-family: var(--t-ui);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-soft);
}

/* ------------------------------------------------------------------ the home page */

.t-home {
	gap: clamp(2rem, 1rem + 4vw, 5rem) !important;
}

.t-lead .t-lead__date {
	margin: 0.7rem 0 0;
}

.t-lead__title {
	margin: 0;
	font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
	font-weight: 520;
	line-height: 1.05;
	letter-spacing: -0.015em;
}

.t-lead__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-lead__title a:hover {
	color: var(--wp--preset--color--green);
}

.t-lead__excerpt {
	margin-top: 1.1rem;
	font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
	line-height: 1.55;
}

.t-lead__excerpt .wp-block-post-excerpt__more-text {
	margin-top: 1rem;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 600;
}

.t-recent {
	margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	padding-top: 1rem;
	border-top: var(--t-rule-ink);
}

.t-recent .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 0 2rem;
}

.t-recent .wp-block-post {
	margin: 0;
	padding: 0.8rem 0 0.9rem;
	border-bottom: var(--t-rule);
}

.t-recent .wp-block-post-title {
	margin: 0 0 0.25rem;
	font-size: 1.1875rem;
	font-weight: 540;
	line-height: 1.22;
}

.t-recent .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-recent .wp-block-post-title a:hover {
	color: var(--wp--preset--color--green);
}

.t-recent .wp-block-post-date {
	margin: 0;
	font-size: 0.8125rem;
}

.t-more {
	margin-top: 1.25rem;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* The side column: his portrait and the old home page's four notes. */
.t-portrait {
	margin: 0 0 1.75rem;
}

.t-portrait img {
	width: 100%;
	height: auto;
	filter: contrast(1.02);
}

.t-portrait figcaption {
	margin-top: 0.5rem;
}

.t-note {
	padding: 1rem 0 1.15rem;
	border-top: var(--t-rule);
	font-size: 1.0625rem;
	line-height: 1.5;
}

.t-note:first-of-type {
	border-top: var(--t-rule-ink);
}

.t-note > * {
	margin: 0;
}

.t-note > * + * {
	margin-top: 0.5rem;
}

.t-note h2 {
	font-family: var(--t-ui);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	line-height: 1.3;
}

.t-note h2 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-note h2 a:hover {
	color: var(--wp--preset--color--green);
}

.t-note ul {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
}

.t-note li + li {
	margin-top: 0.3rem;
}

.t-note .t-note__url {
	font-family: var(--t-ui);
	font-size: 0.875rem;
	line-height: 1.45;
}

/* ------------------------------------------------------------------ the Gallery */

.t-albums {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(40%, 11rem), 1fr));
	gap: 2rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.t-albums li {
	margin: 0 !important;
}

.t-albums a {
	display: block;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.t-albums img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: contain;
	background: var(--wp--preset--color--paper-deep);
	transition: opacity 200ms ease;
}

.t-albums a:hover img {
	opacity: 0.88;
}

.t-albums span {
	display: block;
	margin-top: 0.6rem;
	font-size: 1.25rem;
	font-weight: 540;
	line-height: 1.2;
}

.t-albums a:hover span {
	color: var(--wp--preset--color--green);
}

/* ------------------------------------------------------------------ search, 404 */

.t-search__form {
	margin-bottom: 2rem;
}

.t-search__form .wp-block-search__input {
	padding: 0.65rem 0.75rem;
	font-size: 1rem;
}

/* ------------------------------------------------------------------ footer */

.t-footer {
	padding-top: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
	padding-bottom: 1.5rem;
	background: var(--wp--preset--color--paper-deep);
	border-top: var(--t-rule-ink);
	font-size: 1rem;
	line-height: 1.5;
}

.t-footer__cols {
	gap: clamp(1.75rem, 1rem + 3vw, 3.5rem) !important;
}

.t-footer p {
	margin: 0 0 0.75rem;
}

.t-footer__links {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-family: var(--t-ui);
	font-size: 0.9375rem;
	font-weight: 500;
}

.t-footer__links li + li {
	margin-top: 0.35rem;
}

.t-footer__twitter {
	font-family: var(--t-ui);
	font-size: 0.9375rem;
}

.t-address__kind {
	font-family: var(--t-ui);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-soft);
}

.t-footer__base {
	margin-top: 2rem !important;
	padding-top: 1rem;
	border-top: var(--t-rule);
	font-family: var(--t-ui);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--ink-soft);
	gap: 0.5rem 2rem;
}

.t-footer__base p {
	margin: 0;
}

/* ------------------------------------------------------------------ smaller screens */

@media (max-width: 781px) {
	.t-nameplate__sep {
		display: none;
	}

	.t-nameplate__more {
		display: block;
	}


	.t-prevnext {
		grid-template-columns: 1fr !important;
	}

	.t-prevnext__link--later {
		text-align: left;
	}

	.t-home__side {
		display: grid;
		grid-template-columns: minmax(0, 7.5rem) 1fr;
		column-gap: 1.25rem;
		align-items: start;
	}

	.t-home__side > .t-portrait {
		grid-column: 1;
		margin: 0;
	}

	.t-home__side > .t-note {
		grid-column: 1 / -1;
	}

	.t-home__side > .t-note:first-of-type {
		grid-column: 2;
		grid-row: 1;
		padding-top: 0;
		border-top: 0;
	}

	.t-home__side > .t-note:nth-of-type(2) {
		border-top: var(--t-rule-ink);
		margin-top: 1.25rem;
	}

	.t-titles li {
		flex-direction: column;
		gap: 0.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ------------------------------------------------------------------ the editor */

/* In the block editor the post is shown in the site's own type, on the same paper. */
.editor-styles-wrapper {
	background: var(--wp--preset--color--paper);
}

/* The In Parliament page: the years of speeches. */
.t-yearlist {
	margin: 0.75rem 0 2.5rem;
	padding: 0 !important;
	list-style: none;
	border-top: var(--t-rule-ink);
}

.t-yearlist li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 !important;
	padding: 0.6rem 0;
	border-bottom: var(--t-rule);
}

.t-yearlist a {
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.1;
	text-decoration: none;
	font-variant-numeric: oldstyle-nums;
}

.t-yearlist--words a {
	font-size: 1.375rem;
	font-variant-numeric: normal;
}

.t-yearlist span {
	font-family: var(--t-ui);
	font-size: 0.875rem;
	color: var(--wp--preset--color--ink-soft);
}

/* The long speeches pages: a slim bar that stays at the top while reading, saying which
   speech this is, with the way back to the list. Shown once the list has scrolled away. */
.t-where {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.6rem 0;
	background: var(--wp--preset--color--paper);
	border-bottom: var(--t-rule);
	box-shadow: 0 6px 12px -10px rgba(28, 26, 23, 0.4);
	font-family: var(--t-ui);
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
	opacity: 0;
	transform: translateY(-0.4rem);
	pointer-events: none;
	transition: opacity 200ms var(--t-ease), transform 200ms var(--t-ease);
}

.t-where.is-shown {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.admin-bar .t-where {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.t-where a {
	flex: none;
	font-weight: 600;
}

.t-where__now {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.t-page .wp-block-post-content > h2[id^="speech-"],
.t-page .wp-block-post-content > h2[id^="session-"] {
	scroll-margin-top: 3rem;
}

/* MPLAD Project: the amounts line up on the right and never break; on a phone the table
   keeps its columns and scrolls sideways, with a shadow at the edge that says so. */
.page-mplad-project .wp-block-table :is(td, th):nth-child(3) {
	text-align: right;
	white-space: nowrap;
	padding-right: 1.25rem;
}

.page-mplad-project .wp-block-table :is(td, th):first-child {
	color: var(--wp--preset--color--ink-soft);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 781px) {
	.wp-block-table {
		background:
			linear-gradient(to right, var(--wp--preset--color--paper) 30%, transparent) left / 2rem 100% no-repeat local,
			linear-gradient(to left, var(--wp--preset--color--paper) 30%, transparent) right / 2rem 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgba(28, 26, 23, 0.18), transparent) left / 0.75rem 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgba(28, 26, 23, 0.18), transparent) right / 0.75rem 100% no-repeat scroll;
	}

	.page-mplad-project .wp-block-table table {
		min-width: 36rem;
	}
}
