/*
Theme Name: SHSAT Sunset Child
Theme URI: https://shsatsunset.org
Description: Two-column child theme of Twenty Twenty-Five for shsatsunset.org. Blog templates (home, index, archive, search, single) use a right sidebar with search, random articles (Content Views), and a tag cloud. Static pages keep the parent's full-width layout.
Author: CityMSP
Template: twentytwentyfive
Version: 1.11.7
Requires at least: 6.7
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shsatsunset-child
*/

/* Loaded by functions.php: Twenty Twenty-Five enqueues only the parent's stylesheet.
   Colours come from the palette in theme.json (dark yellow and brown). */

/* A little breathing room between the article list and the sidebar. */
.shsat-blog .wp-block-columns {
  gap: 3rem;
}

/* FAQ page (Ultimate FAQs): each question is a card; answers open on click. */
.ewd-ufaq-expand-collapse-div {
  margin-bottom: var(--wp--preset--spacing--20);
  text-align: right;
}
.ewd-ufaq-expand-all,
.ewd-ufaq-collapse-all {
  color: var(--wp--preset--color--accent-3);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
}
.ewd-ufaq-faqs .ewd-ufaq-faq-div {
  margin: 0 0 var(--wp--preset--spacing--20);
  padding: 0;
  background: var(--wp--preset--color--base);
  border: 1px solid #e3e0d8;
  border-radius: 8px;
}
.ewd-ufaq-faq-div .ewd-ufaq-faq-title a.ewd-ufaq-post-margin {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
}
.ewd-ufaq-faq-div .ewd-ufaq-faq-title a.ewd-ufaq-post-margin:hover h4 {
  color: var(--wp--preset--color--accent-3);
}
.ewd-ufaq-faq-div .ewd-ufaq-faq-title .ewd-ufaq-post-margin-symbol {
  flex: none;
  float: none;
  margin: 0;
  padding: 0;
  color: var(--wp--preset--color--accent-3);
}
.ewd-ufaq-faq-div .ewd-ufaq-faq-title .ewd-ufaq-post-margin-symbol span {
  font-size: 1.4rem;
}
.ewd-ufaq-faq-div .ewd-ufaq-faq-title-text {
  flex: 1;
  float: none;
  width: auto;
}
.ewd-ufaq-faq-div .ewd-ufaq-faq-title h4 {
  display: block;
  margin: 0 !important;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 600;
  line-height: 1.35;
}
.ewd-ufaq-faq-div .ewd-ufaq-faq-title .ewd-ufaq-clear {
  display: none;
}
/* The answer lines up with the question text, not the toggle. */
.ewd-ufaq-faq-div .ewd-ufaq-faq-body {
  padding: 0 1.25rem 1.25rem calc(1.25rem + 1.4rem + 0.9rem);
}
.ewd-ufaq-faq-div .ewd-ufaq-faq-post > :first-child {
  margin-top: 0;
}
.ewd-ufaq-faq-div .ewd-ufaq-faq-body img {
  max-width: 100%;
  height: auto;
}
.ewd-ufaq-faq-div .ewd-ufaq-permalink,
.ewd-ufaq-faq-div .ewd-ufaq-back-to-top {
  display: inline-block;
  margin: 1.25rem 1.5rem 0 0;
  font-size: var(--wp--preset--font-size--small);
}
.ewd-ufaq-faq-div .ewd-ufaq-permalink a,
.ewd-ufaq-faq-div .ewd-ufaq-back-to-top-link {
  color: var(--wp--preset--color--accent-4);
}
.ewd-ufaq-faq-div .ewd-ufaq-permalink-image {
  display: none;
}
@media (max-width: 600px) {
  .ewd-ufaq-faq-div .ewd-ufaq-faq-title a.ewd-ufaq-post-margin {
    gap: 0.6rem;
    padding: 0.9rem 1rem;
  }
  .ewd-ufaq-faq-div .ewd-ufaq-faq-body {
    padding: 0 1rem 1rem;
  }
}

