/* Kennis - the tabs of a language with an introduction, on the bottom edge of its banner (sub/kennis.php). In Prod css/kennis-tabs.css
   (tools/longread-prod.py). The overview has a radio button per tab, out of sight but reached with the keyboard, the name of the tab in
   the address (longread.js); an article of the language has the same tabs as links to its overview, Articles chosen, at its own
   address. Simple tabs without animation; on the edge of the banner as the title of a course's details stands on its banner: the chosen one white and flowing into the page under it, the others blue-grey, with a light gradient a little darker at the bottom, as a small shadow */
.kennis .tabs.overview > input { position: absolute; opacity: 0; pointer-events: none; }
.kennis .tabs.overview > label, .kennis .tabs.overview > a { display: inline-flex; align-items: center; height: 33px; box-sizing: border-box; margin: 0 6px 0 0;
    padding: 1px 16px 0; border-radius: 15px 15px 0 0; background: rgba(208, 219, 235, .96); color: #3d4f86; font-weight: bold; text-decoration: none;
    cursor: pointer; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.kennis .tabs.overview > label:hover, .kennis .tabs.overview > a:hover { background: rgba(226, 233, 244, .98); color: #3d4f86; }
.kennis .tabs.overview > input:checked + label, .kennis .tabs.overview > a.on { background: #fff; color: #2b3f93; box-shadow: 0 0 8px rgba(0, 0, 0, .55);
    clip-path: inset(-12px -12px 0 -12px); }
.kennis .tabs.overview > input:focus-visible + label, .kennis .tabs.overview > a:focus-visible { outline: 2px solid #73d2f7; outline-offset: 2px; }
/* what each tab of the overview shows; the closing belongs to the introduction: seen with it only */
.kennis .tabs.overview > .tab-intro, .kennis .tabs.overview > .tab-articles, .kennis .tabs.overview > .tab-phrases, .kennis .tabs.overview > .tab-more,
.kennis .tabs.overview > .closer { display: none; }
.kennis .tabs.overview > .tab-intro, .kennis .tabs.overview > .tab-articles, .kennis .tabs.overview > .tab-phrases, .kennis .tabs.overview > .tab-more { padding-top: 8px; }
.kennis .tabs.overview > #tab-intro:checked ~ .tab-intro, .kennis .tabs.overview > #tab-intro:checked ~ .closer,
.kennis .tabs.overview > #tab-articles:checked ~ .tab-articles, .kennis .tabs.overview > #tab-phrases:checked ~ .tab-phrases,
.kennis .tabs.overview > #tab-more:checked ~ .tab-more { display: block; }
.kennis .tabs.overview > .tab-articles { padding-top: 14px; }
.kennis .tabs.overview .tab-articles .head { max-width: none; }      /* no note beside it any more */
/* Linda at the top of Getting started a little further from the tabs */
.kennis .tabs.overview > .tab-phrases { padding-top: 16px; }
/* the article under the tabs, as far from them as the list of the overview */
.kennis nav.tabs.overview + h1 { margin-top: 18px; }
@media (min-width: 601px)
{
    .kennis .banner.full:has(+ .tabs.overview) { margin-bottom: 0; }
    .kennis .banner.full + .tabs.overview { position: relative; z-index: 4; margin-top: -33px; }
    .kennis .tabs.overview > label, .kennis .tabs.overview > a { background: linear-gradient(rgba(222, 230, 242, .97), rgba(205, 216, 233, .97) 62%, rgba(178, 192, 216, .97));
        box-shadow: inset 0 -5px 6px -5px rgba(30, 45, 85, .35); }
    .kennis .tabs.overview > label:hover, .kennis .tabs.overview > a:hover { background: linear-gradient(rgba(236, 241, 248, .98), rgba(220, 229, 241, .98) 62%, rgba(196, 208, 229, .98)); }
    /* the chosen one without a clip: a clip of its shadow on the edge of the banner falls on half a pixel at some zooms, and that
       pixel, half shadow and half white, is a hairline under the tab (a grey row at 110%; "ik zie nog een heel subtiel
       subpixellijntje bij de tabs aan de onderkant"). So the shadow stops before the edge (::before, 12px short of the bottom, fading
       out above it) and the white of the tab runs two pixels on under the edge (::after), over whatever the edge of the banner
       leaves there: on the edge itself there is nothing to blend */
    .kennis .tabs.overview > input:checked + label, .kennis .tabs.overview > a.on { position: relative; isolation: isolate; background: none; box-shadow: none;
        clip-path: none; }
    .kennis .tabs.overview > input:checked + label::before, .kennis .tabs.overview > a.on::before { content: ""; position: absolute; z-index: -2; inset: 0 0 12px 0;
        border-radius: inherit; box-shadow: 0 0 8px rgba(0, 0, 0, .55); }
    .kennis .tabs.overview > input:checked + label::after, .kennis .tabs.overview > a.on::after { content: ""; position: absolute; z-index: -1; inset: 0 0 -2px 0;
        border-radius: inherit; background: #fff; }
}
/* the flag beside the name of the language in the banner of an article, as on its overview, where it is the heading's (longread.css,
   .kennis h1 > img.flag): a sticker, a little turned, over the left edge, a white rim and a shadow in navy */
.kennis .banner.full .title > img.flag { position: relative; top: 2px; flex: none; box-sizing: content-box; width: 60px; height: 40px; margin: 0 11px 0 -48px;
    border: 3px solid #fff; border-radius: 4px; transform: rotate(-8deg); box-shadow: 0 2px 5px rgba(27, 44, 122, .3), 0 0 0 1px rgba(27, 44, 122, .06); }
/* on a phone one row of four under a slim banner (that banner: kennis.css), words with a line under them, the chosen one underlined
   in navy */
@media (max-width: 600px)
{
    .kennis .banner.full:has(+ .tabs.overview) { margin-bottom: 0; }
    .kennis .tabs.overview { display: flex; flex-wrap: wrap; gap: 0; }
    .kennis .tabs.overview > label, .kennis .tabs.overview > a { flex: 1 1 0; min-width: 0; justify-content: center; height: 40px; margin: 0; padding: 0 2px;
        border: 0; border-bottom: 2px solid #dde3ee; border-radius: 0; background: none; box-shadow: none; clip-path: none; -webkit-backdrop-filter: none;
        backdrop-filter: none; color: #5b6f9a; font-size: clamp(13px, 3.9vw, 15px); white-space: nowrap; }
    .kennis .tabs.overview > label:hover, .kennis .tabs.overview > a:hover { background: #f3f6fb; color: #2b3f93; }
    .kennis .tabs.overview > input:checked + label, .kennis .tabs.overview > a.on { padding-top: 1px; border-bottom: 3px solid #2b3f93; background: none; color: #2b3f93;
        box-shadow: none; clip-path: none; outline: none; }
    .kennis .tabs.overview > input:focus-visible + label, .kennis .tabs.overview > a:focus-visible { outline: 2px solid #73d2f7; outline-offset: -2px; }
    .kennis .tabs.overview > div { flex-basis: 100%; }
    .kennis nav.tabs.overview + h1 { margin-top: 14px; }
    /* the flag inside the bar, not over its edge */
    .kennis .banner.full h1 > img.flag, .kennis .banner.full .title > img.flag { top: 0; width: 32px; height: 21px; margin: 0; border-width: 2px; }
}
