/* Island Class — full Additional CSS
   Paste this whole file into Appearance > Customize > Additional CSS,
   replacing what is already there, then save once.

   The rules below start from the site's Additional CSS as of
   18 November 2026, including the Infants 1 and Infants 2
   Previous/Next hide and the Infants lesson-list title hide
   (v2). A new block at the end also hides the theme's Previous
   Post and Next Post links on Standard 3, Music, and Maths
   Forms 1-3 lessons.
*/

/* Island Class: site-wide font and a few general layout classes
   Sets the main font to Arial and removes the default page margin.
   Also styles optional .header, .nav, .content and .footer classes
   if they appear on a page. This is not the theme's top menu
   (that menu uses different class names and is left as it is). */

body {
	font-family: 'Arial', sans-serif;
	margin: 0;
	padding: 0;
}

.header {
	background-color: #333;
	color: #fff;
	padding: 10px 20px;
	text-align: center;
}

.nav {
	padding: 0;
	margin: 0;
	list-style-type: none;
	background-color: #f2f2f2;
}

.nav li {
	padding: 8px 12px;
}

.nav li:hover {
	background-color: #ddd;
}

.nav li a {
	text-decoration: none;
	color: #333;
	display: block;
}

.content {
	padding: 20px;
}

.footer {
	background-color: #333;
	color: #fff;
	text-align: center;
	padding: 10px 20px;
	position: absolute;
	bottom: 0;
	width: 100%;
}

/* Island Class: hide duplicate theme title on pages with their own hero (2026/10/23, Maths form pages added 2026/10/24, Home added 2026/10/25, IT SBA guide added 2026/10/28) */
body.page-id-8454 .entry-header,
body.page-id-9243 .entry-header,
body.page-id-10738 .entry-header,
body.page-id-10739 .entry-header,
body.page-id-10740 .entry-header,
body.page-id-10399 .entry-header,
body.page-id-9647 .entry-header,
body.page-id-10611 .entry-header,
body.page-id-10614 .entry-header,
body.page-id-10615 .entry-header,
body.page-id-10616 .entry-header,
body.page-id-10617 .entry-header,
body.page-id-10618 .entry-header,
body.page-id-10619 .entry-header,
body.page-id-10620 .entry-header,
body.page-id-10621 .entry-header,
body.page-id-10154 .entry-header,
body.page-id-7569 .entry-header,
body.page-id-9698 .entry-header,
body.page-id-7940 .entry-header,
body.page-id-11181 .entry-header,
body.page-id-11182 .entry-header,
body.page-id-11183 .entry-header,
body.page-id-9230 .entry-header,
body.page-id-11461 .entry-header,
body.page-id-11462 .entry-header,
body.page-id-11463 .entry-header,
body.page-id-11464 .entry-header,
body.page-id-11465 .entry-header,
body.page-id-11466 .entry-header,
body.page-id-11467 .entry-header,
body.page-id-11468 .entry-header,
body.page-id-11469 .entry-header,
body.page-id-11470 .entry-header,
body.page-id-11471 .entry-header,
body.page-id-11327 .entry-header {
	display: none;
}

/* Island Class: hide the Updates change log on pages (2026/10/24)
   Hides the "Updates" heading and the dated change lines under it,
   on PAGES only. Posts are not affected. The © copyright line and
   everything else on the page stay visible.

   ON/OFF SWITCH: the line marked TOGGLE near the bottom of this block.
   - To SHOW the Updates again: on the TOGGLE line, change the word
     none  to  revert   (so it reads  display: revert;)
     then press Save Changes.
   - To HIDE them again: change  revert  back to  none
     (so it reads  display: none;)  then press Save Changes.
   Change only that one word. Leave the rest of this block as it is.

   Which pages it works on: the Updates heading must have the HTML anchor
   "updates" (Heading block > Advanced > HTML anchor) with the © line as
   the last paragraph after the change lines, OR the heading and change
   lines must sit in a Group block with the Additional CSS class
   "ic-updates" (Group block > Advanced). */
body.page .entry-content > #updates,
body.page .entry-content > #updates ~ :is(p, ul, ol):has(~ p:not(:empty)),
body.page .entry-content .ic-updates {
  display: none; /* TOGGLE: none = hidden, revert = shown */
}

/* Island Class: move the right sidebar to the bottom on computers (2026/10/24)
   On computers and wide tablets (986px and wider) this moves the
   right-hand sidebar (Blog Stats, the search box and the donation
   box) from the right side to the bottom of the page, under the
   content and above the footer, on EVERY page, post and archive.
   The content then uses the full 1140px width of the site. This is
   the same thing the theme already does on phones and small tablets.
   On phones and narrow tablets nothing changes.

   ON/OFF SWITCH: the line marked TOGGLE (the first line below).
   - To put the sidebar back on the RIGHT: on the TOGGLE line, change
     986px  to  99999px   (so it reads  @media (min-width: 99999px) {)
     then press Save Changes.
   - To move it to the BOTTOM again: change  99999px  back to  986px
     then press Save Changes.
   Change only that one number. Leave the rest of this block as it is. */