/* Parts of an answer. The classes are in the FAQ entries' markup; the wording is untouched. */
.ewd-ufaq-faq-post .faq-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--wp--preset--color--accent-3);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.ewd-ufaq-faq-post .faq-label em {
  font-style: normal;
}
/* Short answer: the takeaway, boxed. */
.ewd-ufaq-faq-post .faq-short {
  padding: 1rem 1.25rem;
  background: var(--wp--preset--color--gold-tint);
  border-left: 4px solid var(--wp--preset--color--accent-3);
  border-radius: 0 8px 8px 0;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 500;
  line-height: 1.45;
}
.ewd-ufaq-faq-post .faq-long {
  margin-top: var(--wp--preset--spacing--40);
}
/* Key point: keeps the author's colour, adds a bar in the same colour. */
.ewd-ufaq-faq-post .faq-key {
  padding-left: 1rem;
  border-left: 4px solid currentColor;
}
/* The argument the answer is responding to. */
.ewd-ufaq-faq-post .faq-objection {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--wp--preset--color--accent-5);
  border: 0;
  border-left: 4px solid var(--wp--preset--color--accent-4);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.ewd-ufaq-faq-post .faq-objection p {
  margin: 0;
}
/* Sub-headings inside an answer. */
.ewd-ufaq-faq-post .faq-subhead,
.ewd-ufaq-faq-post h2 {
  display: block;
  margin: 1.75rem 0 0.5rem;
  font-size: var(--wp--preset--font-size--large);
  font-weight: 700;
  line-height: 1.35;
}
.ewd-ufaq-faq-post .faq-subhead + br,
.ewd-ufaq-faq-post .faq-subhead + br + br {
  display: none;
}
/* Sources and references. */
.ewd-ufaq-faq-post .faq-source,
.ewd-ufaq-faq-post .faq-ref {
  color: var(--wp--preset--color--accent-4);
  font-size: var(--wp--preset--font-size--small);
  overflow-wrap: anywhere;
}
.ewd-ufaq-faq-post .faq-ref {
  margin: 0.4rem 0;
  padding-left: 1.5em;
  text-indent: -1.5em;
}
/* Lists: room between points, tighter sub-points. */
.ewd-ufaq-faq-post ol > li {
  margin-bottom: 0.75rem;
}
.ewd-ufaq-faq-post ol ol {
  margin-top: 0.35rem;
}
.ewd-ufaq-faq-post ol ol > li {
  margin-bottom: 0.35rem;
}
.ewd-ufaq-faq-post p:empty {
  display: none;
}

/* The FAQ page's title is stored as "faq"; show it as "FAQ". */
.page-id-202 .wp-block-post-title {
  text-transform: uppercase;
}

/* Links in posts and pages: dark yellow (accent-3), with an underline that firms up on hover. Navigation,
   sidebar titles, the tag cloud and buttons keep their own styles. */
.wp-block-post-content a:where(:not(.wp-element-button, .wp-block-button__link)),
.wp-block-post-terms a {
  color: var(--wp--preset--color--accent-3);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.wp-block-post-content a:where(:not(.wp-element-button, .wp-block-button__link)):hover,
.wp-block-post-terms a:hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}
.wp-block-post-content a:focus-visible,
.wp-block-post-terms a:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-3);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Block quotes (block-editor and classic): a slate panel with a dark yellow bar and quotation mark. */
.wp-block-post-content blockquote,
.wp-block-quote {
  position: relative;
  box-sizing: border-box; /* classic blockquotes are content-box: padding would widen them */
  margin-right: 0;
  margin-left: 0;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  background: var(--wp--preset--color--slate-mist); /* cool, so quotes stand apart from the yellow */
  border: 0;
  border-left: 4px solid var(--wp--preset--color--accent-3);
  border-radius: 0 8px 8px 0;
}
.wp-block-post-content blockquote:not(.faq-objection)::before,
.wp-block-quote:not(.faq-objection)::before {
  content: "\201C" / "";
  position: absolute;
  top: 0.4rem;
  left: 0.9rem;
  color: var(--wp--preset--color--accent-3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1;
}
.wp-block-post-content blockquote > :first-child,
.wp-block-quote > :first-child {
  margin-top: 0;
}
.wp-block-post-content blockquote > :last-child,
.wp-block-quote > :last-child {
  margin-bottom: 0;
}
.wp-block-post-content blockquote cite,
.wp-block-quote cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--wp--preset--color--accent-4);
  font-size: var(--wp--preset--font-size--small);
  font-style: normal;
}
@media (max-width: 600px) {
  .wp-block-post-content blockquote,
  .wp-block-quote {
    padding: 1rem 1rem 1rem 2.75rem;
  }
  .wp-block-post-content blockquote:not(.faq-objection)::before,
  .wp-block-quote:not(.faq-objection)::before {
    left: 0.6rem;
    font-size: 2.75rem;
  }
}

/* The sidebar's "Random Articles" (1.9.1, a core Query Loop): titles only, as the Content Views
   list had them. */
.shsat-random-articles .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.shsat-random-articles .wp-block-post-template > li + li {
	margin-top: 0.75em;
}

.shsat-random-articles .shsat-random-articles__title {
	margin: 0;
	font-size: inherit;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
}

