﻿/*
Theme Name: RAMS
Description: Presentation-only Hello Elementor child theme for the RAMS multisite.
Author: Orion Creative
Update URI: https://orioncreative.com.au/rams-theme
Template: hello-elementor
Version: 0.2.3
Requires at least: 6.8
Requires PHP: 7.4
Text Domain: rams
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

:root {
	--rams-shell-navy: #08243f;
	--rams-shell-deep-navy: #03101d;
	--rams-shell-blue: #0056a7;
	--rams-shell-orange: #ec8205;
	--rams-shell-white: #fff;
	--rams-shell-light-grey: #f7f7f7;
	--rams-shell-border: #e5e7eb;
	--rams-shell-text: #474747;
	--rams-shell-content: 77.5rem;
	--rams-z-skip-link: 100;
	--rams-font-display: "asfalto", "vinyl", sans-serif;
	--rams-font-body: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
	max-inline-size: 100%;
	overflow-x: clip;
	scroll-padding-block-start: 1rem;
}

body.rams-theme {
	max-inline-size: 100%;
	overflow-x: clip;
	font-family: var(--rams-font-body);
	background: var(--rams-shell-light-grey);
	color: var(--rams-shell-text);
}

body.rams-theme :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--rams-shell-orange);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--rams-shell-deep-navy);
}

body.rams-theme :where(input:not([type="submit"]):not([type="button"]):not([type="reset"]), select, textarea):focus-visible {
	outline: 2px solid var(--rams-shell-blue);
	outline-offset: 0;
	box-shadow: none;
}

.rams-skip-link {
	position: fixed;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	z-index: var(--rams-z-skip-link);
	padding: 0.75rem 1rem;
	transform: translateY(calc(-100% - 2rem));
	background: var(--rams-shell-white);
	color: var(--rams-shell-deep-navy);
	font-weight: 700;
	text-decoration: none;
}

.rams-skip-link:focus {
	transform: translateY(0);
}

.rams-fallback-header,
.rams-fallback-footer {
	background: var(--rams-shell-deep-navy);
	color: var(--rams-shell-white);
}

.rams-fallback-header__inner,
.rams-fallback-footer__inner,
.rams-site-main > .rams-fallback-content {
	width: min(var(--rams-shell-content), calc(100% - 2rem));
	margin-inline: auto;
}

.rams-fallback-header__inner,
.rams-fallback-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-block: 1rem;
}

.rams-fallback-branding {
	min-inline-size: 0;
}

.rams-fallback-branding__name {
	margin: 0;
	font-family: var(--rams-font-display);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
}

.rams-fallback-branding__name a,
.rams-fallback-navigation a,
.rams-fallback-footer a {
	color: inherit;
}

.rams-fallback-branding__description,
.rams-fallback-footer p {
	margin: 0.35rem 0 0;
}

.rams-fallback-navigation ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rams-fallback-navigation li {
	min-inline-size: 0;
}

.rams-fallback-navigation a {
	display: block;
	padding-block: 0.65rem;
	font-weight: 700;
	overflow-wrap: anywhere;
	text-decoration-thickness: 0.125em;
	text-underline-offset: 0.2em;
}

.rams-fallback-navigation .sub-menu {
	padding-inline-start: 1rem;
}

.rams-site-main {
	min-inline-size: 0;
}

.rams-site-main > .rams-fallback-content {
	padding-block: clamp(2rem, 6vw, 5rem);
}

.rams-fallback-content :where(h1, h2, h3) {
	text-wrap: balance;
}

.rams-fallback-content__header > h1,
.rams-fallback-entry > .entry-title {
	color: var(--rams-shell-navy);
}

.rams-fallback-content :where(p, li) {
	overflow-wrap: break-word;
	text-wrap: pretty;
}

.rams-fallback-content .entry-content a:not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.15em;
}

.rams-fallback-content__header,
.rams-fallback-entry,
.rams-fallback-empty,
.rams-pagination {
	max-inline-size: 72ch;
	margin-inline: auto;
}

.rams-fallback-entry + .rams-fallback-entry {
	margin-block-start: 3rem;
	padding-block-start: 3rem;
	border-block-start: 1px solid var(--rams-shell-border);
}

.rams-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	margin-block-start: 3rem;
}

body.rams-theme :where(img, picture, video, canvas, svg, iframe) {
	max-inline-size: 100%;
	height: auto;
}

body.rams-theme :where(input, select, textarea, button) {
	max-inline-size: 100%;
}

body.rams-theme :where(pre, code) {
	overflow-wrap: anywhere;
}

body.rams-theme table {
	display: block;
	max-inline-size: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rams-standard-content-page__content {
	min-inline-size: 0;
	margin-inline: auto;
	max-width: 72rem;
}

.rams-standard-content-page__content > :first-child {
	margin-top: 0;
}

.rams-standard-content-page__content > :last-child {
	margin-bottom: 0;
}


@media (max-width: 48rem) {
	.rams-fallback-header__inner,
	.rams-fallback-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.rams-fallback-navigation,
	.rams-fallback-navigation ul {
		width: 100%;
	}

	.rams-fallback-navigation ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.rams-fallback-navigation .sub-menu {
		display: block;
		position: static;
		padding-inline-start: 1rem;
	}

}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}


