/* ws-chapters — neutral defaults. Themes override via the --ws-* custom properties. */

.ws-insignia { display: block; max-width: 100%; height: auto; object-fit: contain; background: transparent; }

/* Neutral "official image pending" placeholder: no colour, no imitation insignia. */
.ws-insignia--pending {
	display: flex; align-items: center; justify-content: center; text-align: center;
	aspect-ratio: 1; width: 100%; min-height: 120px; padding: 1rem; box-sizing: border-box;
	border: 2px dashed var(--ws-border-2, rgba(127, 127, 127, .5));
	border-radius: var(--ws-radius, 8px);
	background: rgba(127, 127, 127, .06);
	color: var(--ws-muted, inherit);
	font-size: .875rem; line-height: 1.3;
}

/* Profile: back patch shown large, at its own proportions. */
.ws-back-patch { max-width: 520px; margin-inline: auto; }
.ws-back-patch .ws-insignia { margin-inline: auto; max-height: 80vh; width: auto; }
.ws-back-patch .ws-insignia--pending { width: 100%; aspect-ratio: 3 / 4; }

.ws-country-logo { max-width: 160px; }
.ws-chapter-meta { margin: 0; color: var(--ws-muted, inherit); font-size: .95em; }

/* Flags: rectangular, with a hairline so white flags stay visible on dark backgrounds. */
.ws-flag { width: 1.33em; line-height: 1em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .35); vertical-align: -0.1em; }