.shsat-random-articles .shsat-random-articles__title a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.shsat-random-articles .shsat-random-articles__title a:hover,
.shsat-random-articles .shsat-random-articles__title a:focus-visible {
	text-decoration: underline;
}

/* 1.10.4: each title is followed by the post's month, "yyyy/mm": smaller, italic, not bold, in
   the muted colour the site uses for post dates (accent-4). 1.10.5: always at the end of the
   title's last line, never on a line of its own. The title's link is inline here (core makes it
   inline-block, which put the date under any title longer than a line); each item keeps 3.75em
   free on the right, and the date's negative right margin lets it into that space, so it fits
   after the last word however full the line is. */
.shsat-random-articles .wp-block-post-template > li {
	padding-right: 0;
}

.shsat-random-articles .shsat-random-articles__title,
.shsat-random-articles .shsat-random-articles__title a,
.shsat-random-articles .shsat-random-articles__date {
	display: inline;
}

.shsat-random-articles .shsat-random-articles__date {
	margin: 0;
	font-size: 0.7em;
	font-style: italic;
	font-weight: 400;
	color: var(--wp--preset--color--accent-4);
	white-space: nowrap;
}

/* The sidebar's section headings, "Random Articles" (1.10.5) and "Tags" (1.10.6): bold and
   larger, over the site's gold rule, so the bold article titles under them don't outweigh them. */
.shsat-sidebar-heading {
	padding-bottom: 0.35em;
	border-bottom: 3px solid var(--wp--preset--color--accent-1);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
}

/* Tables in posts and pages (1.9.3): the core table block's look, also for tables written into
   classic content, where the block's own stylesheet doesn't load. These were Ninja Tables until
   2026-10-20. Wide tables scroll sideways on a phone. */
