/* S22: one simple look for every Exercise With Me web page (legal pages, support, delete account).
   Phone first; the colors are the logo's green and blue. No outside fonts. */

:root {
  --ewm-green: #a1d404;
  --ewm-blue: #01a0fd;
  --ewm-link: #006fb3;
  --ewm-text: #14171f;
  --ewm-muted: #4b5563;
  --ewm-line: #e5e7eb;
  --ewm-soft: #f5f8fb;
  --ewm-error: #b42318;
  --ewm-ok: #1f7a3a;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ewm-soft);
  color: var(--ewm-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ewm-blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 10;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--ewm-green);
  box-shadow: 0 4px 0 -2px var(--ewm-blue);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ewm-text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: auto;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ewm-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: var(--ewm-soft);
  color: var(--ewm-link);
}

/* Main card */
main {
  padding: 24px 0 40px;
}

.card {
  background: #fff;
  border: 1px solid var(--ewm-line);
  border-radius: 14px;
  padding: 20px;
}

@media (min-width: 640px) {
  .card {
    padding: 32px 40px;
  }
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 28px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 20px 0 6px;
}

.lead {
  color: var(--ewm-muted);
  margin: 0 0 20px;
}

.page-text {
  overflow-wrap: anywhere;
}

.page-text table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
}

.page-text td,
.page-text th {
  border: 1px solid var(--ewm-line);
  padding: 6px 8px;
  text-align: left;
}

.page-text hr {
  border: 0;
  border-top: 1px solid var(--ewm-line);
  margin: 24px 0;
}

.loading {
  color: var(--ewm-muted);
}

.notice {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 16px 0;
}

.notice-error {
  background: #fef3f2;
  color: var(--ewm-error);
}

.notice-ok {
  background: #ecfdf3;
  color: var(--ewm-ok);
}

/* Hub page list */
.page-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .page-list {
    grid-template-columns: 1fr 1fr;
  }
}

.page-list a {
  display: block;
  min-height: 44px;
  padding: 14px 16px;
  border: 1px solid var(--ewm-line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ewm-text);
  font-weight: 600;
}

.page-list a:hover {
  border-color: var(--ewm-blue);
}

.page-list span {
  display: block;
  color: var(--ewm-muted);
  font-weight: 400;
  font-size: 15px;
}

/* Forms (support, delete account) */
.form {
  margin-top: 16px;
}

.form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  border: 1px solid #c5ccd6;
  border-radius: 10px;
  background: #fff;
}

.form textarea {
  min-height: 160px;
  resize: vertical;
}

.form .hint {
  color: var(--ewm-muted);
  font-size: 15px;
  margin: 6px 0 0;
}

/* People never see this field; simple spam robots fill it. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--ewm-link);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.button-secondary {
  background: #fff;
  color: var(--ewm-link);
  border: 2px solid var(--ewm-link);
}

.button-danger {
  background: var(--ewm-error);
}

.address {
  font-style: normal;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ewm-line);
  background: #fff;
  padding: 20px 0 28px;
  font-size: 15px;
  color: var(--ewm-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

[hidden] {
  display: none !important;
}
