/* Home page (index.html), on top of uog_style.css: breadcrumb, section
   menu, an introduction and image-and-text tiles, as on the University's
   pages. Colours are the palette at the top of uog_style.css. */

.ix { color: #011451; }

/* Skip link: hidden until it has keyboard focus */
.ix-skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: #f2d25c;
  color: #011451;
  font-weight: 700;
}
.ix-skip:focus { top: 0.5rem; }

/* Section menu in the navy bar */
#site-header { box-sizing: border-box; }

.ix-menu {
  margin-left: auto;
  margin-right: 2rem;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.ix-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
}

.ix-menu a:hover, .ix-menu a:focus-visible { text-decoration: underline; color: #f2d25c; }

.ix-menu .ix-menu-login {
  border: 1px solid white;
  padding: 0.35rem 1rem;
}

.ix-breadcrumb {
  margin: 1rem 3rem 0;
  font-size: 0.85rem;
  color: #4f5961;
}
.ix-breadcrumb a { color: #005398; }

.ix-intro {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.ix-intro a { color: #005398; }

/* Tiles: photo, heading, text, link */
.ix-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ix-tile {
  background: white;
  border-top: 6px solid #011451;
  box-shadow: 0 1px 3px rgba(1, 20, 81, 0.12);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 80px; /* below the narrow header when jumped to */
}

.ix-about    { border-top-color: #005398; }
.ix-involved { border-top-color: #a60367; }
.ix-login    { border-top-color: #006630; }

.ix-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ix-tile-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ix-tile h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.ix-tile .section-text { color: #011451; }

.ix-more {
  margin-top: auto;
  padding-top: 1rem;
  color: #005398;
  font-weight: 700;
}
.ix-more::after { content: " \203A"; }

.ix .login-form { margin-top: 1rem; max-width: none; }
.ix .form-group label { font-weight: 700; margin-bottom: 4px; }

.ix-top {
  margin: 0 3rem 1.5rem;
  text-align: right;
}
.ix-top a { color: #005398; }

.ix-address {
  font-style: normal;
  line-height: 1.6;
  margin: 1rem 0;
  color: #011451;
}
.ix-address a { color: #011451; text-decoration: underline; }

@media (max-width: 1000px) {
  .ix-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ix-breadcrumb, .ix-top { margin-left: 1rem; margin-right: 1rem; }
  .ix-menu { margin-right: 0.5rem; gap: 1rem; }
  .ix-menu a:not(.ix-menu-login) { display: none; }
  #site-header #main-logo { margin: 1rem 0.5rem; width: 160px; height: auto; }
}

/* "How codeteacher works" band on the home page */
.ix-how {
  margin-top: 16px;
  background: white;
  border-top: 6px solid #011451;
  box-shadow: 0 1px 3px rgba(1, 20, 81, 0.12);
  padding: 1rem 1.5rem 1.25rem;
  scroll-margin-top: 80px;
}
.ix-how h3 { margin: 0 0 0.5rem; }
.ix-how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}
.ix-how h4 { margin: 0.75rem 0 0.25rem; font-size: 1rem; }
.ix-how p { margin: 0; line-height: 1.5; }
.ix-how a { color: #005398; }

/* Privacy notice (privacy.html) */
.pv { max-width: 60rem; line-height: 1.55; }
.pv h1 { margin-bottom: 0.25rem; }
.pv h2 { margin: 1.5rem 0 0.5rem; color: #011451; }
.pv h3 { margin: 1.25rem 0 0.25rem; font-size: 1.05rem; color: #011451; }
.pv p, .pv li { color: #011451; }
.pv a { color: #005398; }
.pv-updated { color: #4f5961 !important; font-size: 0.9rem; }
.pv-pupils {
  background: white;
  border-top: 6px solid #006630;
  box-shadow: 0 1px 3px rgba(1, 20, 81, 0.12);
  padding: 0.5rem 1.5rem 1rem;
  font-size: 1.05rem;
}
.pv-full {
  background: white;
  border-top: 6px solid #005398;
  box-shadow: 0 1px 3px rgba(1, 20, 81, 0.12);
  padding: 0.5rem 1.5rem 1rem;
  margin-top: 16px;
}
.pv-table-wrap { overflow-x: auto; }
.pv-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.pv-table th, .pv-table td { border-bottom: 1px solid #d0d4e0; padding: 6px 8px; text-align: left; vertical-align: top; color: #011451; }
.pv-table thead th { background: #f4f5f8; }
.pv-todo { background: #fff3cd; border: 1px solid #c99700; padding: 0 4px; }

@media (max-width: 768px) {
  .ix-how-grid { grid-template-columns: 1fr; }
  .ix-how, .pv-pupils, .pv-full { padding-left: 1rem; padding-right: 1rem; }
}
