/*
Theme Name:   Levant Peptides
Theme URI:    https://example.com/
Description:  Child theme of Twenty Twenty-Five for Levant Peptides.
Author:       Levant Peptides
Author URI:   https://example.com/
Template:     twentytwentyfive
Version:      1.0.1
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  twentytwentyfive-child
*/

/* ------------------------------------------------------------------
   Almost everything visual lives in theme.json. This file is only for
   the handful of things theme.json can't express.
   ------------------------------------------------------------------ */


/* Specimen label -----------------------------------------------------
   The signature treatment. Apply to any block holding a compound
   identifier: name, CAS number, purity, molecular formula, mass.
   In the editor: select a block, Advanced > Additional CSS class(es),
   enter  specimen
   -------------------------------------------------------------------- */

.specimen {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--slate);
	border-top: 2px solid var(--wp--preset--color--moss);
	padding-top: var(--wp--preset--spacing--20);
}

/* Key/value rows inside a specimen block. Use a two-column Columns
   block, or a definition list, and the rule below keeps them aligned. */
.specimen dl,
.specimen .wp-block-columns {
	display: grid;
	grid-template-columns: minmax(8rem, 12rem) 1fr;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	margin: 0;
}

.specimen > .wp-block-table {
	margin-block: 0;
}

/* When the specimen sits alone as a card (hero, sidebar), give it a frame. */
.wp-block-column > .specimen,
.specimen.is-framed {
	background-color: #FFFFFF;
	border: 1px solid var(--wp--preset--color--line);
	border-top-color: var(--wp--preset--color--moss);
	border-top-width: 3px;
	padding: var(--wp--preset--spacing--40);
}

.specimen dt {
	color: var(--wp--preset--color--slate);
}

.specimen dd {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}


/* Research-use notice -------------------------------------------------
   Class:  ruo-notice
   Meant for the standing "for research use only" statement. Deliberately
   plain — a notice that looks like an ad gets ignored.
   -------------------------------------------------------------------- */

.ruo-notice {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--signal);
	border-left-width: 3px;
	padding: var(--wp--preset--spacing--30);
}


/* Hairline data tables ------------------------------------------------ */

.wp-block-table.is-style-hairline table {
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-table.is-style-hairline th {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--slate);
	text-align: left;
}

.wp-block-table.is-style-hairline th,
.wp-block-table.is-style-hairline td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) var(--wp--preset--spacing--20) 0;
}

/* Numerals line up in columns — matters for purity and mass figures. */
.wp-block-table.is-style-hairline td {
	font-variant-numeric: tabular-nums;
}


/* Quality floor ------------------------------------------------------- */

:where(a:focus-visible),
:where(button:focus-visible),
:where(input:focus-visible),
:where(select:focus-visible),
:where(textarea:focus-visible) {
	outline: 2px solid var(--wp--preset--color--moss-deep);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}


/* Header --------------------------------------------------------------
   Two tiers: a light masthead (logo, search, utility links) above a
   solid nav bar. Add class  lockup  to hide the duplicate text title.
   -------------------------------------------------------------------- */

.lockup .wp-block-site-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wp-block-site-logo img {
	display: block;
	height: auto;
}

/* Masthead ------------------------------------------------------------ */

.masthead .wp-block-site-logo {
	margin-block: 0;
	flex-shrink: 0;
}

.masthead .wp-block-site-logo img {
	display: block;
	width: auto;
	max-width: 240px;
	max-height: 58px;
}

@media (max-width: 782px) {
	.masthead .wp-block-site-logo img {
		max-width: 180px;
		max-height: 44px;
	}
}

.masthead__search {
	flex: 1 1 22rem;
	max-width: 34rem;
	margin-block: 0;
}

.masthead__search .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 2px;
	background-color: #FFFFFF;
	padding: 2px;
}

.masthead__search .wp-block-search__input {
	border: 0;
	background: transparent;
	font-family: var(--wp--preset--font-family--plex-sans);
	font-size: var(--wp--preset--font-size--small);
	padding: 0.5rem 0.75rem;
}

.masthead__search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--slate);
}

.masthead__search .wp-block-search__button {
	background-color: var(--wp--preset--color--moss-deep);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 2px;
	padding: 0.5rem 0.75rem;
}

