/* GAU SIP Directory — scoped to .gau-sip so it does not affect the theme */
.gau-sip {
	--gau-dark: #1e4d2b;
	--gau-green: #2e7d32;
	--gau-gold: #c9a227;
	--gau-tint: #eef4ea;
	/* width and horizontal alignment come from the theme's content area */
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	font-size: 16px;
	line-height: 1.5;
}
.gau-sip .gau-sip-title { margin: 0 0 .6em; color: var(--gau-dark); }
.gau-sip .gau-sip-label { display: block; font-weight: 600; margin-bottom: .35em; color: var(--gau-dark); }
.gau-sip .gau-sip-row { display: flex; gap: .5em; flex-wrap: wrap; }
.gau-sip .gau-sip-input {
	flex: 1 1 260px; min-width: 0; padding: .65em .8em; font-size: 1em;
	border: 2px solid var(--gau-gold); border-radius: 6px; background: #fffdf5; color: #1f2a1f; box-sizing: border-box;
}
.gau-sip .gau-sip-input:focus { outline: 3px solid rgba(201, 162, 39, .35); outline-offset: 1px; }
.gau-sip .gau-sip-button {
	padding: .65em 1.4em; font-size: 1em; font-weight: 600; cursor: pointer;
	background: var(--gau-green); color: #fff; border: 0; border-radius: 6px;
}
.gau-sip .gau-sip-button:hover, .gau-sip .gau-sip-button:focus { background: var(--gau-dark); }
.gau-sip .gau-sip-status { margin: .6em 0; min-height: 1.5em; color: #4a564a; font-size: .95em; }
.gau-sip .gau-sip-login { padding: .8em 1em; background: var(--gau-tint); border-radius: 6px; }

.gau-sip .gau-sip-table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95em; }
.gau-sip .gau-sip-table th {
	background: var(--gau-dark); color: #fff; text-align: left; padding: .55em .7em; font-weight: 600; border: 1px solid var(--gau-dark);
}
.gau-sip .gau-sip-table td { padding: .5em .7em; border: 1px solid #d5dfd0; vertical-align: top; color: #1f2a1f; }
.gau-sip .gau-sip-table tbody tr:nth-child(even) td { background: #f6faf4; }
.gau-sip .gau-sip-table td.gau-sip-number {
	font-weight: 700; font-size: 1.15em; color: #1b5e20; background: #d8efd3 !important; text-align: center; white-space: nowrap;
}
.gau-sip .gau-sip-table td.gau-sip-number.is-empty { font-weight: 400; font-size: .9em; color: #8a6d00; background: #fff4d6 !important; }
.gau-sip mark { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }

/* Phones: one card per person */
@media (max-width: 600px) {
	.gau-sip .gau-sip-table thead { display: none; }
	.gau-sip .gau-sip-table, .gau-sip .gau-sip-table tbody, .gau-sip .gau-sip-table tr, .gau-sip .gau-sip-table td { display: block; width: 100%; box-sizing: border-box; }
	.gau-sip .gau-sip-table tr { margin-bottom: .8em; border: 1px solid #d5dfd0; border-radius: 6px; overflow: hidden; }
	.gau-sip .gau-sip-table td { border: 0; border-bottom: 1px solid #e6ede3; text-align: left !important; }
	.gau-sip .gau-sip-table td::before {
		content: attr(data-label); display: block; font-size: .78em; font-weight: 600; color: #5a665a; text-transform: uppercase; letter-spacing: .03em;
	}
}

/* ---------- Menu icon ---------- */
.gau-sip-icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
a.gau-sip-open { display: inline-flex; align-items: center; gap: .35em; cursor: pointer; }
.gau-sip-menu-item .gau-sip-menu-text {   /* icon only; the text is for screen readers */
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.gau-sip-icon-button {
	display: inline-flex; align-items: center; gap: .35em; padding: .4em; margin: 0; cursor: pointer;
	background: transparent; border: 0; color: inherit; font: inherit; line-height: 1;
}
.gau-sip-icon-button:hover .gau-sip-icon, a.gau-sip-open:hover .gau-sip-icon { opacity: .75; }

/* ---------- Pop-up ---------- */
html.gau-sip-modal-open { overflow: hidden; }
.gau-sip-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; }
.gau-sip-modal[hidden] { display: none; }
.gau-sip-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 18, .55); }
.gau-sip-dialog {
	position: relative; width: 100%; max-width: 760px; max-height: 88vh; overflow: auto;
	background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); padding: 22px 24px 18px;
}
.gau-sip-dialog .gau-sip { margin: 0; }
.gau-sip-dialog .gau-sip-title { padding-right: 2em; font-size: 1.3em; }
.gau-sip-close {
	position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: #eef4ea; color: #1e4d2b; font-size: 24px; line-height: 1; cursor: pointer;
}
.gau-sip-close:hover, .gau-sip-close:focus { background: #d8efd3; }
@media (max-width: 600px) {
	.gau-sip-modal { padding: 0; }
	.gau-sip-dialog { max-width: none; max-height: 100vh; height: 100%; border-radius: 0; padding: 18px 16px; }
}

/* ---------- Keep the plugin's buttons looking the same in every theme ---------- */
.gau-sip .gau-sip-button,
.gau-sip .gau-sip-button:hover,
.gau-sip .gau-sip-button:focus {
	background: var(--gau-green) !important; color: #fff !important; border: 0 !important; border-radius: 6px !important;
	padding: .65em 1.4em !important; font-size: 1em !important; font-weight: 600 !important; line-height: 1.2 !important;
	text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; width: auto !important; min-height: 0 !important;
}
.gau-sip .gau-sip-button:hover, .gau-sip .gau-sip-button:focus { background: var(--gau-dark) !important; }
.gau-sip-modal .gau-sip-close,
.gau-sip-modal .gau-sip-close:hover,
.gau-sip-modal .gau-sip-close:focus {
	display: flex !important; align-items: center !important; justify-content: center !important;
	width: 36px !important; height: 36px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50% !important; background: #eef4ea !important; color: #1e4d2b !important;
	font-size: 24px !important; font-weight: 400 !important; line-height: 1 !important; box-shadow: none !important; text-decoration: none !important;
}
.gau-sip-modal .gau-sip-close:hover, .gau-sip-modal .gau-sip-close:focus { background: #d8efd3 !important; }
.gau-sip-modal .gau-sip-close:focus-visible { outline: 2px solid #c9a227 !important; outline-offset: 2px; }
.gau-sip .gau-sip-input { box-shadow: none !important; }
.gau-sip-icon-button, .gau-sip-icon-button:hover, .gau-sip-icon-button:focus {
	background: transparent !important; border: 0 !important; color: inherit !important; box-shadow: none !important; padding: .4em !important; width: auto !important;
}