/* Directory */
.ws-chapter-group + .ws-chapter-group { margin-top: 3rem; }
.ws-chapter-group__title a { color: inherit; text-decoration: none; }
.ws-chapter-grid {
	display: grid; gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.ws-chapter-card {
	display: flex; flex-direction: column; gap: .5rem;
	padding: 1.25rem; box-sizing: border-box;
	border: 1px solid var(--ws-border, rgba(127, 127, 127, .3));
	border-radius: var(--ws-radius, 8px);
	background: var(--ws-card, transparent);
	transition: border-color .15s ease;
}
.ws-chapter-card:hover, .ws-chapter-card:focus-within { border-color: var(--ws-brass, currentColor); }
.ws-chapter-card__link { display: flex; flex-direction: column; gap: .75rem; color: inherit; text-decoration: none; }
.ws-chapter-card__logo { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.ws-chapter-card__logo .ws-insignia { max-height: 100%; width: auto; }
.ws-chapter-card__name { margin: 0; font-size: 1.15rem; }

/* Map */
.ws-chapter-map, .ws-chapter-map.leaflet-container {
	height: var(--ws-map-height, 560px); width: 100%;
	border: 1px solid var(--ws-border, rgba(127, 127, 127, .3));
	border-radius: var(--ws-radius, 8px);
	background: var(--ws-map-sea, #0f1012);
	overflow: hidden; isolation: isolate;
}
/* Country shapes (no tiles). Members are gold. */
.ws-map-land { fill: #26262a; stroke: #3d3d42; fill-opacity: 1; }
.ws-map-land--member { fill: var(--ws-gold, #C9A24A); stroke: #4a3a18; fill-opacity: .92; } /* A dark border, so neighbours (Scotland and England) read as separate countries. */
.ws-chapter-map--countries .ws-map-land--member { cursor: pointer; }
.ws-chapter-map--countries .ws-map-land--member:hover { fill: var(--ws-gold-light, #E3C77A); }
.ws-map-land:hover { fill: #34353a; }
.ws-map-land--member:hover { fill: var(--ws-gold-light, #E3C77A); }
.leaflet-tooltip.ws-map-tip--name { padding: 3px 8px; background: rgba(11, 11, 12, .9); color: #d8d2c6; border: 1px solid #3d3d42; border-radius: 3px; box-shadow: none; font-size: 12px; letter-spacing: .04em; }
.leaflet-tooltip.ws-map-tip--name::before { display: none; }
.ws-map-country { display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.ws-map-country__label { display: flex; flex-direction: column; padding: 3px 8px; background: rgba(11, 11, 12, .88); border: 1px solid var(--ws-gold, #C9A24A); border-radius: 3px; color: #fff; line-height: 1.15; }
.ws-map-country__label strong { font-family: var(--ws-display, inherit); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-gold-light, #E3C77A); }
.ws-map-country__label span { font-size: 10px; color: #cfc9bf; }
.ws-map-tip { background: #0b0b0c; color: #fff; border: 1px solid var(--ws-gold, #C9A24A); }
.leaflet-tooltip.ws-map-tip--country { padding: 0; border: 0; background: transparent; box-shadow: none; }
.ws-map-pin-icon { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55)); }
.ws-map-pin-icon:hover { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .7)) brightness(1.08); }
.leaflet-tooltip.ws-map-tip--country::before { display: none; }
@media (max-width: 600px) { .ws-chapter-map { height: min(var(--ws-map-height, 560px), 70vh); } }

.ws-map-pin {
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; box-sizing: border-box; flex: none;
	border-radius: 50%;
	background: rgba(11, 11, 12, .92);
	border: 2px solid var(--ws-gold, #C9A24A);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.ws-map-pin img { width: 78%; height: 78%; object-fit: contain; }

.ws-map-popup { display: flex; gap: .75rem; align-items: center; min-width: 200px; font-family: var(--ws-body, inherit); }
.ws-map-popup__logo { flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.ws-map-popup__logo img { max-width: 64px; max-height: 64px; object-fit: contain; }
.ws-map-popup__logo .ws-insignia--pending { min-height: 0; height: 64px; padding: .25rem; font-size: .65rem; border-radius: 50%; }
.ws-map-popup strong { display: block; font-size: 1rem; }
.ws-map-popup span { display: block; color: #666; font-size: .85rem; }
.ws-map-popup a { font-weight: 600; }

/* Grand Chapters overview */
.ws-gc-card .ws-chapter-card__name { display: flex; align-items: center; gap: .5rem; }
.ws-gc-card .ws-insignia--pending { font-size: .75rem; }

/* Key numbers */
.ws-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; margin: 0; }
.ws-stats > div { display: flex; flex-direction: column-reverse; gap: .25rem; padding: 1.25rem; border-top: 2px solid var(--ws-accent, currentColor); background: var(--ws-card, transparent); }
.ws-stats dd { margin: 0; font-family: var(--ws-display, inherit); font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1; color: var(--ws-text, inherit); }
.ws-stats dt { color: var(--ws-muted, inherit); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }

/* Events */
.ws-event-list { display: grid; gap: 1rem; }
.ws-event-card {
	display: grid; grid-template-columns: 88px 1fr; gap: 1.25rem; align-items: start;
	padding: 1.25rem; border: 1px solid var(--ws-border, rgba(127, 127, 127, .3));
	border-radius: var(--ws-radius, 8px); background: var(--ws-card, transparent);
}
.ws-event-card__date {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	aspect-ratio: 1; border: 1px solid var(--ws-border-2, currentColor); border-radius: var(--ws-radius, 8px);
	font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-brass, inherit);
}
.ws-event-card__date span { font-family: var(--ws-display, inherit); font-size: 2rem; line-height: 1; color: var(--ws-text, inherit); }
.ws-event-card__title { margin: 0 0 .25rem; font-size: 1.25rem; }
.ws-event-card__title a { color: inherit; text-decoration: none; }
.ws-event-card__title a:hover { color: var(--ws-brass, inherit); }
.ws-event-card__meta { margin: 0 0 .75rem; color: var(--ws-muted, inherit); }
.ws-event-host { display: inline-flex; align-items: center; gap: .6rem; color: var(--ws-text-2, inherit); text-decoration: none; font-size: .9rem; }
.ws-event-host__logo { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.ws-event-host__logo .ws-insignia { max-width: 40px; max-height: 40px; width: auto; }
.ws-event-host__logo .ws-insignia--pending { width: 40px; height: 40px; min-height: 0; padding: 0; font-size: 0; border-radius: 50%; }
.ws-event-details { display: grid; gap: .75rem; margin: 0 0 1.5rem; }
.ws-event-details > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.ws-event-details dt { color: var(--ws-muted, inherit); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; padding-top: .2em; }
.ws-event-details dd { margin: 0; }
@media (max-width: 520px) { .ws-event-card { grid-template-columns: 64px 1fr; gap: .9rem; } .ws-event-card__date span { font-size: 1.5rem; } }
.ws-event-organiser { margin: 0; font-size: .9rem; color: var(--ws-muted, inherit); }
.ws-events-note { margin: 0 0 .75rem; font-size: .9rem; }
.ws-event-details dd a { word-break: break-word; }

/* Forms */
.ws-form { max-width: 760px; }
.ws-form fieldset { margin: 0 0 1.5rem; padding: 1.25rem 1.25rem .25rem; border: 1px solid var(--ws-border, #ddd); border-radius: var(--ws-radius, 4px); background: var(--ws-card, #fff); }
.ws-form legend { padding: 0 .5rem; font-family: var(--ws-display, inherit); font-weight: 700; font-size: 1.05rem; }
.ws-field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.ws-field label { font-weight: 600; font-size: .95rem; }
.ws-field input, .ws-field select, .ws-field textarea {
	width: 100%; box-sizing: border-box; padding: .65rem .75rem; font: inherit; font-size: 1rem;
	border: 1px solid var(--ws-border-2, #bbb); border-radius: 3px; background: #fff; color: inherit;
}
.ws-field input:focus, .ws-field select:focus, .ws-field textarea:focus { outline: 2px solid var(--ws-gold, #C9A24A); outline-offset: 1px; border-color: var(--ws-gold-dark, #8a6d2c); }
.ws-field select:disabled { background: #f3f1ec; color: #888; }
.ws-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 1rem; }
.ws-help { font-size: .85rem; color: var(--ws-muted, #666); }
.ws-req { color: #a3222b; }
/* Consent tick boxes: the sentence flows as normal text (links and the asterisk stay with their words); the box hangs to the left. */
.ws-field--check label { display: block; position: relative; padding-left: 1.7rem; font-weight: 400; line-height: 1.5; }
.ws-field--check input { position: absolute; left: 0; top: .3rem; width: 1.05rem; height: 1.05rem; margin: 0; }
.ws-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ws-form-notice { max-width: 760px; margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--ws-radius, 4px); border-left: 4px solid; }
.ws-form-notice--success { background: #eef6ea; border-color: #3c7a2b; color: #1f3d16; }
.ws-form-notice--error { background: #fbecec; border-color: #a3222b; color: #5c1418; }

/* Members area */
.ws-members-locked { max-width: 560px; padding: 2rem; border: 1px solid var(--ws-border, #ddd); border-top: 3px solid var(--ws-gold, #C9A24A); border-radius: var(--ws-radius, 4px); background: var(--ws-card, #fff); }
.ws-members-locked h2 { margin-top: 0; }
.ws-doc__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: #0b0b0c; color: var(--ws-gold-light, #E3C77A); font-weight: 700; font-size: .75rem; letter-spacing: .05em; }
.ws-doc__type { font-weight: 700; color: var(--ws-gold-dark, #8a6d2c); }
.ws-doc--link .ws-doc__icon { background: var(--ws-gold-dark, #8a6d2c); color: #fff; }
.ws-upload { margin-top: 2rem; }
.ws-upload > summary { display: inline-block; cursor: pointer; padding: .7rem 1.2rem; border: 1px solid var(--ws-gold-dark, #8a6d2c); border-radius: 3px; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-gold-dark, #8a6d2c); list-style: none; }
.ws-upload > summary::-webkit-details-marker { display: none; }
.ws-upload[open] > summary { margin-bottom: 1rem; }
.ws-upload .ws-form { margin-top: .5rem; }
.ws-upload--js > summary { display: none; }
.ws-upload--js { margin-top: 2.5rem; }

/* Useful links */
.ws-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.ws-link-card { display: flex; flex-direction: column; }
.ws-link-card__url { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-gold-dark, #8a6d2c); text-decoration: none; word-break: break-all; }
.ws-link-card__url:hover { text-decoration: underline; }
.ws-link-card p { flex: 1; }
.ws-link-card .ws-link-arrow { margin-top: .9rem; }
.ws-contact-list__text { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; }
.ws-contact-list__text .ws-icon { flex: 0 0 18px; margin-top: .15em; color: var(--ws-gold-dark, #8a6d2c); }

/* Editing from the site (includes/front-edit.php): pencils, the small forms and the notice. */
.ws-page-hero, .ws-identity__item, .ws-identity__contact, .ws-overview__contact, .ws-fe-toolbar { position: relative; }
.ws-fedit { position: absolute; right: 10px; bottom: 10px; z-index: 30; font-size: .9rem; }
.ws-fedit--button { position: relative; right: auto; bottom: auto; display: inline-block; margin: 0 0 .75rem; }
.ws-fedit summary { list-style: none; }
.ws-fedit summary::-webkit-details-marker { display: none; }
.ws-fedit__btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer; width: 34px; height: 34px; box-sizing: border-box; border-radius: 50%; background: rgba(11, 11, 12, .82); color: var(--ws-gold-light, #E8D08A); border: 1px solid var(--ws-gold, #C9A24A); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.ws-fedit__btn:hover, .ws-fedit__btn:focus-visible { background: var(--ws-gold, #C9A24A); color: var(--ws-ink, #0b0b0c); }
.ws-fedit--button .ws-fedit__btn { width: auto; height: auto; border-radius: 3px; padding: .55em 1em; background: transparent; color: var(--ws-gold-dark, #8a6d2c); border-color: var(--ws-gold-dark, #8a6d2c); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.ws-fedit[open] .ws-fedit__form { position: absolute; right: 0; bottom: 44px; z-index: 31; width: min(600px, 92vw); max-height: 80vh; overflow-y: auto; box-sizing: border-box; padding: 1rem 1.1rem; background: #fff; color: #111; border: 1px solid var(--ws-gold, #C9A24A); border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); text-align: left; }
.ws-fedit--button[open] .ws-fedit__form { right: auto; left: 0; top: 100%; bottom: auto; }
.ws-fedit__title { margin: 0 0 .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.ws-fedit__label { display: block; margin: .4rem 0; font-size: .85rem; font-weight: 600; }
.ws-fedit__form textarea { display: block; width: 100%; box-sizing: border-box; min-height: 260px; margin-top: .25rem; padding: .6rem; border: 1px solid #c3c4c7; border-radius: 3px; font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; }
.ws-fedit__label input, .ws-fedit__label select { display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; padding: .45rem .5rem; border: 1px solid #c3c4c7; border-radius: 3px; font: inherit; font-weight: 400; }
.ws-fedit__grid { display: grid; grid-template-columns: 1fr; gap: .2rem .6rem; }
.ws-fedit .ws-btn-gold { cursor: pointer; }
.ws-fe-notice { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; max-width: min(520px, 90vw); padding: .8rem 1.1rem; border-radius: 4px; background: #14120c; color: #f4efe2; border-left: 4px solid var(--ws-gold, #C9A24A); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.ws-fe-notice--error { border-left-color: #a3222b; }
.ws-emblem-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.ws-emblem-wrap .ws-fedit { right: 2px; bottom: 2px; }
.ws-emblem-wrap .ws-fedit[open] .ws-fedit__form { line-height: 1.5; }
.ws-chapter-row { position: relative; }
.ws-fe-trash { position: absolute; top: 8px; right: 8px; margin: 0; }
.ws-fe-trash__btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #a3222b; background: #fff; color: #a3222b; cursor: pointer; padding: 0; }
.ws-fe-trash__btn:hover, .ws-fe-trash__btn:focus-visible { background: #a3222b; color: #fff; }
/* Photo viewer for galleries: opens over the page; previous, next and close. */
.ws-viewer { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(8, 7, 5, .94); }
.ws-viewer.is-open { display: flex; }
.ws-viewer-open { overflow: hidden; }
.ws-viewer__figure { margin: 0; max-width: min(1100px, 86vw); max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.ws-viewer__figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 3px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.ws-viewer__count { margin-top: .6rem; color: #f4efe2; font-size: .9rem; letter-spacing: .05em; }
.ws-viewer__close, .ws-viewer__prev, .ws-viewer__next { position: absolute; background: rgba(20, 18, 12, .8); color: #E8D08A; border: 1px solid #C9A24A; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 1.6rem; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.ws-viewer__close:hover, .ws-viewer__prev:hover, .ws-viewer__next:hover, .ws-viewer__close:focus-visible, .ws-viewer__prev:focus-visible, .ws-viewer__next:focus-visible { background: #C9A24A; color: #14120c; }
.ws-viewer__close { top: 16px; right: 16px; font-size: 2rem; }
.ws-viewer__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ws-viewer__next { right: 16px; top: 50%; transform: translateY(-50%); }
.ws-viewer__prev[hidden], .ws-viewer__next[hidden] { display: none; }
.ws-fedit__close { position: absolute; top: 6px; right: 8px; background: transparent; border: 0; color: #5a5a5a; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.ws-fedit__close:hover, .ws-fedit__close:focus-visible { color: #14120c; }
/* Remove one photo from a gallery (editors only). */
.ws-gallery-item { position: relative; }
.ws-fe-remove { position: absolute; top: 6px; right: 6px; z-index: 2; margin: 0; }
.ws-fe-remove__btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #C9A24A; background: rgba(20, 18, 12, .85); color: #E8D08A; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.ws-fe-remove__btn:hover, .ws-fe-remove__btn:focus-visible { background: #a3222b; color: #fff; border-color: #a3222b; }
/* Tick boxes inside a field label sit beside their text, not on a line of their own. */
.ws-fedit__label input[type=checkbox] { display: inline-block; width: auto; margin: 0 .5rem 0 0; vertical-align: middle; }
/* A save is running: the form shows it is working and cannot be sent twice. */
.ws-fedit__form.is-busy { cursor: progress; }
.ws-fedit__form.is-busy button[type=submit] { opacity: .7; cursor: progress; }
.ws-fe-remove.is-busy .ws-fe-remove__btn { opacity: .5; cursor: progress; }
.ws-news-card { position: relative; }
.ws-fe-trash--news { position: absolute; top: 8px; right: 8px; margin: 0; }
.ws-fe-trash--text { position: static; margin: 2rem 0 0; }
.ws-fe-trash__text { cursor: pointer; }
/* Sub-navigation between Library, Members and Member management. */
.ws-subnav { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--ws-line, #e0d8c4); margin: 0 0 1.5rem; }
.ws-subnav a { padding: .8rem 1.4rem; color: var(--ws-text, #333); background: #f4efe2; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; border: 2px solid var(--ws-line, #e0d8c4); border-bottom: 2px solid var(--ws-line, #e0d8c4); border-radius: 6px 6px 0 0; margin-bottom: -2px; }
.ws-subnav a:hover { color: var(--ws-gold-dark, #8a6d2c); background: #fff; }
.ws-subnav a.is-active { color: #fff; background: var(--ws-gold-dark, #8a6d2c); border-color: var(--ws-gold-dark, #8a6d2c); }
.ws-fe-trash--news.is-busy .ws-fe-trash__btn { cursor: progress; opacity: .6; width: auto; padding: 0 .7rem; font-size: .8rem; }
.ws-fe-trash--news.is-busy button[type=submit]:disabled { cursor: progress; }
/* Member pages (includes/member-management.php): filter bar, invitation form and tables share one look. */
.ws-mm { margin: 0 0 2rem; }
/* The member pages break out of the 780px text column so the tables have room: up to 1240px, at least 24px from the screen edges. */
.ws-mm.alignwide, .ws-subnav.alignwide { max-width: none !important; margin-left: calc(50% - min(620px, 50vw - 24px)) !important; margin-right: calc(50% - min(620px, 50vw - 24px)) !important; }
.ws-mm__card { background: #fff; border: 1px solid var(--ws-line, #e3dccd); border-radius: 6px; padding: 1.4rem 1.5rem 1.5rem; margin: 0 0 2rem; }
.ws-mm__card > p { margin: 0 0 1rem; }
.ws-mm__section { margin: 0 0 2rem; }
.ws-mm__heading { margin: 0 0 .6rem; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
.ws-mm__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.ws-mm__bar { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto; gap: .8rem; align-items: end; background: #fff; border: 1px solid var(--ws-line, #e3dccd); border-radius: 6px; padding: 1rem 1.1rem; margin: 0 0 1rem; }
.ws-mm__field { display: flex; flex-direction: column; gap: .3rem; margin: 0; min-width: 0; }
.ws-mm__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-muted, #6b655c); }
.ws-mm__input { display: block; width: 100%; box-sizing: border-box; height: 44px; padding: 0 .75rem; border: 1px solid var(--ws-border-2, #cfc6b3); border-radius: 4px; background-color: #fff; color: var(--ws-text, #1c1a17); font: inherit; font-size: 1rem; }
select.ws-mm__input { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a6d2c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; cursor: pointer; }
.ws-mm__input:focus { outline: none; border-color: var(--ws-gold, #c9a24a); box-shadow: 0 0 0 3px rgba(201, 162, 74, .25); }
.ws-mm__hint { grid-column: 1 / -1; margin: -.3rem 0 0; font-size: .85rem; }
.ws-mm__actions { display: flex; align-items: center; gap: .8rem; }
.ws-mm__grid .ws-mm__actions { grid-column: 1 / -1; }
.ws-mm__btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 1.4rem; border: 1px solid var(--ws-gold, #c9a24a); border-radius: 4px; background: var(--ws-gold, #c9a24a); color: var(--ws-ink, #0b0b0c); font: inherit; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ws-mm__btn:hover, .ws-mm__btn:focus-visible { background: var(--ws-gold-light, #e3c77a); }
.ws-mm__btn--small { height: 36px; padding: 0 .9rem; font-size: .75rem; }
.ws-mm__btn--ghost { background: #fff; color: var(--ws-gold-dark, #8a6d2c); border-color: var(--ws-gold-dark, #8a6d2c); }
.ws-mm__btn--ghost:hover, .ws-mm__btn--ghost:focus-visible { background: rgba(201, 162, 74, .12); }
.ws-mm__btn--danger { background: #fff; color: #a3222b; border-color: #a3222b; }
.ws-mm__btn--danger:hover, .ws-mm__btn--danger:focus-visible { background: #a3222b; color: #fff; }
.ws-mm form.is-busy { cursor: progress; }
.ws-mm form.is-busy button[type=submit] { opacity: .7; cursor: progress; }
.ws-mm__clear { color: var(--ws-gold-dark, #8a6d2c); font-weight: 600; }
.ws-mm__count { margin: 0 0 .5rem; color: var(--ws-muted, #6b655c); font-size: .9rem; }
.ws-mm__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ws-line, #e3dccd); border-radius: 6px; background: #fff; }
.ws-mm__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ws-mm__table th { position: sticky; top: 0; background: var(--ws-ink-2, #16171a); color: var(--ws-on-dark, #f3efe6); text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .85rem 1rem; white-space: nowrap; }
.ws-mm__table td { padding: .8rem 1rem; border-top: 1px solid var(--ws-line, #e3dccd); vertical-align: middle; }
.ws-mm__table tbody tr:nth-child(even) td { background: #f6f1e4; }
.ws-mm__table tbody tr:hover td { background: #efe5cb; }
.ws-mm__table a { color: var(--ws-gold-dark, #8a6d2c); }
.ws-mm__table a[href^="mailto:"], .ws-mm__table a[href^="tel:"] { white-space: nowrap; }
.ws-mm__table--directory { min-width: 900px; }
.ws-mm__table--manage { min-width: 1080px; }
.ws-mm__person { display: flex; align-items: center; gap: .75rem; min-width: 200px; }
.ws-mm__person > span { display: flex; flex-direction: column; line-height: 1.3; }
.ws-mm__person .ws-muted { font-size: .85rem; }
.ws-mm__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ws-mm__avatar--initials { display: inline-flex; align-items: center; justify-content: center; background: var(--ws-ink-2, #16171a); color: var(--ws-gold-light, #e3c77a); font-weight: 700; font-size: .85rem; }
.ws-mm__empty { text-align: center; color: var(--ws-muted, #6b655c); padding: 2rem 1rem !important; }
.ws-mm__inline { display: flex; gap: .4rem; align-items: center; margin: 0; }
.ws-mm__inline .ws-mm__input { height: 36px; font-size: .9rem; min-width: 150px; }
.ws-mm__inline [data-ws-mm-other] { min-width: 120px; }
.ws-mm__inline [hidden] { display: none; }
.ws-mm__row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.ws-mm__status { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ws-mm__status--active { background: #e4f0de; color: #2b5a1d; }
.ws-mm__status--invited { background: #fbf0d6; color: #7a5a12; }
.ws-mm__status--rejected { background: #f6dfe0; color: #8c1d25; }
/* Applications (member-applications.php): pop-ups for Send invitation and Reject application. */
.ws-app-dialog { position: relative; width: min(640px, 94vw); max-height: 92vh; margin: auto; padding: 1.6rem 1.6rem 1.4rem; border: 0; border-radius: 6px; background: #fff; color: #1c1a17; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); overflow: auto; }
.ws-app-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.ws-app-dialog .ws-mm__heading { margin-top: 0; padding-right: 2rem; }
.ws-app-dialog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-app-dialog__form textarea { width: 100%; min-height: 8rem; resize: vertical; }
.ws-app-dialog__form .ws-mm__actions { margin-top: 1rem; }
.ws-app-dialog__close-form { position: absolute; top: .4rem; right: .5rem; margin: 0; }
.ws-app-dialog__close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: #6b655c; cursor: pointer; padding: .2rem .5rem; }
.ws-app__msg summary { cursor: pointer; color: var(--ws-gold-dark, #8a6d2c); font-weight: 600; }
.ws-app__msg p { margin: .4rem 0 0; max-width: 32rem; white-space: normal; }
.ws-app__country, .ws-app__by { display: block; font-size: .85rem; }
.ws-mm__table--apps .ws-mm__row-actions { flex-direction: column; align-items: stretch; width: 10.5rem; }
.ws-mm__table--apps .ws-mm__row-actions .ws-mm__btn { white-space: normal; height: auto; min-height: 36px; padding: .45rem .7rem; line-height: 1.25; text-align: center; }
@media (max-width: 640px) { .ws-app-dialog__grid { grid-template-columns: 1fr; } }
.ws-mm .ws-form-notice { max-width: none; }
@media (max-width: 900px) {
	.ws-mm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ws-mm__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ws-mm__bar .ws-mm__field--wide, .ws-mm__bar .ws-mm__actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.ws-mm__grid, .ws-mm__bar { grid-template-columns: 1fr; }
	.ws-mm__card { padding: 1rem; }
	.ws-mm__btn { width: 100%; }
	.ws-mm__btn--small { width: auto; }
}
.ws-mm__road { font-style: italic; color: var(--ws-gold-dark, #8a6d2c); font-weight: 600; }
.ws-mm__person .ws-mm__road { font-size: .9rem; }
.ws-mm__name-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--ws-gold-dark, #8a6d2c); }
.ws-mm__name-btn:focus-visible { outline: 2px solid var(--ws-gold, #C9A24A); outline-offset: 2px; }
.ws-mm__profile { width: min(980px, 94vw); max-height: 92vh; margin: auto; padding: 0; border: 0; border-radius: 6px; background: #fff; color: #111; text-align: left; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); overflow: auto; }
.ws-mm__profile::backdrop { background: rgba(0, 0, 0, .65); }
.ws-mmp { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); min-height: 560px; }
.ws-mmp__photo { position: relative; overflow: hidden; background: linear-gradient(160deg, #2a2b2f, #0d0e10); }
.ws-mmp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ws-mmp__initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ws-gold-light, #e3c77a); font-family: Cinzel, serif; font-size: 6rem; font-weight: 700; }
.ws-mmp__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); pointer-events: none; }
.ws-mmp__country { position: absolute; left: 50%; bottom: 1.5rem; z-index: 1; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 80%; text-align: center; }
.ws-mmp__country span { color: #f3efe6; font-family: Cinzel, serif; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.25; padding-bottom: .5rem; border-bottom: 1px solid var(--ws-gold, #C9A24A); }
.ws-mmp__country img { width: 96px; height: auto; max-height: 96px; object-fit: contain; }
.ws-mmp__body { position: relative; padding: 2.4rem 2.6rem 2.2rem; overflow: hidden; }
.ws-mmp__mark { position: absolute; top: 2.5rem; right: -2rem; width: 280px; height: auto; opacity: .2; filter: grayscale(1); pointer-events: none; }
.ws-mmp__body > *:not(.ws-mmp__mark) { position: relative; }
.ws-mmp__close-form { position: absolute !important; top: .8rem; right: .9rem; z-index: 2; margin: 0; }
.ws-mmp__close { width: 2.4rem; height: 2.4rem; padding: 0; border: 0; background: none; color: #222; font-size: 2rem; line-height: 1; cursor: pointer; }
.ws-mmp__close:hover, .ws-mmp__close:focus-visible { color: var(--ws-gold-dark, #8a6d2c); }
.ws-mmp__label { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0; color: var(--ws-gold-dark, #8a6d2c); font-size: .8rem; font-weight: 700; letter-spacing: .35em; text-transform: uppercase; }
.ws-mmp__label::before, .ws-mmp__label::after { content: ""; width: 3rem; border-top: 1px solid var(--ws-gold, #C9A24A); }
.ws-mmp__road { margin: .2rem 0 0; text-align: center; color: var(--ws-gold-dark, #8a6d2c); font-family: Cinzel, serif; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.ws-mmp__name { margin: .5rem 0 0; text-align: center; font-family: Cinzel, serif; font-size: clamp(1.3rem, 2.6vw, 2rem); font-variant: small-caps; line-height: 1.15; }
.ws-mmp__rule { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 1.2rem; }
.ws-mmp__rule::before, .ws-mmp__rule::after { content: ""; flex: 1; border-top: 1px solid var(--ws-gold, #C9A24A); }
.ws-mmp__rule span { width: .55rem; height: .55rem; background: var(--ws-gold-dark, #8a6d2c); transform: rotate(45deg); }
.ws-mmp__title { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.ws-mmp__sub { margin: .2rem 0 0; color: #555; font-size: 1.15rem; }
.ws-mmp__rows { display: grid; gap: .7rem; margin: 1.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid #e6e1d6; }
.ws-mmp__row { display: grid; grid-template-columns: 2.6rem 7rem 1fr; align-items: center; gap: .8rem; }
.ws-mmp__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 1.5px solid var(--ws-gold-dark, #8a6d2c); border-radius: 50%; color: var(--ws-gold-dark, #8a6d2c); }
.ws-mmp__icon svg { width: 1.2rem; height: 1.2rem; }
.ws-mmp__row dt { color: var(--ws-gold-dark, #8a6d2c); font-size: .85rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.ws-mmp__row dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.ws-mmp__row dd a { color: var(--ws-gold-dark, #8a6d2c); }
.ws-mmp__row .ws-flag { margin-right: .4rem; }
.ws-mmp__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.ws-mmp__btn { flex: 1 1 10rem; display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.2rem; border: 1px solid var(--ws-gold-dark, #8a6d2c); border-radius: 3px; background: #fbf8f1; color: #222; font-size: .85rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; }
.ws-mm__profile a.ws-mmp__btn { color: #222; }
.ws-mm__profile a.ws-mmp__btn--gold { background: var(--ws-gold-dark, #8a6d2c); color: #fff; }
.ws-mmp__btn:hover, .ws-mmp__btn:focus-visible { filter: brightness(1.08); }
@media (max-width: 720px) {
	.ws-mmp { grid-template-columns: 1fr; min-height: 0; }
	.ws-mmp__photo { min-height: 320px; }
	.ws-mmp__body { padding: 2rem 1.3rem 1.5rem; }
	.ws-mmp__row { grid-template-columns: 2.4rem 1fr; }
	.ws-mmp__row dd { grid-column: 2; }
}
.ws-mm__missing { color: #a3222b; font-size: .85rem; font-weight: 600; }
.ws-mm__table--manage { min-width: 1000px; }
.ws-mm__table--manage [data-ws-mm-chapter] { min-width: 210px; }
.ws-mm__email { font-size: .85rem; }
.ws-mm [hidden] { display: none !important; }
.ws-mm__field [data-ws-mm-other] { margin-top: .4rem; }
/* Members list: room for the phone number. */
.ws-mm__table--directory { min-width: 1080px; }
.ws-mm__table--directory td:last-child, .ws-mm__table--directory th:last-child { min-width: 160px; white-space: nowrap; }
/* Recent activity (Super Admins): folded until opened. */
.ws-mm__fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; padding: .6rem 0; }
.ws-mm__fold > summary::-webkit-details-marker { display: none; }
.ws-mm__fold > summary::before { content: "▸"; color: var(--ws-gold-dark, #8a6d2c); transition: transform .15s; }
.ws-mm__fold[open] > summary::before { transform: rotate(90deg); }
.ws-mm__fold > summary .ws-muted { font-size: .85rem; text-transform: none; letter-spacing: 0; }
/* Library in the member-page look. */
.ws-library-bar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto; justify-content: initial; }
.ws-library-bar__upload { justify-content: flex-end; }
.ws-mm__table--library { min-width: 1080px; }
.ws-mm__table--library th:nth-child(3), .ws-mm__table--library td:nth-child(3) { min-width: 10rem; }
.ws-mm__table--library th:nth-child(4), .ws-mm__table--library td:nth-child(4) { min-width: 12rem; }
.ws-doc__when { white-space: nowrap; font-weight: 600; color: var(--ws-muted, #6b655c); }
.ws-doc__cell { display: flex; gap: .8rem; align-items: flex-start; }
.ws-doc__cell .ws-doc__icon { flex: none; width: 46px; height: 46px; font-size: .7rem; }
.ws-doc__cell > span:last-child { display: flex; flex-direction: column; gap: .2rem; }
a.ws-doc__title { color: var(--ws-text, #1c1a17) !important; font-weight: 700; text-decoration: none; }
a.ws-doc__title:hover { text-decoration: underline; }
.ws-doc__desc { font-size: .9rem; color: var(--ws-muted, #6b655c); }
.ws-mm__table--library .ws-mm__row-actions .ws-mm__btn { width: 100%; }
.ws-members .ws-upload.ws-mm__card { margin-top: 2rem; }
@media (max-width: 900px) { .ws-library-bar { grid-template-columns: 1fr 1fr; } .ws-library-bar .ws-mm__field--wide { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ws-library-bar { grid-template-columns: 1fr; } }
/* My profile, sign in and new password (includes/member-account.php). */
.ws-ma__card { max-width: 520px; margin-left: auto; margin-right: auto; }
.ws-ma__form { display: grid; gap: 1rem; }
.ws-ma__remember { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.ws-ma__switch { margin: 1rem 0 0; }
.ws-ma__switch a, .ws-ma__logout a { color: var(--ws-gold-dark, #8a6d2c); font-weight: 600; }
.ws-ma__photo { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }
.ws-ma__photo .ws-mm__avatar { width: 72px; height: 72px; font-size: 1.3rem; }
.ws-ma__photo .ws-mm__field { flex: 1; }
.ws-ma__file { height: auto; padding: .55rem .75rem; }
.ws-mm__input:disabled { background: #f4efe2; color: var(--ws-muted, #6b655c); cursor: not-allowed; }
.ws-ma__password { grid-column: 1 / -1; }
.ws-ma__password > summary { cursor: pointer; color: var(--ws-gold-dark, #8a6d2c); font-weight: 600; margin-bottom: .8rem; }
.ws-ma__logout { margin: 0; text-align: right; }
.ws-mm__btn { box-sizing: border-box; text-decoration: none; }
.ws-members .ws-upload--js:not([open]) { display: none; }
/* Country page: "+ Create new chapter" above the chapter list (Super Admin, Country Admin). */
.ws-fe-create-chapter { margin: 0 0 1rem; }
.ws-fe-create-chapter .ws-fedit--button .ws-fedit__btn { background: var(--ws-gold, #C9A24A); color: var(--ws-ink, #0b0b0c); border-color: var(--ws-gold, #C9A24A); }
/* Chapter page: Rename the chapter and Edit the About text on the left, a red Close chapter on the right. */
.ws-fe-chapter-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; }
.ws-fe-chapter-tools:empty { display: none; }
.ws-fe-chapter-tools .ws-fedit--button { margin: 0 0 .75rem; }
.ws-fe-trash--page { position: static; margin: 0 0 .75rem auto; }
.ws-fe-delete-btn { display: inline-flex; align-items: center; padding: .7em 1em; border: 1px solid #a3222b; border-radius: 3px; background: #a3222b; color: #fff; font-family: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; cursor: pointer; }
.ws-fe-delete-btn:hover, .ws-fe-delete-btn:focus-visible { background: #7e1a21; border-color: #7e1a21; }
/* Website feedback: a larger comments box. */
.ws-mm__textarea { height: auto; min-height: 140px; padding: .6rem .75rem; resize: vertical; line-height: 1.5; }
.ws-mm__grid .ws-mm__field--wide { grid-column: 1 / -1; }
/* Edit and delete (content-edit.php): pencil on listings, the edit screen, the 2 x 2 news gallery. */
.ws-cx-edit { position: absolute; top: .6rem; right: .6rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 4.5rem; height: 2rem; gap: .35rem; margin: 0; padding: 0 .5rem; background: #fff; border: 1px solid var(--ws-gold-dark, #8a6d2c); border-radius: 3px; color: var(--ws-gold-dark, #8a6d2c); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.ws-cx-edit svg { width: 14px; height: 14px; }
.ws-cx-edit:hover, .ws-cx-edit:focus-visible { background: rgba(201, 162, 74, .12); }
.ws-cx__form .ws-mm__field { display: block; margin: 0 0 1rem; }
.ws-cx__buttons { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ws-cx__delete-form { margin: 0; }
.ws-cx__buttons .ws-cx__delete-btn { margin-left: auto; }
.ws-cx__delete-btn { padding: .7em 1.1em; border: 1px solid #a3222b; border-radius: 3px; background: #a3222b; color: #fff; font: inherit; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ws-cx__delete-btn:hover, .ws-cx__delete-btn:focus-visible { background: #7e1a21; border-color: #7e1a21; }
.ws-cx-images { border: 1px solid var(--ws-line, #e3dccd); border-radius: 6px; padding: 1rem; margin: 0 0 1rem; }
.ws-cx-images legend { font-weight: 700; padding: 0 .4rem; }
.ws-cx-images__list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.ws-cx-img { width: 140px; }
.ws-cx-img figure { margin: 0 0 .4rem; }
.ws-cx-img img { width: 100%; height: auto; border-radius: 3px; display: block; }
.ws-cx-img label { display: block; font-size: .85rem; margin-top: .3rem; }
.ws-cx-img__pos { width: 80px; height: 36px; margin-left: .3rem; }
.ws-cx-images__add { display: block; font-weight: 600; }
.ws-cx-images__add input { display: block; margin-top: .4rem; }
.ws-news-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.5rem 0 0; }
.ws-news-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.ws-news-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The Edit pencil sits in the top-right corner of each card, and the title stays clear of it. */
.ws-news-card, .ws-event-card, .wp-block-post, .ws-mm__table--library tbody td:last-child { position: relative; }
.ws-news-card:has(.ws-cx-edit) h3, .wp-block-post:has(.ws-cx-edit) .wp-block-post-title, .ws-event-card:has(.ws-cx-edit) .ws-event-card__title { padding-right: 7.5rem; }
/* The Edit pencil on a single news article sits in the top-right corner of the article. */
.wp-block-post-content:has(.ws-cx-edit) { position: relative; }
.wp-block-post-content > .ws-cx-edit, .ws-news-gallery + .ws-cx-edit { top: 0; right: 0; }
/* Library: Download and Open link as icon-only buttons, the same look as the Edit button. */
.ws-doc-icon-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 4.5rem; height: 2rem; margin: 0; padding: 0; border: 1px solid var(--ws-gold-dark, #8a6d2c); border-radius: 3px; background: #fff; color: var(--ws-gold-dark, #8a6d2c); text-decoration: none; }
.ws-doc-icon-btn svg { width: 15px; height: 15px; }
.ws-doc-icon-btn:hover, .ws-doc-icon-btn:focus-visible { background: rgba(201, 162, 74, .12); }
/* Library: Edit and Download line up on the same right edge. */

/* Edit pop-up on a useful link card: top right, like the news pencil; the form opens as a centred pop-up. */
.ws-link-card .ws-link-edit { position: absolute; top: .6rem; right: .6rem; z-index: 2; }
.ws-link-card .ws-link-edit:has(details[open]) { z-index: 1000; }

/* Photo picker (ws-images.js): thumbnails, Remove, Make main, and an add/drop area. */
.ws-pick__input { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.ws-pick { margin: .4rem 0 .9rem; }
.ws-pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin: 0 0 .6rem; padding: 0; list-style: none; }
.ws-pick__item { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #eee; border: 1px solid rgba(0, 0, 0, .12); }
.ws-pick__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-pick__badge { position: absolute; left: 0; right: 0; bottom: 0; padding: .2rem; background: var(--ws-gold, #C9A24A); color: #111; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.ws-pick__remove { position: absolute; top: .3rem; right: .3rem; width: 1.7rem; height: 1.7rem; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ws-pick__remove:hover, .ws-pick__remove:focus-visible { background: #a12622; }
.ws-pick__main { position: absolute; left: .3rem; right: .3rem; bottom: .3rem; padding: .2rem; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .9); color: #111; font-size: .7rem; font-weight: 700; cursor: pointer; }
.ws-pick__main:hover, .ws-pick__main:focus-visible { background: var(--ws-gold-light, #e3c77a); }
.ws-pick__drop { display: flex; flex-direction: column; align-items: center; gap: .2rem; width: 100%; padding: 1rem; border: 2px dashed var(--ws-gold-dark, #8a6d2c); border-radius: 6px; background: rgba(201, 162, 74, .06); color: var(--ws-gold-dark, #8a6d2c); font: inherit; font-size: .9rem; cursor: pointer; }
.ws-pick__drop strong { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.ws-pick__drop span { color: #555; font-size: .8rem; }
.ws-pick__drop:hover, .ws-pick.is-over .ws-pick__drop { background: rgba(201, 162, 74, .18); }
.ws-pick__drop:disabled { cursor: default; border-style: solid; opacity: .7; }
.ws-pick__note { margin: .4rem 0 0; color: #a12622; font-size: .85rem; }
.ws-pick__note:empty { display: none; }

/* Library actions: Edit above Download, same size, centred in the column. */
.ws-mm__table--library th:last-child { text-align: center; }
.ws-mm__table--library .ws-mm__row-actions { flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; gap: .4rem; margin: 0; }
.ws-mm__table--library .ws-mm__row-actions .ws-cx-edit { position: static; order: -1; }

/* Pencil pop-ups (patch, logo, photos, contact, About, Rename, Create chapter, news, links): always centred on the
   screen over a dimmed page, so they never run off the edge; clicking the dimmed page closes them. */
.ws-fedit[open] { z-index: 1000; }
.ws-fedit[open] > summary::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); cursor: default; }
.ws-fedit[open] .ws-fedit__form, .ws-fedit--button[open] .ws-fedit__form { position: fixed; left: 50%; top: 50%; right: auto; bottom: auto; z-index: 1001; transform: translate(-50%, -50%); width: min(600px, 92vw); max-height: 85vh; }

/* Events page: List / Month / Week switch and the calendar (FullCalendar), in the site's black and gold. */
.ws-views__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1.5rem; }
.ws-views__bar { display: inline-flex; gap: .4rem; }
.ws-views__cal[hidden], .ws-views__list[hidden] { display: none !important; } /* The calendar sets its own display; keep it hidden in List view. */
.ws-views__btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5em 1em; border: 1px solid var(--ws-gold-dark, #8a6d2c); border-radius: 3px; background: transparent; color: var(--ws-gold-dark, #8a6d2c); font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ws-views__btn[aria-pressed="true"] { background: var(--ws-ink, #0b0b0c); border-color: var(--ws-ink, #0b0b0c); color: var(--ws-gold-light, #e3c77a); }
.ws-views__btn:hover { background: rgba(201, 162, 74, .12); }
.ws-views__btn[aria-pressed="true"]:hover { background: var(--ws-ink, #0b0b0c); }
.ws-views__cal { --fc-border-color: #e3dccd; --fc-event-bg-color: var(--ws-gold, #C9A24A); --fc-event-border-color: var(--ws-gold-dark, #8a6d2c); --fc-event-text-color: #111; --fc-today-bg-color: rgba(201, 162, 74, .12); --fc-button-bg-color: var(--ws-ink, #0b0b0c); --fc-button-border-color: var(--ws-ink, #0b0b0c); --fc-button-hover-bg-color: #2a2b2f; --fc-button-hover-border-color: #2a2b2f; --fc-button-active-bg-color: var(--ws-gold-dark, #8a6d2c); --fc-button-active-border-color: var(--ws-gold-dark, #8a6d2c); --fc-page-bg-color: #fff; --fc-list-event-hover-bg-color: rgba(201, 162, 74, .12); background: #fff; padding: 1rem; border: 1px solid #e3dccd; border-radius: 4px; }
.ws-views__cal .fc-toolbar-title { font-family: var(--ws-display, Cinzel, serif); font-size: 1.4rem; }
.ws-views__cal .fc-event { cursor: pointer; font-weight: 600; }
.ws-views__cal .fc-daygrid-event { white-space: normal; }
.ws-views__cal a { color: inherit; text-decoration: none; }
.ws-views__cal .fc-col-header-cell-cushion { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; color: var(--ws-gold-dark, #8a6d2c); }
.ws-views__cal .fc-daygrid-week-view .fc-daygrid-day-frame, .ws-views__cal .fc-dayGridWeek-view .fc-daygrid-day-frame { min-height: 8rem; }

/* Event page: Add to calendar. */
.ws-addcal { position: relative; display: block; width: fit-content; margin-top: 1.25rem; }
.ws-addcal summary { list-style: none; }
.ws-addcal summary::-webkit-details-marker { display: none; }
.ws-addcal__btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6em 1.1em; border: 1px solid var(--ws-gold-dark, #8a6d2c); border-radius: 3px; color: var(--ws-gold-dark, #8a6d2c); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ws-addcal__btn:hover, .ws-addcal[open] .ws-addcal__btn { background: rgba(201, 162, 74, .12); }
.ws-addcal__menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 260px; margin: 0; padding: .35rem; list-style: none; background: #fff; border: 1px solid var(--ws-gold, #C9A24A); border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.ws-addcal__menu a { display: block; padding: .55rem .75rem; border-radius: 3px; color: #111; text-decoration: none; }
.ws-addcal__menu a:hover, .ws-addcal__menu a:focus-visible { background: rgba(201, 162, 74, .14); }

/* Event lists never get wider than the screen: the grid column and the cards may shrink, long words wrap.
   On phones the Edit button sits at the bottom of the card instead of taking room beside the title. */
.ws-event-list { grid-template-columns: minmax(0, 1fr); }
.ws-event-card, .ws-event-card__body { min-width: 0; }
.ws-event-card__title { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 520px) {
	.ws-event-card { grid-template-columns: 64px minmax(0, 1fr); }
	.ws-event-card:has(.ws-cx-edit) .ws-event-card__title { padding-right: 0; }
	.ws-event-card .ws-cx-edit { position: static; margin-top: .9rem; }
}

/* Sign in without a password (1.0.13): email code, passkeys, the home-screen app. */
.ws-si { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin-top: .4rem; }
.ws-si__or { display: flex; align-items: center; gap: .75rem; margin: .2rem 0; color: #7a7366; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.ws-si__or::before, .ws-si__or::after { content: ""; flex: 1; border-top: 1px solid rgba(138, 109, 44, .35); }
.ws-si__alt { width: 100%; min-width: 0; box-sizing: border-box; white-space: normal; justify-content: center; text-align: center; background: transparent !important; color: var(--ws-gold-dark, #8a6d2c) !important; border: 1px solid var(--ws-gold-dark, #8a6d2c) !important; }
.ws-si__alt:hover, .ws-si__alt:focus-visible { background: var(--ws-gold-dark, #8a6d2c) !important; color: #fff !important; }
.ws-si__alt.is-busy, .ws-pk .is-busy { opacity: .6; cursor: progress; }
.ws-si__hint { margin: 0; font-size: .85rem; line-height: 1.45; color: #7a7366; }
.ws-si__msg { margin: .2rem 0 0; color: #a3341f; font-size: .95rem; }
.ws-ma__code { font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.ws-pk, .ws-app { margin-top: 1.5rem; }
.ws-pk__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.ws-pk__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border: 1px solid rgba(138, 109, 44, .25); border-radius: 6px; }
.ws-pk__item form { margin: 0; }
.ws-pk__remove { background: none; border: 0; color: #a3341f; font-weight: 600; cursor: pointer; padding: .25rem; }
.ws-pk__actions { margin: 0; }
.ws-app__how p { margin: .4rem 0 0; }
.ws-app-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 9998; display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 2.4rem .8rem .8rem; background: #0e0d0b; color: #efe9dc; border: 1px solid #c9a64b; border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); font-size: .92rem; line-height: 1.45; }
.ws-app-bar[hidden] { display: none; }
.ws-app-bar img { border-radius: 9px; flex: none; }
.ws-app-bar strong { color: #c9a64b; letter-spacing: .04em; }
.ws-app-bar .ws-mm__btn { margin-top: .4rem; padding: .45rem .9rem; }
.ws-app-bar__close { position: absolute; top: .3rem; right: .4rem; background: none; border: 0; color: #efe9dc; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }

/* Google Analytics consent bar (analytics.php). Above the "Get the app" bar, which waits until it is answered. */
.ws-consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 9999; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding: .9rem 1.1rem; background: #0e0d0b; color: #efe9dc; border: 1px solid #c9a64b; border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); font-size: .92rem; line-height: 1.45; }
.ws-consent[hidden] { display: none; }
.ws-consent p { margin: 0; flex: 1 1 22rem; }
.ws-consent a { color: #c9a64b; }
.ws-consent__buttons { display: flex; gap: .6rem; }
.ws-consent .ws-consent__no { background: transparent; color: #efe9dc; border-color: #efe9dc; }
.ws-consent .ws-consent__no:hover, .ws-consent .ws-consent__no:focus-visible { background: #efe9dc; color: #0e0d0b; }
body:has(.ws-consent:not([hidden])) .ws-app-bar { display: none; }
.ws-consent-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.ws-footer .ws-consent-link { color: var(--ws-on-dark, #efe9dc); text-decoration: none; }
.ws-footer .ws-consent-link:hover, .ws-footer .ws-consent-link:focus-visible { color: var(--ws-gold-light, #e3c77a); }

/* Sign in, email first (1.0.15). */
.ws-si-form .ws-si-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.ws-si-form .ws-si-step[hidden] { display: none; }
.ws-si-form [hidden] { display: none !important; }
.ws-si-form .ws-si-next, .ws-si-form .ws-si-login { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; white-space: normal; }
.ws-si-who { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0; padding: .6rem .8rem; background: rgba(201, 162, 74, .1); border: 1px solid rgba(138, 109, 44, .3); border-radius: 6px; font-weight: 600; overflow-wrap: anywhere; }
.ws-si-change { flex: none; background: none; border: 0; padding: .2rem; color: var(--ws-gold-dark, #8a6d2c); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ws-si-choose { margin: .2rem 0 0; font-weight: 600; }
.ws-si-forgot { margin: .2rem 0 0; font-size: .9rem; }
.ws-login label, .ws-login .ws-si-form p { margin-bottom: 0; }
.ws-login input[type=email] { display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; padding: .55rem .6rem; border: 1px solid #c3c4c7; border-radius: 3px; font: inherit; font-weight: 400; }
