/**
 * The journal's own pages: an article, an issue, and the lists that lead to
 * them. Nothing here names a colour; they all come from palette.css.
 */

/* ------------------------------------------------------------------
 * The page an article sits on
 * ---------------------------------------------------------------- */

.ht-wrap {
	max-width: 76rem;
	margin: 0 auto;
	padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.ht-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 17rem;
	gap: var(--ht-gap);
	align-items: start;
}

.ht-layout > .ht-main {
	min-width: 0;
}

/* ------------------------------------------------------------------
 * The head of an article
 * ---------------------------------------------------------------- */

.ht-eyebrow {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	align-items: center;
	margin: 0 0 .75rem;
	font-size: .82rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ht-quiet);
}

.ht-eyebrow a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--ht-line);
}

.ht-eyebrow a:hover {
	color: var(--ht-main);
}

.ht-section-tag {
	padding: .15em .6em;
	border-radius: 999px;
	background: var(--ht-shade);
	color: var(--ht-main);
	letter-spacing: .04em;
}

.ht-title {
	margin: 0 0 .4rem;
	font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem);
	font-weight: 600;
}

.ht-subtitle {
	margin: 0 0 1rem;
	font-family: var(--ht-serif);
	font-size: clamp(1.1rem, .9rem + .9vw, 1.45rem);
	font-weight: 400;
	color: var(--ht-quiet);
	line-height: 1.35;
}

.ht-rule {
	width: 4.5rem;
	height: 3px;
	margin: 1.1rem 0 1.4rem;
	border: 0;
	background: var(--ht-mark);
}

/* The authors, which a reader scans rather than reads. */
.ht-authors {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1.1rem;
	font-size: 1.02rem;
}

.ht-authors li {
	display: inline-flex;
	align-items: baseline;
	gap: .35rem;
}

.ht-authors .ht-author-name {
	font-weight: 600;
	color: var(--ht-heading);
}

.ht-authors .ht-affil {
	font-size: .88rem;
	color: var(--ht-quiet);
}

.ht-orcid {
	display: inline-flex;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	background: #a6ce39;
	position: relative;
	text-indent: -9999px;
	overflow: hidden;
	flex: 0 0 auto;
	align-self: center;
}

/* ------------------------------------------------------------------
 * Reading
 * ---------------------------------------------------------------- */

.ht-abstract {
	margin: 0 0 1.6rem;
	padding: 1.1rem 1.3rem;
	background: var(--ht-soft);
	border-left: 3px solid var(--ht-main);
	border-radius: 0 var(--ht-radius) var(--ht-radius) 0;
}

.ht-abstract h2,
.ht-body h2 {
	font-size: 1.12rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ht-main);
}

.ht-abstract h2 {
	margin: 0 0 .5rem;
}

.ht-abstract p:last-child {
	margin-bottom: 0;
}

.ht-keywords {
	margin: .9rem 0 0;
	font-size: .92rem;
}

.ht-keywords a {
	display: inline-block;
	margin: 0 .35rem .35rem 0;
	padding: .1em .65em;
	border: 1px solid var(--ht-line);
	border-radius: 999px;
	text-decoration: none;
	color: var(--ht-text);
}

.ht-keywords a:hover {
	border-color: var(--ht-main);
	color: var(--ht-main);
}

.ht-body {
	max-width: var(--ht-measure);
	font-family: var(--ht-serif);
	font-size: 1.08rem;
	line-height: 1.72;
}

.ht-body p {
	margin: 0 0 1.15em;
}

.ht-body h2 {
	margin: 2.2rem 0 .8rem;
	font-family: var(--ht-serif);
	font-size: 1.4rem;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ht-heading);
}

.ht-body h3 {
	margin: 1.8rem 0 .6rem;
	font-size: 1.16rem;
}

.ht-body blockquote {
	margin: 1.5rem 0;
	padding: .2rem 0 .2rem 1.2rem;
	border-left: 3px solid var(--ht-line);
	color: var(--ht-quiet);
}

.ht-body figure {
	margin: 1.8rem 0;
}

.ht-body figcaption {
	margin-top: .5rem;
	font-family: var(--ht-sans);
	font-size: .88rem;
	color: var(--ht-quiet);
}

.ht-body table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--ht-sans);
	font-size: .95rem;
}

.ht-body th,
.ht-body td {
	padding: .5rem .6rem;
	border-bottom: 1px solid var(--ht-line);
	text-align: left;
}

.ht-references {
	max-width: var(--ht-measure);
	font-size: .95rem;
	line-height: 1.6;
}

.ht-references ol {
	padding-left: 1.3rem;
}

.ht-references li {
	margin-bottom: .6rem;
}

/* ------------------------------------------------------------------
 * The side of an article
 * ---------------------------------------------------------------- */

.ht-side {
	position: sticky;
	top: 1.5rem;
	display: grid;
	gap: 1rem;
	font-size: .93rem;
}

