/* Colors follow the original Google Sites "Simple" theme. */
:root {
  --fg: #212121;
  --heading: #226e93;
  --link: #006580;
  --blue: #1e6c93;      /* Emphasis 1 section background. */
  --grey: #f2f2f2;      /* Emphasis 2 section background. */
  --max: 1080px;
  --gutter: max(24px, calc((100% - var(--max)) / 2));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--fg);
  font: 15px/1.6667 Lato, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
        Arial, sans-serif;
  background: #fff;
}

a { color: var(--link); }

/* Header: site title and navigation. */
.site-header { background: var(--heading); }
.site-header .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.site-title {
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
}
.site-header nav a {
  display: inline-block;
  margin-left: 4px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: #fff; }
.site-header nav a.active { color: #fff; border-bottom-color: #fff; }

/* Sections: full-width background, content limited to --max. */
section { padding: 28px var(--gutter); }
section > :first-child { margin-top: 0; }
section > :last-child { margin-bottom: 0; }

h1 { font-size: 45px; font-weight: 300; line-height: 1.2; margin: .2em 0;
     color: var(--heading); letter-spacing: .5px; }
h2 { font-size: 25px; font-weight: 400; line-height: 1.4; margin: 1em 0 .3em;
     color: var(--heading); }
h3 { font-size: 19px; font-weight: 400; line-height: 1.4; margin: 1em 0 .3em;
     color: var(--heading); }
p { margin: .6em 0; }
img { max-width: 100%; height: auto; }
ul { list-style-type: square; padding-left: 1.4em; }
code { font-family: Consolas, "Source Code Pro", monospace; }

/* Title section with background image (home page). */
section.hero {
  position: relative;
  padding-top: 48px;
  padding-bottom: 48px;
  color: #fff;
  background: var(--heading) center / cover no-repeat;
}
section.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 33, 33, .4);
}
section.hero > * { position: relative; }
section.hero h1, section.hero h2, section.hero h3,
section.hero a { color: #fff; }
section.hero h1 { font-size: 60px; }

/* Title-only section. */
section.title { padding-top: 40px; padding-bottom: 8px; }
section.title h1 { font-size: 60px; }

/* Emphasis 1: dark blue background, white text. */
section.emph1, .site-footer { background: var(--blue); color: #fff; }
section.emph1 h1, section.emph1 h2, section.emph1 h3,
section.emph1 a, .site-footer a { color: #fff; }

/* Emphasis 2: light grey background. */
section.emph2 { background: var(--grey); }

/* Side-by-side columns (e.g. English | 中文), stacked on small screens. */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 40px;
  align-items: start;
}
.col > :first-child { margin-top: 0; }

.red { color: #ff0000; }
.green { color: #008000; }
section.emph1 .red, section.emph1 .green { color: inherit; font-weight: 700; }

.site-footer {
  padding: 20px var(--gutter);
  font-size: 13px;
}
.site-footer p { margin: 2px 0; }

/* Release list on the download page. */
.release-head { padding-top: 16px; padding-bottom: 16px; }
.release-head h2, .release-head h3 { margin: 0; }
.release-head p { margin: .2em 0; }
.release-head ul.assets { list-style: none; padding: 0; margin: .3em 0 0; }
.release-head ul.assets li { display: inline-block; margin-right: 1.5em; }
.release-notes h1, .release-notes h2 { font-size: 21px; margin: 1em 0 .3em; }
.release-notes h3, .release-notes h4 { font-size: 17px; margin: 1em 0 .3em; }
.release-notes table { border-collapse: collapse; margin: .6em 0; }
.release-notes th, .release-notes td { border: 1px solid #ccc; padding: 4px 10px; }
.release-notes ul ul { list-style-type: circle; }