@media (min-width: 986px) { /* TOGGLE: 986px = sidebar at bottom, 99999px = sidebar on right */
  .site-content > .content-area {
    float: none;
    width: 100%;
  }
  .site-content > .widget-area {
    float: none;
    clear: both;
    width: 100%;
    max-width: 820px;
    margin: 1.6em 0 0;
  }
}

/* Island Class: comfortable text width on computers (2026/10/24)
   On computers and wide tablets (986px and wider), plain text in posts,
   pages and archives (paragraphs, lists, quotes and h2 to h4 headings)
   is kept between 760px and 960px wide, depending on the screen size,
   so lines are not too long to read. Everything else still uses the
   full content width: pictures, figures, cards, tables, Try it boxes,
   code, videos, and anything inside groups or columns.
   On phones and narrow tablets nothing changes.

   ON/OFF SWITCH: the line marked TOGGLE (the first line below).
   - For FULL-WIDTH text: on the TOGGLE line, change  986px  to  99999px
     (so it reads  @media (min-width: 99999px) {)  then press Save Changes.
   - To narrow the text again: change  99999px  back to  986px
     then press Save Changes.
   Change only that one number. Leave the rest of this block as it is. */
@media (min-width: 986px) { /* TOGGLE: 986px = comfortable text width, 99999px = full width */
  .entry-content > :is(p, ul, ol, blockquote, h2, h3, h4) {
    max-width: clamp(760px, 70vw, 960px);
  }
}

/* Island Class: hide the theme's duplicate entry title when the content
   already has its own heading or hero title (2026/11/13)

   Why this happens: the Nucleare theme prints an H1.entry-title inside
   .entry-header on every page and post. Many Island Class pages also
   start their content with a styled hero banner that repeats the same
   title as an H2. Sighted visitors then see the title twice.

   What this block does: when that pattern is present, the theme
   .entry-header is visually hidden with a screen-reader-only clip
   (not display:none), so the theme H1 stays available to assistive
   technology. The hero title in the content stays visible on screen.

   Some screen readers may still announce both titles when the wording
   is the same. That is a trade-off so the page keeps an H1 in the
   accessibility tree.

   Scope — preferred :has() selector:
   The theme header is hidden only when the FIRST child of
   .entry-content is a banner/hero (an element with an inline style
   that includes linear-gradient or border-radius) and that banner
   already contains an h1 or h2. Mid-page section headings, such as
   "Contents" on a lesson-list page, do not match, because they are
   not inside that first-child hero.

   This covers, among others:
   - Infants 2 Revision Exercises (page 12153)
   - the Infants 2 hub (10154; also listed in the 2026/10/23
     display:none block above, which is left unchanged)
   - Infants 1 hub (11923) and Infants 1 subject pages (11950–11958)
   - other existing and future pages that use the same hero markup

   This does NOT hide the title on:
   - the Spanish and Spelling revision posts (12141 and 12144), which
     have no content hero and rely on the theme title
   - lesson-list and Subjects pages (10157, 11959, 9708), which have
     no duplicate hero title

   Pages already listed in the 2026/10/23 block above are unchanged.
   That older block still uses display:none for those IDs.

   Fallback: a body-class list for the pages checked on 2026/11/13
   that need the hide and may not match :has() in every layout, so
   the title is still hidden if :has() is unsupported or the first
   child wrapping differs.

   This CSS is for pasting into Appearance > Customize > Additional
   CSS. It was not saved to the site by the authoring bot. */