.ht-box {
	background: var(--ht-page);
	border: 1px solid var(--ht-line);
	border-radius: var(--ht-radius);
	padding: 1rem 1.1rem;
}

.ht-box h2 {
	margin: 0 0 .7rem;
	font-family: var(--ht-sans);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--ht-quiet);
}

.ht-facts {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .35rem .8rem;
}

.ht-facts dt {
	color: var(--ht-quiet);
}

.ht-facts dd {
	margin: 0;
	color: var(--ht-heading);
	word-break: break-word;
}

.ht a.ht-btn,
.ht-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	width: 100%;
	box-sizing: border-box;
	padding: .68rem 1rem;
	border: 1px solid var(--ht-main);
	border-radius: var(--ht-radius);
	background: var(--ht-main);
	color: var(--ht-page);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.ht a.ht-btn:hover,
.ht a.ht-btn:focus-visible {
	background: var(--ht-pointed);
	border-color: var(--ht-pointed);
	color: var(--ht-page);
}

.ht a.ht-btn-quiet,
.ht-btn-quiet {
	background: transparent;
	color: var(--ht-main);
}

.ht a.ht-btn-quiet:hover,
.ht a.ht-btn-quiet:focus-visible {
	background: var(--ht-shade);
	color: var(--ht-pointed);
}

.ht-btn + .ht-btn {
	margin-top: .5rem;
}

/* How to cite, which is copied more often than it is read. */
.ht-cite p {
	margin: 0 0 .7rem;
	font-family: var(--ht-serif);
	line-height: 1.5;
}

.ht-copy {
	border: 1px solid var(--ht-line);
	background: transparent;
	color: var(--ht-main);
	border-radius: 999px;
	padding: .25em .85em;
	font: inherit;
	font-size: .85rem;
	cursor: pointer;
}

.ht-copy:hover {
	background: var(--ht-shade);
}

.ht-copy.is-done {
	border-color: var(--ht-mark);
	color: var(--ht-mark);
}

/* ------------------------------------------------------------------
 * An issue, and its contents
 * ---------------------------------------------------------------- */

.ht-issue-head {
	display: grid;
	grid-template-columns: 14rem minmax(0, 1fr);
	gap: var(--ht-gap);
	align-items: start;
	margin-bottom: 2rem;
}

.ht-cover img {
	width: 100%;
	height: auto;
	border: 1px solid var(--ht-line);
	border-radius: 4px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .13);
}

.ht-toc {
	border-top: 2px solid var(--ht-main);
}

.ht-toc h2 {
	margin: 1.8rem 0 .5rem;
	font-size: 1rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--ht-main);
}

.ht-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ht-toc li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: .4rem 1rem;
	align-items: baseline;
	padding: .85rem 0;
	border-bottom: 1px solid var(--ht-line);
}

.ht-toc .ht-toc-title {
	font-family: var(--ht-serif);
	font-size: 1.08rem;
	font-weight: 600;
	color: var(--ht-heading);
	text-decoration: none;
}

.ht-toc .ht-toc-title:hover {
	color: var(--ht-main);
}

.ht-toc .ht-toc-authors {
	grid-column: 1;
	font-size: .92rem;
	color: var(--ht-quiet);
}

.ht-toc .ht-toc-pages {
	grid-row: 1;
	grid-column: 2;
	font-variant-numeric: tabular-nums;
	color: var(--ht-quiet);
	white-space: nowrap;
}

.ht-toc .ht-toc-links {
	grid-column: 2;
	display: flex;
	gap: .5rem;
	justify-content: flex-end;
}

.ht-toc .ht-toc-links a {
	font-size: .82rem;
	text-decoration: none;
	border: 1px solid var(--ht-line);
	border-radius: 999px;
	padding: .1em .6em;
	color: var(--ht-main);
}

/* ------------------------------------------------------------------
 * The lists: issues, sections, authors
 * ---------------------------------------------------------------- */

.ht-archive-head {
	margin-bottom: 1.8rem;
	padding-bottom: 1.1rem;
	border-bottom: 2px solid var(--ht-main);
}

.ht-archive-head p {
	margin: .4rem 0 0;
	color: var(--ht-quiet);
}

.ht-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: var(--ht-gap);
}

.ht-issue-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.ht-issue-card img {
	width: 100%;
	height: auto;
	border: 1px solid var(--ht-line);
	border-radius: 4px;
}

.ht-issue-card .ht-placeholder {
	aspect-ratio: 3 / 4;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: var(--ht-soft);
	border: 1px solid var(--ht-line);
	border-radius: 4px;
	font-family: var(--ht-serif);
	font-size: 1.15rem;
	text-align: center;
	color: var(--ht-main);
}

.ht-issue-card b {
	display: block;
	margin-top: .6rem;
	font-family: var(--ht-serif);
	font-size: 1.02rem;
	color: var(--ht-heading);
}