.wp-block-table {
	margin: 1.5em 0;
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.45em 0.5em;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	text-align: left;
	vertical-align: top;
	/* Words break only where a dictionary hyphenates them: the site's word-break: break-word
	   would squeeze a column to a letter wide. */
	overflow-wrap: normal;
	word-break: normal;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.wp-block-table thead {
	border-bottom: 2px solid color-mix(in srgb, currentColor 60%, transparent);
}

.wp-block-table th {
	font-weight: 700;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: color-mix(in srgb, currentColor 5%, transparent);
}

/* On a phone a table scrolls sideways at a readable width rather than squeezing each column. */
@media (max-width: 600px) {
	.wp-block-table table {
		min-width: 34em;
	}
}

/* Footer site map (1.10.7, parts/footer.html): every page by section, sub-pages indented under
   theirs with a thin rule, no bullets. Columns come from the group's grid layout. */
.shsat-sitemap ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.shsat-sitemap li {
	margin: 0.35em 0;
}

.shsat-sitemap ul ul {
	margin: 0.35em 0 0.6em 0.2em;
	padding-left: 0.9em;
	border-left: 2px solid var(--wp--preset--color--accent-2);
}

.shsat-sitemap__label {
	margin-bottom: 0.5em;
	color: var(--wp--preset--color--accent-3);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Header and footer bands (1.10.11): a light background sets them apart from the page. The
   template parts span the full width; their own groups keep the content's padding. */
header.wp-block-template-part,
footer.wp-block-template-part {
	background-color: var(--wp--preset--color--accent-5);
}

/* /history/ year headings (1.10.15): the year as a dark yellow pill, then a short label, in one
   h2 (class shsat-year). The pill is the editor's own highlight format (a <mark>), rounded here. */
.wp-block-heading.shsat-year mark {
	display: inline-block;
	margin-right: 0.35em;
	padding: 0.1em 0.6em;
	border-radius: 999px;
	line-height: 1.2;
}

/* The "↑ All years" link beside a labelled year heading stays on one line on a phone (1.10.16). */
.wp-block-group:has(> .wp-block-heading.shsat-year) > p {
	white-space: nowrap;
}

/* /history/ contents (1.10.17): each year and its title, one per line, no bullets; the year bold. */
.wp-block-list.shsat-year-toc {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.wp-block-list.shsat-year-toc li {
	margin: 0.3em 0;
}

/* The theme's body text is weight 300, so <strong> only reaches 400; the contents' years need more. */
.wp-block-list.shsat-year-toc strong {
	font-weight: 700;
}

/* 1.10.20: the source and date at 0.7em (were 0.8em). 1.10.19: the date block holds the source's domain too, "nytimes.com · 2019/03", kept together
   (nowrap, above). It ends the title's last line when it fits, else starts the next one; the
   3.75em reserve and negative margin of 1.10.5 no longer fit it. */

/* The sidebar's "Tags" heading links to the Tags page (1.10.19); it keeps the heading's look. */
.shsat-sidebar-heading a {
	color: inherit;
	text-decoration: none;
}

.shsat-sidebar-heading a:hover,
.shsat-sidebar-heading a:focus-visible {
	text-decoration: underline;
}

/* The Tags page ([shsat_tag_index], 1.10.19): names and counts in columns, the count muted. */
.shsat-tag-index {
	columns: 2 12em;
	column-gap: 2em;
	margin: 1.5em 0 0;
	padding: 0;
	list-style: none;
}

.shsat-tag-index li {
	margin: 0 0 0.4em;
	break-inside: avoid;
}

.shsat-tag-index__count {
	font-size: 0.85em;
	color: var(--wp--preset--color--accent-4);
}

/* The 404 page (1.11.0: templates/404.html, patterns/404.php). One column at the content width;
   the cards of the main pages wider, three across on a wide screen, one on a phone. */

/* 1.11.2: the heading. A badge (a page with a question mark) beside "Error 404" and a large,
   heavy "Page not found"; on a phone the badge sits above them. */
/* 1.11.5: "Error 404", the icon and "Page not found" are one size, the title's
   (--shsat-404-size); the icon is 1em of it. 1.11.6: no circle around the icon. */
.shsat-404 .shsat-404__header {
	--shsat-404-size: clamp(2.5rem, 2rem + 3vw, 4rem);
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.shsat-404__badge {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--accent-3);
	font-size: var(--shsat-404-size);
}

.shsat-404__badge .shsat-404__icon {
	width: 1em;
	height: 1em;
}

.shsat-404 .shsat-404__titles > * {
	margin: 0;
}

/* 1.11.4: "Error 404" in large, heavy Dark Yellow capitals, with no background (1.11.3 had it
   as a pill); the badge's circle has no fill either (1.11.6: no circle at all). */
/* 1.11.7: "Error 404" in red, the practice tests' red for a wrong answer (--shsat-wrong, 5.6:1 on white). */
.shsat-404 .shsat-404__status {
	color: #c62828;
	font-size: var(--shsat-404-size);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.05;
	text-transform: uppercase;
}

.shsat-404 .shsat-404__title {
	margin-top: 0.1em;
	color: var(--wp--preset--color--contrast);
	font-size: var(--shsat-404-size);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

@media (max-width: 600px) {
	.shsat-404 .shsat-404__header {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
}

.shsat-404__lead {
	font-size: var(--wp--preset--font-size--large);
}

.shsat-404__path {
	padding: 0.1em 0.35em;
	border-radius: 4px;
	background: var(--wp--preset--color--accent-5);
	font-size: 0.85em;
	overflow-wrap: anywhere;
}

.shsat-404 .shsat-404__heading {
	margin-top: var(--wp--preset--spacing--50);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
}

.shsat-404__suggestions {
	padding: 0;
	list-style: none;
}

.shsat-404__suggestions li + li {
	margin-top: 0.75em;
}

.shsat-404__suggestions a {
	font-weight: 600;
}

.shsat-404__find {
	display: flex;
	gap: 0.5em;
	align-items: center;
}

.shsat-404__find .shsat-404__icon {
	flex: none;
	color: var(--wp--preset--color--accent-3);
}

.shsat-404__meta {
	font-size: 0.8em;
	font-style: italic;
	color: var(--wp--preset--color--accent-4);
	white-space: nowrap;
}

.shsat-404 .shsat-404__popular.alignwide {
	max-width: min(var(--wp--style--global--wide-size), 62rem);
}

.shsat-404__pages {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1rem;
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
}

.shsat-404__card {
	position: relative;
	margin: 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--accent-2);
	border-left: 4px solid var(--wp--preset--color--accent-1);
	border-radius: 8px;
	background: var(--wp--preset--color--accent-5);
}

.shsat-404__card a {
	display: flex;
	gap: 0.5em;
	align-items: center;
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

/* The whole card is the link's target. */
.shsat-404__card a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 8px;
}

.shsat-404__card a .shsat-404__icon {
	flex: none;
	color: var(--wp--preset--color--accent-3);
}

.shsat-404__card:hover {
	border-color: var(--wp--preset--color--accent-1);
}

.shsat-404__card:hover a span {
	text-decoration: underline;
}

.shsat-404__card:focus-within {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 2px;
}

.shsat-404__card a:focus-visible {
	outline: none;
}

.shsat-404__card p {
	margin: 0.4em 0 0;
	font-size: 0.9em;
	line-height: 1.45;
	color: var(--wp--preset--color--accent-4);
}

.shsat-404 .shsat-404__report {
	margin-top: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--accent-4);
}
