/* Score and day detail layouts (includes/detail.php) — on their own pages and in the popup.
   Structure only; type sizes and colours follow the site (Divi presets) where the layout sits. */
.weber-detail { --wd-accent: var(--gcid-link-color, #8b0000); --wd-muted: #6e6a60; --wd-line: #e6dcc0; --wd-tint: #faf6ea; max-width: 860px; }
.weber-detail__head { display: grid; gap: .3rem; margin-bottom: 1rem; }
.weber-detail__facts { margin: 0; color: var(--wd-muted); font-style: italic; }
.weber-detail__crumb { margin: 0; font-size: .95em; }
.weber-detail__open { display: inline-block; padding: .45em 1.1em; border: 1px solid var(--wd-accent); border-radius: 4px; color: var(--wd-accent); text-decoration: none; font-weight: 600; }
.weber-detail__open:hover { background: rgba(139, 0, 0, .06); }
.weber-detail__section { border-top: 1px solid var(--wd-line); padding: .9rem 0 .4rem; }
.weber-detail__h { margin: 0 0 .5rem; font-size: 1.15em; color: var(--wd-accent); }
.weber-detail__h4 { margin: .8rem 0 .25rem; font-size: 1em; font-weight: 600; }
.weber-detail ul.weber-detail__list, .weber-detail ul.weber-detail__dates { list-style: none; margin: 0; padding: 0; }
.weber-detail__list li, .weber-detail__dates li { padding: .2rem 0; }
.weber-detail__parts { display: block; color: var(--wd-muted); font-size: .9em; }
.weber-detail__date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.weber-detail__dates--named .weber-detail__date { display: inline-block; min-width: 12.5em; }
.weber-detail__opt, .weber-detail__ref, .weber-detail__cycle { color: var(--wd-muted); font-size: .92em; }
.weber-detail__lbl { font-weight: 600; }
.weber-detail__more summary { cursor: pointer; color: var(--wd-accent); margin: .3rem 0; }
.weber-detail-link--small { font-size: .85em; margin-left: .35em; padding: 0 .4em; border: 1px solid var(--wd-line, #e6dcc0); border-radius: 3px; text-decoration: none; white-space: nowrap; }
.weber-detail__nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--wd-line); padding-top: .8rem; margin-top: .6rem; }
.weber-detail__next { margin-left: auto; text-align: right; }
.weber-detail__share { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--wd-line); padding-top: .8rem; margin-top: .8rem; }
.weber-detail__copy { font: inherit; font-size: .9em; padding: .3em .9em; border: 1px solid var(--wd-line); border-radius: 4px; background: #fff; cursor: pointer; }
.weber-detail__full { font-weight: 600; }

/* the popup */
.weber-detail-modal { position: fixed; inset: 0; z-index: 2147483600;   /* above the calendar Resources window (2147483000) */ display: flex; align-items: center; justify-content: center; padding: 16px; }
.weber-detail-modal[hidden] { display: none; }
.weber-detail-modal__backdrop { position: absolute; inset: 0; background: rgba(30, 20, 10, .45); }
.weber-detail-modal__box { position: relative; background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.25); width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.weber-detail-modal__bar { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem 0; }
.weber-detail-modal__back, .weber-detail-modal__x { font: inherit; background: none; border: 1px solid #e6dcc0; border-radius: 50%; cursor: pointer; }
.weber-detail-modal__back { border-radius: 4px; padding: .15em .7em; }
.weber-detail-modal__x { width: 2.2em; height: 2.2em; margin-left: auto; font-size: 1em; line-height: 1; }
.weber-detail-modal__title { margin: .2rem 1.4rem .4rem; font-size: 1.5em; line-height: 1.2; color: var(--gcid-link-color, #8b0000); }
.weber-detail-modal__body { overflow-y: auto; padding: 0 1.4rem 1.2rem; -webkit-overflow-scrolling: touch; }
.weber-detail-modal__loading { color: #888; font-style: italic; }
html.weber-detail-open { overflow: hidden; }

@media (max-width: 980px) {
	.weber-detail-modal__title { font-size: 1.35em; }
}
@media (max-width: 640px) {
	.weber-detail-modal { padding: 8px; }
	.weber-detail-modal__box { max-height: calc(100vh - 16px); }
	.weber-detail-modal__title { font-size: 1.2em; margin: .2rem 1rem .3rem; }
	.weber-detail-modal__body { padding: 0 1rem 1rem; }
	.weber-detail__dates--named .weber-detail__date { display: block; min-width: 0; }
	.weber-detail__nav { flex-direction: column; }
	.weber-detail__next { margin-left: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .weber-detail-modal * { transition: none; } }
