/*
 * A division's public pieces (the request form, the availability grid, the upcoming list, the renter's private page), 2026-11-24.
 *
 * The Monster brand on a dark page: black, one red action, square corners, Poppins. The plugin's own sheet only lays things out;
 * the colours, edges and corners are here (the skin owns the look), from custom properties so another brand is one block. A day's
 * state in the grid is still shown by its line style and its words, never by colour alone. Loaded only on a division's pages.
 */

body.mskin-div {
	--mskin-div-black: #000000;
	--mskin-div-dark: #101010;
	--mskin-div-raised: #1a1a1a;
	--mskin-div-red: #ed2124;
	--mskin-div-red-fill: #d91f22;
	--mskin-div-red-hover: #c2181c;
	--mskin-div-text: #ffffff;
	--mskin-div-soft: #ddd8d1;
	--mskin-div-muted: #a3a7b3;
	--mskin-div-line: rgba(255, 255, 255, .28);
	--mskin-div-hair: rgba(255, 255, 255, .14);
}

/* A dark page behind the pieces, so white text is never left on a light theme background. */
body.mskin-div,
body.mskin-div #main-content,
body.mskin-div #page-container { background-color: var(--mskin-div-black, #000); }

/* (2026-11-27) A division's headings default to its own face. Low specificity on purpose: a font set on a Divi module still wins,
   so the page stays editable in Divi. */
body.mskin-div :is(h1, h2, h3, h4) { font-family: var(--mskin-div-heading-font, inherit); font-weight: 400; }
body.mskin-div :is(h2, h3, h4) { font-weight: 700; text-transform: uppercase; } /* as Monster's section headings were */

.hl-pub {
	color: var(--mskin-div-text, #fff);
	font-family: Poppins, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

.hl-pub *, .hl-pub *::before, .hl-pub *::after { border-radius: 0 !important; }

/* The division's logo heads its private pages and the form, when the page has a logo to show. */
.hl-pub.hl-request::before,
.hl-pub.hl-form-wrap::before {
	content: "";
	display: block;
	width: min(100%, 220px);
	aspect-ratio: 350 / 150;
	margin: 0 0 14px;
	background: var(--mskin-div-logo, none) left center / contain no-repeat;
}

.hl-pub-h, .hl-pub h1, .hl-pub h2 { font-family: var(--mskin-div-heading-font, inherit); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.hl-pub h2 { font-size: 1.25em; margin: 22px 0 8px; }
.hl-pub-fine { color: var(--mskin-div-soft, #ddd8d1); opacity: 1; }

/* Notes: a hairline box with a red edge on the left; good and bad are told by the words as well. */
.hl-pub-note {
	background: var(--mskin-div-dark, #101010);
	border: 1px solid var(--mskin-div-hair, rgba(255, 255, 255, .14));
	border-left: 5px solid var(--mskin-div-line, #888);
}
.hl-pub-note.is-good { border-left-color: #4cc26e; }
.hl-pub-note.is-bad { border-left-color: var(--mskin-div-red, #ed2124); }

/* Month grid */
.hl-pub-btn { border-color: var(--mskin-div-line); background: var(--mskin-div-dark); color: var(--mskin-div-text); }
a.hl-pub-btn:hover, a.hl-pub-btn:focus { background: var(--mskin-div-raised); }
.hl-pub-cell { background: var(--mskin-div-dark); border-color: var(--mskin-div-line); }
.hl-pub-cell.is-pad { background: transparent; }
a.hl-pub-cell:hover, a.hl-pub-cell:focus { background: var(--mskin-div-raised); outline: 2px solid var(--mskin-div-red); outline-offset: -2px; }
.hl-pub-cell.is-booked { background: #333333; }
/* A booked day is struck through as well as filled, so it never depends on the shade of grey. */
.hl-pub-cell.is-booked .hl-pub-num { text-decoration: line-through; text-decoration-thickness: 2px; }
.hl-pub-cell.is-past { opacity: .65; }
.hl-pub-key.is-booked { background: #333333; }
.hl-pub-cell.is-tentative { border-color: var(--mskin-div-soft); }
.hl-pub-key { border-radius: 0; }

/* The form: fields are black boxes with a clear edge; the one red button is the send. */
.hl-pub-form fieldset { border-color: var(--mskin-div-hair); background: var(--mskin-div-dark); }
.hl-pub-form legend { color: var(--mskin-div-text); }
.hl-pub input[type="text"], .hl-pub input[type="email"], .hl-pub input[type="tel"], .hl-pub input[type="date"], .hl-pub input[type="number"], .hl-pub select, .hl-pub textarea {
	background: var(--mskin-div-black, #000);
	color: var(--mskin-div-text, #fff);
	border: 1px solid var(--mskin-div-line);
	padding: 10px 12px;
	font-family: inherit;
}
.hl-pub input:focus, .hl-pub select:focus, .hl-pub textarea:focus { outline: 2px solid var(--mskin-div-red); outline-offset: 1px; }
.hl-pub input[type="checkbox"] { accent-color: var(--mskin-div-red); }
.hl-pub-err { color: #ff8a8c; }

.hl-pub .hl-pub-go, .hl-pub a.hl-pub-go, .hl-pub button.hl-pub-go {
	background: var(--mskin-div-red-fill, #d91f22);
	color: #fff;
	border: 0;
	padding: 12px 22px;
	font: 600 16px/1.2 Poppins, system-ui, sans-serif;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	display: inline-block;
}
.hl-pub .hl-pub-go:hover, .hl-pub .hl-pub-go:focus { background: var(--mskin-div-red-hover, #c2181c); color: #fff; }

/* Upcoming list and the renter's page */
.hl-pub-ev { border-bottom-color: var(--mskin-div-hair); }
.hl-pub-evname { font-weight: 600; }
.hl-pub a:not(.hl-pub-go):not(.hl-pub-btn):not(.hl-pub-cell) { color: #ff6b6e; }
.hl-pub-pill { border-color: var(--mskin-div-line); background: var(--mskin-div-raised); }
.hl-pub-tick { border-radius: 0; }
.hl-pub-lines li, .hl-pub-dl { border-color: var(--mskin-div-hair); }

/* The Monster events scroller on a division's page ([monster_events venue="..."]): square, and a tidy empty message. */
body.mskin-div [class*="mpr-ev-"] { border-radius: 0 !important; }
body.mskin-div .mpr-ev-empty {
	margin: 10px 0;
	padding: 22px 18px;
	text-align: center;
	font-size: 16px;
	color: var(--mskin-div-soft, #ddd8d1);
	background: var(--mskin-div-dark, #101010);
	border: 1px solid var(--mskin-div-hair, rgba(255, 255, 255, .14));
	border-left: 5px solid var(--mskin-div-red, #ed2124);
}
