/* Open portal styles. Same custom properties as the closed portal (client/closedportal/
   tailwind/input.css), so the per-portal colours from /gotroot/portal work here too.
   Hand-written on purpose: the Tailwind CLI is not available on the workstation. */
:root {
	--color-ink: #12233D;
	--color-paper: #F7F8FA;
	--color-seal: #C08A2E;
	--color-slate: #5B6B7C;
	--color-success: #1F7A5C;
	--color-danger: #B23A34;
	--font-display: "Archivo", sans-serif;
	--font-sans: "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.55;
}
h1, h2, h3, legend { font-family: var(--font-display); color: var(--color-ink); line-height: 1.2; }
h1 { font-size: 1.75rem; margin: 0 0 .75rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
a { color: var(--color-ink); }
a:hover { color: var(--color-seal); }
p.lead { font-size: 1.05rem; color: var(--color-slate); }
small, .muted { color: var(--color-slate); }

.site-header { background: #fff; border-bottom: 1px solid rgba(91, 107, 124, .15); }
.site-header .bar { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.site-header img { max-height: 2.25rem; max-width: 170px; width: auto; object-fit: contain; }
.site-nav { display: flex; gap: 1.25rem; font-size: .9rem; font-weight: 500; }
.site-nav a { text-decoration: none; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.card { background: #fff; border: 1px solid rgba(91, 107, 124, .15); border-radius: .75rem; padding: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; }
legend { font-size: 1.05rem; margin-bottom: .5rem; padding: 0; }
.field { margin-bottom: 1rem; }
.field-label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .25rem; }
input[type="text"], input[type="email"], textarea, select {
	width: 100%; padding: .55rem .75rem; font: inherit; color: inherit;
	background: #fff; border: 1px solid rgba(91, 107, 124, .35); border-radius: .5rem;
}
input:disabled, textarea:disabled { background: rgba(91, 107, 124, .08); color: var(--color-slate); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--color-seal); outline-offset: 1px; }
textarea { min-height: 6rem; }
.has-danger input, .has-danger textarea { border-color: var(--color-danger); }

.btn-primary, .btn-secondary {
	display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem;
	font: inherit; font-weight: 500; border-radius: .5rem; border: 1px solid transparent;
	cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--color-ink); color: var(--color-paper); }
.btn-primary:hover { opacity: .9; color: var(--color-paper); }
.btn-secondary { background: #fff; border-color: rgba(91, 107, 124, .25); color: var(--color-ink); }

.alert { border-radius: .5rem; padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid; }
.alert-warning { background: rgba(192, 138, 46, .08); border-color: rgba(192, 138, 46, .4); }
.alert-success { background: rgba(31, 122, 92, .08); border-color: rgba(31, 122, 92, .4); }
.alert ul { margin: 0; padding-left: 1.1rem; }

table.data { width: 100%; border-collapse: collapse; }
table.data td, table.data th { text-align: left; vertical-align: top; padding: .4rem .5rem .4rem 0; }
.profile-list { list-style: none; margin: 0; padding: 0; }
.profile-list li { padding: .45rem 0; border-bottom: 1px solid rgba(91, 107, 124, .12); }
.profile-list label { display: grid; grid-template-columns: 1.25rem 1fr; gap: .5rem; align-items: start; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.tabs button { font: inherit; padding: .45rem .9rem; border-radius: .5rem; border: 1px solid rgba(91, 107, 124, .25); background: #fff; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.site-footer { border-top: 1px solid rgba(91, 107, 124, .15); background: #fff; }
.site-footer .bar { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1.5rem; font-size: .85rem; color: var(--color-slate); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