.masthead__utility p {
	margin-block: 0;
}

.masthead__utility a {
	color: var(--wp--preset--color--slate);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.masthead__utility a:hover {
	color: var(--wp--preset--color--moss-deep);
}

/* Nav bar -------------------------------------------------------------- */

.navbar .wp-block-navigation a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
	padding-bottom: 3px;
	border-bottom: 2px solid transparent;
}

.navbar .wp-block-navigation a:hover {
	border-bottom-color: rgba(255, 255, 255, 0.45);
}

.navbar .wp-block-navigation .current-menu-item a,
.navbar .wp-block-navigation .current_page_item a {
	border-bottom-color: var(--wp--preset--color--moss);
}

.navbar__cart {
	margin-block: 0;
}

.navbar__cart a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 2px;
	padding: 0.35rem 0.7rem;
	letter-spacing: 0.04em;
}

.navbar__cart a:hover {
	border-color: var(--wp--preset--color--moss);
}

/* The nav bar collapses to a hamburger on small screens; keep the cart
   from wrapping onto its own line before that happens. */
@media (max-width: 600px) {
	.masthead__utility {
		display: none;
	}
}


/* Process stages ------------------------------------------------------
   Numbered because these genuinely happen in order. A hairline rail runs
   above each stage so the three read as one sequence rather than three
   unrelated cards.
   -------------------------------------------------------------------- */

.stage {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: var(--wp--preset--spacing--30);
}

.stage__num {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--moss);
	margin-block: 0 var(--wp--preset--spacing--20);
}

.stage h3 {
	margin-block: 0 var(--wp--preset--spacing--20);
}


/* FAQ accordion -------------------------------------------------------
   Core Details blocks. Native disclosure widget, keyboard accessible,
   works with no JavaScript.
   -------------------------------------------------------------------- */

.faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: var(--wp--preset--spacing--30) 0;
	margin-block: 0;
}

.faq .wp-block-details:first-child {
	border-top: 1px solid var(--wp--preset--color--line);
}

.faq .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	display: flex;
	align-items: baseline;
	gap: var(--wp--preset--spacing--30);
}

.faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.faq .wp-block-details summary::after {
	content: "+";
	margin-left: auto;
	font-family: var(--wp--preset--font-family--plex-mono);
	color: var(--wp--preset--color--moss-deep);
	flex-shrink: 0;
}

.faq .wp-block-details[open] summary::after {
	content: "–";
}

.faq .wp-block-details[open] summary {
	margin-bottom: var(--wp--preset--spacing--20);
}

.faq .wp-block-details p {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
	margin-block: 0;
	max-width: 46em;
}


/* Footer --------------------------------------------------------------- */

.sitefoot__head {
	color: rgba(255, 255, 255, 0.55) !important;
	margin-block: 0 var(--wp--preset--spacing--30);
}

.sitefoot__list {
	list-style: none;
	padding-left: 0;
	margin-block: 0;
	font-size: var(--wp--preset--font-size--small);
}

.sitefoot__list li {
	margin-bottom: var(--wp--preset--spacing--20);
}

.sitefoot a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.sitefoot a:hover {
	color: var(--wp--preset--color--moss);
	text-decoration: underline;
}

/* The logo is dark-on-transparent, so it needs lifting on the dark panel. */
.sitefoot__logo img {
	filter: brightness(0) invert(1);
	opacity: 0.92;
	max-width: 190px;
	height: auto;
}

.sitefoot__badge {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--moss);
	border-radius: 2px;
	padding: 0.3rem 0.6rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-top: var(--wp--preset--spacing--30);
}

.sitefoot__legal p {
	color: rgba(255, 255, 255, 0.6);
	max-width: none;
	line-height: 1.6;
}

.sitefoot__legal strong {
	color: rgba(255, 255, 255, 0.85);
}


/* Specimen values keep their real casing. Only the label column and the
   section head are set in small caps. Chemical formulas and units are
   case-significant — C62H98N16O22 is not the same string as c62h98n16o22,
   and "1419.53 G/MOL" is simply wrong. */

.specimen table td:first-child {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--slate);
	width: 44%;
}

.specimen table td:last-child {
	text-transform: none;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.specimen a {
	text-transform: none;
	letter-spacing: 0;
}
