/* Mevita BP34a — the share page's one stylesheet. Colours are the app's
   theme (src/theme.js): background, surface, accent, text, textMuted. The
   warning red is reserved for see-a-doctor content in the app and is not
   used here. */
:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --accent: #3E7C6F;
  --text: #1F2933;
  --muted: #6B7280;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
}

main.card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 16px;
}

#view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

p {
  margin: 0;
}

.brand {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

h2.title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lead {
  line-height: 1.7;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.error {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.error:empty {
  display: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button.solid {
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--surface);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled,
input:disabled {
  opacity: 0.4;
  cursor: default;
}

a.link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

a.link:hover,
a.link:focus {
  text-decoration: underline;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(107, 114, 128, 0.3);
}

.status .who {
  overflow-wrap: anywhere;
}

footer.foot {
  font-size: 14px;
}

footer.foot a {
  color: var(--muted);
}

/* privacy.html */
.doc h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.doc h2 {
  margin: 20px 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.doc p {
  line-height: 1.7;
}

.doc .placeholder {
  font-weight: 700;
}