/* 1. :has() — first content block is a hero/banner with its own heading */
body.page article:has(.entry-content > [style*="linear-gradient"] :is(h1, h2)) .entry-header,
body.page article:has(.entry-content > [style*="border-radius"] :is(h1, h2)) .entry-header,
body.single article:has(.entry-content > [style*="linear-gradient"] :is(h1, h2)) .entry-header,
body.single article:has(.entry-content > [style*="border-radius"] :is(h1, h2)) .entry-header,
/* 2. Fallback list of pages checked on 2026/11/13 that have a duplicate theme title */
body.page-id-12153 .entry-header,
body.page-id-11923 .entry-header,
body.page-id-11950 .entry-header,
body.page-id-11951 .entry-header,
body.page-id-11952 .entry-header,
body.page-id-11953 .entry-header,
body.page-id-11954 .entry-header,
body.page-id-11955 .entry-header,
body.page-id-11956 .entry-header,
body.page-id-11957 .entry-header,
body.page-id-11958 .entry-header {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* Island Class: hide the theme's Previous Post / Next Post on
   Infants 1 and Infants 2 lessons (2026/11/18)

   What this does:
   At the bottom of each lesson, the Nucleare theme adds its own
   "Previous Post" and "Next Post" links. Those links follow the
   order posts were published on the whole site, not the order of
   the course. A parent can finish an Infants lesson and land on a
   VAT lesson or a C programming post. This block hides only that
   theme bar.

   What stays visible:
   The Previous, Next and "Back to Maths" (or that subject's) links
   written inside the lesson itself stay as they are. Those are
   ordinary paragraphs in the lesson, not this theme bar. The
   site's top menu is not affected. Other courses are not affected.

   Which pages it applies to:
   Any single post filed in Infants 1 or Infants 2, including the
   subject categories (Maths, English, Science, Social Studies,
   Agricultural Science, Spanish, Arts, Values and PE) and Infants 2
   Revision Exercises. The parent "Infants 1" category is empty at
   the moment (lessons are filed only in the subject categories),
   so the rule also matches category names that start with
   infants-1- or infants-2-.

   How the rule works:
   The theme bar is the <nav class="navigation post-navigation">
   that sits just after the lesson article. Category names appear
   on the article, not on the body tag, so the rule targets that
   article and then the theme bar that follows it. This works in
   older browsers as well as current phones. If a very old browser
   skipped the rule, the theme links would simply still show.

   How to undo:
   Delete this whole block, from this comment down to the closing
   brace, then press Save Changes. Nothing else in this file needs
   to change.
*/
article.category-infants-1 ~ nav.navigation.post-navigation,
article.category-infants-2 ~ nav.navigation.post-navigation,
article[class*="category-infants-1-"] ~ nav.navigation.post-navigation,
article[class*="category-infants-2-"] ~ nav.navigation.post-navigation {
  display: none;
}

/* Island Class: hide the theme's duplicate page title on the two
   lesson-list pages (2026/11/18)
   Infants 1 lesson list (/infants-1-lessons/, page 11959) and
   Infants 2 lesson list (/infants-2-lessons/, page 10157).
   The title is hidden visually only, so screen readers still hear it,
   the same way as the Infants 1 subject pages above. */
body.page-id-11959 .entry-header,
body.page-id-10157 .entry-header {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Island Class: hide the theme's Previous Post / Next Post on
   Standard 3, Music, and Maths Forms 1-3 lessons (2026/11/18)

   What this does:
   Same as the Infants block above. The Nucleare theme adds
   "Previous Post" and "Next Post" links after the lesson. Those
   follow the order posts were published on the whole site, not
   the order of the course. This block hides only that theme bar
   on the courses named here.

   What stays visible:
   The Previous, Next and Course (or Back) links written inside
   the lesson itself stay as they are. Other courses are left
   alone, including NCSE ICT, CSEC IT, CAPE Computer Science,
   Animation and Game Design, Recorded Classes, and ordinary
   blog posts. Those either have no in-lesson Previous and Next
   links, or only some lessons have them, so hiding the theme
   bar would leave some posts with no links at the end.

   Which pages it applies to:

   1. Standard 3, including the Standard 3 Maths subject
      category. Some Maths lessons are filed only in
      Standard 3 Maths (the article class is
      category-standard-3-maths, with no parent
      category-standard-3 class), so the rule also matches
      category names that start with standard-3-.

   2. Music, including CSEC Music and NCSE Music (Forms 1-3).
      The article may carry the parent class category-music
      and the subject classes category-csec-music and
      category-ncse-music-forms-1-3.

   3. Maths Forms 1-3, filed as NCSE Mathematics
      (category-ncse-mathematics). No subject sub-categories
      were in use when this rule was written.

   How the rule works:
   The theme bar is the <nav class="navigation post-navigation">
   that sits just after the lesson article. Category names appear
   on the article, not on the body tag, so the rule targets that
   article and then the theme bar that follows it.

   How to undo:
   Delete this whole block, from this comment down to the closing
   brace, then press Save Changes. Nothing else in this file needs
   to change.
*/
article.category-standard-3 ~ nav.navigation.post-navigation,
article[class*="category-standard-3-"] ~ nav.navigation.post-navigation,
article.category-music ~ nav.navigation.post-navigation,
article.category-csec-music ~ nav.navigation.post-navigation,
article.category-ncse-music-forms-1-3 ~ nav.navigation.post-navigation,
article[class*="category-csec-music"] ~ nav.navigation.post-navigation,
article[class*="category-ncse-music-"] ~ nav.navigation.post-navigation,
article.category-ncse-mathematics ~ nav.navigation.post-navigation {
  display: none;
}