.ht-issue-card span {
	display: block;
	font-size: .88rem;
	color: var(--ht-quiet);
}

.ht-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ht-line);
}

.ht-list > li {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--ht-line);
}

.ht-list h2 {
	margin: 0 0 .25rem;
	font-size: 1.15rem;
}

.ht-list h2 a {
	text-decoration: none;
	color: var(--ht-heading);
}

.ht-list h2 a:hover {
	color: var(--ht-main);
}

.ht-list .ht-meta {
	font-size: .9rem;
	color: var(--ht-quiet);
}

.ht-pager {
	display: flex;
	gap: .6rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.ht-pager .page-numbers {
	padding: .35em .8em;
	border: 1px solid var(--ht-line);
	border-radius: var(--ht-radius);
	text-decoration: none;
}

.ht-pager .page-numbers.current {
	background: var(--ht-main);
	border-color: var(--ht-main);
	color: var(--ht-page);
}

/* ------------------------------------------------------------------
 * Narrow screens
 * ---------------------------------------------------------------- */

@media (max-width: 900px) {
	.ht-layout,
	.ht-issue-head {
		grid-template-columns: minmax(0, 1fr);
	}

	.ht-side {
		position: static;
	}

	.ht-cover {
		max-width: 12rem;
	}

	.ht-body {
		font-size: 1.05rem;
	}
}

@media (max-width: 600px) {
	.ht-toc li {
		grid-template-columns: minmax(0, 1fr);
	}

	.ht-toc .ht-toc-pages,
	.ht-toc .ht-toc-links {
		grid-column: 1;
		justify-content: flex-start;
	}
}

/* ------------------------------------------------------------------
 * Authors
 * ---------------------------------------------------------------- */

.ht-author-group {
	margin: 2rem 0;
}

.ht-author-group .ht-h2 {
	margin: 0 0 0.6rem;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid var(--ht-line);
	font-family: var(--ht-sans);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ht-quiet);
}

.ht-author-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 0.35rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ht-author-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.25rem 0;
}

.ht-author-list .ht-count {
	flex: none;
	font-family: var(--ht-sans);
	font-size: 0.8rem;
	color: var(--ht-quiet);
	font-variant-numeric: tabular-nums;
}

.ht-archive-head .ht-affil {
	margin: 0.2rem 0 0;
	color: var(--ht-quiet);
}

a.ht-author-name {
	color: inherit;
	text-decoration-color: var(--ht-line);
	text-underline-offset: 0.2em;
}

a.ht-author-name:hover,
a.ht-author-name:focus {
	color: var(--ht-main);
	text-decoration-color: currentColor;
}

@media (max-width: 600px) {
	.ht-author-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------
 * The journal bar: menu, reading language, submit
 * ---------------------------------------------------------------- */

.ht-bar {
	border-bottom: 1px solid var(--ht-line);
	background: var(--ht-soft);
	font-family: var(--ht-sans);
	font-size: .9rem;
}

.ht-bar-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.25rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: .5rem var(--ht-gap);
}

.ht-bar-menu {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ht-bar-menu a {
	color: var(--ht-text);
	text-decoration: none;
	padding: .25rem 0;
	border-bottom: 2px solid transparent;
}

.ht-bar-menu a:hover,
.ht-bar-menu a:focus,
.ht-bar-menu .current-menu-item > a {
	color: var(--ht-main);
	border-bottom-color: var(--ht-main);
}

.ht-bar-end {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.ht-langs {
	display: inline-flex;
	border: 1px solid var(--ht-line);
	border-radius: var(--ht-radius);
	overflow: hidden;
	background: var(--ht-page);
}

.ht-lang {
	padding: .25rem .6rem;
	color: var(--ht-quiet);
	text-decoration: none;
	line-height: 1.6;
}

.ht-lang + .ht-lang {
	border-left: 1px solid var(--ht-line);
}

.ht-lang:hover,
.ht-lang:focus {
	color: var(--ht-main);
	background: var(--ht-shade);
}

.ht-lang.is-on {
	color: var(--ht-page);
	background: var(--ht-main);
}

.ht-submit {
	display: inline-block;
	padding: .35rem .85rem;
	border-radius: var(--ht-radius);
	background: var(--ht-main);
	color: var(--ht-page);
	text-decoration: none;
	font-weight: 600;
}

.ht-submit:hover,
.ht-submit:focus {
	background: var(--ht-pointed);
	color: var(--ht-page);
}

/* A reader who has chosen one language is not shown the other. */
.ht-read-ta [lang="en"].ht-alt,
.ht-read-en [lang="ta"].ht-alt {
	display: none;
}

@media (max-width: 600px) {
	.ht-bar-in {
		justify-content: flex-start;
	}

	.ht-bar-end {
		width: 100%;
		justify-content: space-between;
	}
}
