/* The help panel (Views/Shared/_HelpPanel.cshtml, help-panel.js), in-page help links (HelpLinkTagHelper) and "Was this
   helpful?" (Views/Help/_HelpVote.cshtml). Site colours: links #006699, accent #d9950e, panels #f6f2e4.

   The "?": in the empty right margin beside the 980px page, so it never covers the page; when the window is too narrow
   for that, a slim tab on the window's edge. It moves up while the footer is on screen (--ds-help-lift, help-panel.js).
   The panel: 380px on the right. From 1360px wide the page moves left just enough to clear it (--ds-help-shift);
   narrower, it slides over the page with a dimmed background. Mobile: a sheet over the whole screen. */

.ds-help-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- The "?" ---- */
.ds-help-fab {
    position: fixed; z-index: 1400; bottom: calc(24px + var(--ds-help-lift, 0px));
    right: max(12px, calc((100vw - 980px) / 4 - 24px));
    width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
    background: #006699; color: #fff; font: bold 24px/48px Arial, Helvetica, sans-serif; text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer;
}
.ds-help-fab:hover { background: #00557f; }
.ds-help-fab:focus-visible, .ds-help-panel :focus-visible { outline: 3px solid #d9950e; outline-offset: 2px; }
/* Too narrow for the margin: a slim tab on the edge, half way down, that only covers the window's own edge. */
@media (max-width: 1109px) {
    .ds-help-fab { right: 0; bottom: auto; top: 55%; width: 30px; height: 56px; border-radius: 8px 0 0 8px; font-size: 20px; line-height: 56px; }
}
.ds-help-open .ds-help-fab { visibility: hidden; }

/* ---- The panel ---- */
/* The top layer: help is asked for, often about the dialog that's open, so it shows over every dialog (colorbox 9999,
   select2 10000). The floating "?" stays below them (1400), so it doesn't float over an open dialog. */
.ds-help-panel {
    position: fixed; z-index: 10100; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%;
    display: flex; flex-direction: column; box-sizing: border-box;
    background: #fff; border-left: 1px solid #ddd8c6; box-shadow: -4px 0 18px rgba(0, 0, 0, .15);
    font: 15px/1.5 Arial, Helvetica, sans-serif; color: #333; text-align: left;
    transform: translateX(100%); transition: transform .2s ease;
}
.ds-help-open .ds-help-panel { transform: none; }
.ds-help-scrim { position: fixed; z-index: 10050; inset: 0; background: rgba(0, 0, 0, .35); }

.ds-help-bar { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 14px; border-bottom: 1px solid #ddd8c6; background: #f6f2e4; }
/* the article's section (_HelpPanelArticle): 16px fits every section name on one line, and a long one wraps rather than being cut */
.ds-help-title { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 1.25; color: #333; outline: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ds-help-bar button, .ds-help-bar a {
    flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 6px;
    background: none; color: #006699; font: 24px/34px Arial, Helvetica, sans-serif; text-align: center; text-decoration: none; cursor: pointer;
}
.ds-help-bar .ds-help-full { font-size: 20px; }
.ds-help-bar button:hover, .ds-help-bar a:hover { background: #fff; border-color: #ddd8c6; }
.ds-help-body { flex: 1; overflow-y: auto; padding: 14px 16px 30px; }
.ds-help-loading, .ds-help-error, .ds-help-empty { color: #666; }
.ds-help-error { color: #a3271d; }

.ds-help-body .help-search { display: flex; gap: 6px; margin: 0 0 14px; }
.ds-help-body .help-search input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #b9b39e; border-radius: 4px; font-size: 15px; }
.ds-help-body .help-search button { padding: 0 12px; border: 0; border-radius: 4px; background: #006699; color: #fff; font-weight: bold; cursor: pointer; }
.ds-help-heading { margin: 16px 0 6px; font-size: 15px; color: #333; }
.ds-help-list { list-style: none; margin: 0 0 8px; padding: 0; }
.ds-help-list a { display: block; padding: 6px 8px; border-left: 3px solid transparent; color: #006699; text-decoration: none; }
.ds-help-list a:hover { border-left-color: #d9950e; background: #f6f2e4; }
.ds-help-topic { margin: 0 0 4px; border-bottom: 1px solid #eee9d8; }
.ds-help-topic summary { padding: 7px 4px; font-weight: bold; cursor: pointer; }

/* The article inside the panel: help.css styles it on the full page; these are the same rules, sized for the panel. */
/* a:link / :visited, so the site's own link colours (tds.css a:link) don't win */
.ds-help-body a.help-quick-start:link, .ds-help-body a.help-quick-start:visited { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #006699; color: #fff; font-weight: bold; font-size: 16px; line-height: 1.3; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.ds-help-body a.help-quick-start:hover, .ds-help-body a.help-quick-start:focus { background: #005580; color: #fff; }
.ds-help-body .help-quick-start .help-qs-icon { flex: none; width: 40px; height: 48px; border-radius: 4px; background: #fff; color: #b32800; font-size: 11px; font-weight: 900; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; box-sizing: border-box; }
.ds-help-body .help-quick-start .help-qs-text { flex: 1; }
.ds-help-body .help-quick-start .help-qs-go { flex: none; font-size: 20px; }
.ds-help-body .help-article { font-size: 15px; line-height: 1.5; }
.ds-help-body .help-article h1 { font-size: 20px; color: #006699; margin: 0 0 10px; }
.ds-help-body .help-article h2 { font-size: 17px; margin: 22px 0 8px; padding-top: 8px; border-top: 1px solid #ddd8c6; }
.ds-help-body .help-article h3 { font-size: 15px; margin: 16px 0 6px; }
.ds-help-body .help-article img { max-width: 100%; height: auto; margin: 6px 0 10px; border: 1px solid #ccc; border-radius: 8px; }
.ds-help-body .help-article blockquote { margin: 12px 0; padding: 8px 12px; border: 1px solid #c3dbe7; border-radius: 6px; background: #f0f7fb; font-size: 14px; }
.ds-help-body .help-article blockquote p { margin: 4px 0; }
.ds-help-body .help-article table { border-collapse: collapse; margin: 8px 0 14px; font-size: 13px; }
.ds-help-body .help-article th, .ds-help-body .help-article td { border: 1px solid #ddd8c6; padding: 4px 6px; text-align: left; vertical-align: top; }
.ds-help-body .help-article th { background: #f6f2e4; }
.ds-help-body .help-article a { color: #006699; }
.ds-help-body .help-contact { margin-top: 18px; padding: 10px 12px; border-left: 4px solid #006699; background: #eef6fa; font-size: 14px; }
.ds-help-body .help-contact-title { font-weight: bold; }
.ds-help-flash { animation: ds-help-flash 2s ease-out; }
@keyframes ds-help-flash { from { background: #fff3c4; } to { background: transparent; } }

/* ---- The page beside the panel (wide windows): moved left only as far as needed, never under the panel ---- */
html.ds-help-push { overflow-x: hidden; }
html.ds-help-push body { position: relative; left: calc(-1 * var(--ds-help-shift, 0px)); transition: left .2s ease; }
html.ds-help-instant body, html.ds-help-instant .ds-help-panel { transition: none !important; }
/* Started open (the inline script in _HelpPanel.cshtml): show the panel's frame at once, before help-panel.js runs. */
html.ds-help-instant #dsHelpPanel { transform: none; }

/* ---- Mobile: a sheet over the whole screen ---- */
.ds-help--mobile .ds-help-panel { width: 100%; border-left: 0; transform: translateY(100%); }
.ds-help--mobile.ds-help-open .ds-help-panel { transform: none; }
.ds-help--mobile .ds-help-body .help-search input { font-size: 16px; }   /* iPhones don't zoom in on 16px */
/* The "?" in the mobile site's header (Site.mobile.Master): top left, where the header is empty (the logo is centred and
   the language menu is on the right). Scrolls away with the header; it never floats over the page. */
.ds-help-header-btn {
    position: absolute; z-index: 10; top: 10px; left: 10px;
    width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: #006699; color: #fff; font: bold 20px/36px Arial, Helvetica, sans-serif; text-align: center; cursor: pointer;
}

/* ---- In-page help links ("Why CK-?") ---- */
.ds-help-link {
    display: inline-block; margin-left: 6px; padding: 1px 9px 1px 7px; border: 1px solid #9cc4d8; border-radius: 12px;
    background: #eef6fa; color: #006699 !important; font: 12px/18px Arial, Helvetica, sans-serif; text-decoration: none !important;
    white-space: nowrap; vertical-align: 1px;
}
.ds-help-link::before { content: "?"; display: inline-block; width: 14px; height: 14px; margin-right: 4px; border-radius: 50%; background: #006699; color: #fff; font: bold 10px/14px Arial, Helvetica, sans-serif; text-align: center; vertical-align: 1px; }
.ds-help-link:hover { background: #dcedf6; }

/* ---- "Was this helpful?" ---- */
.ds-help-vote { margin: 26px 0 8px; padding: 12px 14px; border: 1px solid #ddd8c6; border-radius: 6px; background: #fbf9f2; font: 14px/1.5 Arial, Helvetica, sans-serif; }
.ds-help-vote-question { font-weight: bold; margin-right: 8px; }
.ds-help-vote-buttons button {
    min-width: 64px; margin: 2px 4px 2px 0; padding: 6px 14px; border: 1px solid #b9b39e; border-radius: 4px;
    background: #fff; color: #333; font: bold 14px Arial, Helvetica, sans-serif; cursor: pointer;
}
.ds-help-vote-buttons button[aria-pressed="true"] { border-color: #006699; background: #006699; color: #fff; }
.ds-help-vote-thanks, .ds-help-vote-sent { margin: 8px 0 0; color: #3b6d11; }
.ds-help-vote-comment { margin-top: 10px; }
.ds-help-vote-comment label { display: block; font-weight: bold; margin-bottom: 4px; }
.ds-help-vote-comment textarea { box-sizing: border-box; width: 100%; padding: 8px; border: 1px solid #b9b39e; border-radius: 4px; font: 15px Arial, Helvetica, sans-serif; }
.ds-help-vote-note { margin: 4px 0 8px; color: #666; font-size: 13px; }
.ds-help-vote-comment button { padding: 6px 16px; border: 0; border-radius: 4px; background: #006699; color: #fff; font-weight: bold; cursor: pointer; }

/* ---- Secretary help: which sport the articles are written for ---- */
.help-showing-for-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 12px; font: 14px Arial, Helvetica, sans-serif; }
.help-showing-for-label { font-weight: bold; }
.help-showing-for { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.help-showing-for select { max-width: 100%; padding: 5px 6px; border: 1px solid #b9b39e; border-radius: 4px; font-size: 14px; }
.help-showing-for select.is-quiet { color: #555; background: #faf8f0; }
.help-for-chip { padding: 5px 11px; border: 1px solid #b9b39e; border-radius: 999px; background: #fff; color: #1a3a6a; font: 14px Arial, Helvetica, sans-serif; cursor: pointer; }
.help-for-chip:hover { border-color: #1a6aa6; }
.help-for-chip.is-selected { background: #1a6aa6; border-color: #1a6aa6; color: #fff; font-weight: bold; }
.help-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.help-not-for { padding: 8px 12px; border-left: 4px solid #d9950e; background: #fdf5e6; }

@media print { #dsHelp, .ds-help-link, .ds-help-vote { display: none !important; } html.ds-help-push body { left: 0 !important; } }

/* a video in an article (the secretary teaser in Publish your schedule to Ringside): 16:9, with a big play button over the poster
   (with preload="none" the browser shows none in the middle, and clicking the poster does nothing) */
.ds-help-body .help-video { position: relative; max-width: 560px; aspect-ratio: 16 / 9; margin: 12px 0 18px; border-radius: 10px; overflow: hidden; background: #0c5ea3; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ds-help-body .help-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.ds-help-body .help-video .video-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 6px 18px rgba(0,0,0,.35); cursor: pointer; padding: 0; }
.ds-help-body .help-video .video-play span { display: block; margin-left: 25px; width: 0; height: 0; border-left: 20px solid #0c5ea3; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.ds-help-body .help-video .video-play:hover { background: #fff; }
.ds-help-body .help-video .video-play[hidden] { display: none; }

/* Screenshots zoom in (help-panel.js): on the full help pages and in the panel */
.help-article img { cursor: zoom-in; }
.help-article a img { cursor: pointer; }
.ds-help-zoom { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 56px 24px 24px; background: rgba(20, 24, 28, 0.86); cursor: zoom-out; }
.ds-help-zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #ffffff; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); }
.ds-help-zoom-close { position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #ffffff; color: #333333; font-size: 28px; line-height: 40px; cursor: pointer; }
.ds-help-zoom-close:focus-visible { outline: 3px solid #7fb3e0; outline-offset: 2px; }
