/* Dignity Watch Nepal — public website.
   Written for old stock mobile browsers (D-34): no CSS variables, no grid, no external fonts.
   Colours follow the prototype (resources/Dignity Watch Nepal.html). */

* { -webkit-box-sizing: border-box; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #F7F4EF;
  color: #1C2430;
  font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Mangal", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
a { color: #085DA6; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 26px; color: #064577; }
h2 { font-size: 20px; color: #064577; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.icon { width: 24px; height: 24px; vertical-align: middle; flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Demonstration banner (D-46) */
.demo-banner {
  background: #C81E2C; color: #fff; font-weight: bold; font-size: 15px;
  padding: 10px 16px; text-align: center;
}
.demo-banner .icon { margin-right: 6px; }

/* Header and navigation */
.top {
  background: #085DA6; color: #fff; padding: 10px 16px;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between;
}
.brand { color: #fff; text-decoration: none; font-weight: bold; font-size: 18px; }
.brand-icon { width: 30px; height: 30px; margin-right: 8px; }
.lang {
  color: #fff; border: 2px solid #fff; border-radius: 20px; padding: 4px 14px;
  text-decoration: none; font-weight: bold; white-space: nowrap;
}
.nav {
  background: #fff; border-bottom: 1px solid #E4DFD5; text-align: center;
  white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.nav a {
  display: inline-block; width: 19%; min-width: 64px; padding: 8px 2px 6px;
  color: #5B6472; text-decoration: none; font-size: 12px; vertical-align: top; white-space: normal;
}
.nav a .icon { display: block; margin: 0 auto 2px; width: 28px; height: 28px; }
.nav a.active { color: #085DA6; font-weight: bold; border-bottom: 3px solid #085DA6; }

main.wrap { padding-top: 20px; padding-bottom: 20px; }
.lead { color: #5B6472; font-size: 18px; }
.h-icon { width: 30px; height: 30px; margin-right: 8px; color: #085DA6; }

/* Voice-over buttons (D-32): only shown when JavaScript runs. Report page only (D-65). */
.say { display: none; }
.js .say {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  width: 40px; height: 40px; border-radius: 20px; padding: 7px;
  border: 2px solid #4F7D68; background: #fff; color: #4F7D68; cursor: pointer;
}
.js .say.playing { background: #4F7D68; color: #fff; }

/* Cards */
.card {
  background: #fff; border: 1px solid #E4DFD5; border-radius: 12px;
  padding: 18px; margin: 0 0 16px; min-width: 0;
}
fieldset.card { display: block; }
.note { color: #5B6472; font-size: 15px; }
.note .icon, .icon-list .icon { margin-right: 10px; color: #4F7D68; }
.big { font-size: 20px; font-weight: bold; color: #064577; }

/* Home */
.hero h1 { font-size: 28px; }
.tiles { margin: 0 -6px 10px; }
.tiles:after { content: ""; display: table; clear: both; }
.tile { float: left; width: 50%; padding: 6px; position: relative; }
/* Each row starts on the left, even when a tile in the row above is taller. */
.tile:nth-child(odd) { clear: left; }
.tile a {
  display: block; min-height: 170px; background: #fff; border: 2px solid #E4DFD5; border-radius: 14px;
  padding: 16px 12px 52px; text-align: center; text-decoration: none; color: #1C2430;
}
.tile strong { display: block; font-size: 18px; color: #064577; margin: 6px 0 4px; }
.tile span { font-size: 14px; color: #5B6472; }
.tile-icon { width: 54px; height: 54px; color: #085DA6; }
.tile-report a { border-color: #C81E2C; }
.tile-report .tile-icon { color: #C81E2C; }
.js .tile .say { position: absolute; bottom: 16px; left: 50%; margin-left: -20px; }
.steps { list-style: none; padding: 0; margin: 0 0 12px; }
.steps li, .icon-list li {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: start; -webkit-align-items: flex-start; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid #E4DFD5;
}
.steps li:last-child, .icon-list li:last-child { border-bottom: 0; }
.step-icon { width: 40px; height: 40px; margin-right: 14px; color: #085DA6; }
.icon-list { list-style: none; padding: 0; margin: 0 0 12px; }

/* Forms */
fieldset { border: 1px solid #E4DFD5; }
.question { font-size: 19px; font-weight: bold; color: #064577; padding: 0; margin-bottom: 12px; }
.question .num {
  display: inline-block; width: 30px; height: 30px; line-height: 30px; border-radius: 15px;
  background: #085DA6; color: #fff; text-align: center; margin-right: 8px; font-size: 16px;
}
.q-icon { width: 28px; height: 28px; margin-right: 8px; color: #4F7D68; }
.hint { color: #5B6472; font-size: 15px; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  display: block; width: 100%; font: inherit; font-size: 17px; padding: 12px;
  border: 2px solid #C9C2B4; border-radius: 10px; background: #fff; color: #1C2430;
}
input:focus, select:focus, textarea:focus { border-color: #085DA6; outline: none; }
.field { display: block; font-weight: bold; margin-bottom: 12px; }
.field input, .field select { margin-top: 4px; font-weight: normal; }
.choice { display: block; margin-bottom: 10px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-body {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  border: 2px solid #E4DFD5; border-radius: 12px; padding: 12px; background: #fff;
}
.choice-icon { width: 40px; height: 40px; margin-right: 12px; color: #5B6472; }
.choice-text { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.choice-text strong { display: block; font-size: 18px; }
.choice-text small { display: block; color: #5B6472; font-size: 14px; }
.choice input:checked + .choice-body { border-color: #085DA6; background: #EAF2FA; }
.choice input:checked + .choice-body .choice-icon { color: #085DA6; }
.choice input:focus + .choice-body { outline: 3px solid #B8862E; }
.check { display: block; font-weight: bold; padding: 8px 0; }
.check input { width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }
.consent { border-color: #B8862E; }
.field-error { color: #C81E2C; font-weight: bold; margin: 6px 0 0; }
.field-error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: #C81E2C; }

.btn {
  display: inline-block; font: inherit; font-weight: bold; padding: 12px 20px; border-radius: 10px;
  border: 2px solid #085DA6; background: #fff; color: #085DA6; cursor: pointer; text-decoration: none;
}
.btn-primary { background: #085DA6; color: #fff; }
.btn-primary:disabled { background: #5B6472; border-color: #5B6472; }
.btn-big { display: block; width: 100%; font-size: 20px; padding: 16px; text-align: center; margin-bottom: 16px; }
.btn .icon { margin-right: 8px; }
.alert {
  background: #FCEBEC; border: 2px solid #C81E2C; color: #9E1721; border-radius: 10px;
  padding: 12px; font-weight: bold;
}
/* Not for emergencies (D-92) */
.emergency {
  background: #FCEBEC; border: 3px solid #C81E2C; border-radius: 10px;
  padding: 12px 14px; margin: 0 0 16px;
}
.emergency h2 { color: #9E1721; margin-top: 0; }
.emergency p { margin: 8px 0; }
.footer-emergency { color: #9E1721; }
.footer-emergency .icon { margin-right: 6px; vertical-align: -5px; }
.success { background: #EAF3EE; border: 2px solid #4F7D68; color: #2F5A47; border-radius: 10px; padding: 12px; font-weight: bold; }

/* Report sent: ID and key */
.done { border: 3px solid #4F7D68; }
.codes dt { font-weight: bold; color: #5B6472; margin-top: 10px; }
.codes dd {
  margin: 4px 0 0; font-family: "Courier New", monospace; font-size: 32px; font-weight: bold;
  letter-spacing: 3px; color: #1C2430; background: #F7F4EF; border-radius: 8px; padding: 8px 12px;
}
.code-input { font-family: "Courier New", monospace; letter-spacing: 2px; text-transform: uppercase; }

/* Tracking */
.status-current {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  font-size: 22px; font-weight: bold; color: #064577; margin-bottom: 8px;
}
.status-current .icon { width: 48px; height: 48px; margin-right: 12px; color: #4F7D68; }
.status-desc { color: #5B6472; }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; border-left: 3px solid #E4DFD5; }
.timeline li { padding: 6px 0 6px 14px; position: relative; }
.timeline .date { color: #5B6472; font-size: 14px; display: block; }
.timeline .icon { margin-right: 6px; color: #085DA6; }

/* Response Tracker */
.controls {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: end; -webkit-align-items: flex-end; align-items: flex-end;
  padding: 12px;
}
.controls .field {
  -webkit-box-flex: 1; -webkit-flex: 1; flex: 1;
  min-width: 0; margin: 0 8px 0 0; font-size: 14px;
}
.controls select { padding: 10px 6px; font-size: 16px; }
.controls .btn { margin: 0; padding-left: 12px; padding-right: 12px; }
/* Floats for old browsers; where flex-wrap works, both boxes in a row get the same height. */
.indicators { margin: 0 -5px; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.indicators:after { content: ""; display: table; clear: both; }
.indicator { float: left; width: 50%; padding: 5px; }
.indicator:nth-child(odd) { clear: left; }
.indicator div {
  height: 100%;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  background: #fff; border: 1px solid #E4DFD5; border-radius: 12px; padding: 8px 10px; min-height: 58px;
}
.indicator .value { padding-right: 8px; font-size: 24px; font-weight: bold; color: #064577; white-space: nowrap; }
.indicator .icon { width: 20px; height: 20px; margin-right: 6px; color: #4F7D68; }
.indicator .label {
  -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0;
  font-size: 14px; line-height: 1.25; color: #5B6472;
}
.indicator .value.no-value { color: #5B6472; }
.indicator.warn .value { color: #C81E2C; }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { margin-bottom: 10px; }
.bar { background: #E4DFD5; border-radius: 6px; height: 12px; margin-top: 3px; overflow: hidden; }
.bar span { display: block; height: 12px; background: #085DA6; }
table.areas { width: 100%; border-collapse: collapse; font-size: 15px; }
table.areas th, table.areas td { text-align: right; padding: 8px 4px; border-bottom: 1px solid #E4DFD5; }
table.areas th:first-child, table.areas td:first-child { text-align: left; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.method li { margin-bottom: 8px; color: #333; }
.updated { color: #5B6472; font-size: 14px; }
.trend-interval { max-width: 260px; }

/* Collapsible panels (D-64). Without JavaScript every panel is open. The space above and
   below the title is the button's own padding, so the whole header can be tapped. */
.panel { padding-top: 0; padding-bottom: 0; }
.panel-body { padding-bottom: 18px; }
.panel-head {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  margin: 0;
}
.panel-toggle {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  -webkit-box-flex: 1; -webkit-flex: 1; flex: 1;
  min-height: 67px; padding: 13.5px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 20px; font-weight: bold; color: #064577; text-align: left;
}
.panel-title { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.chevron { display: none; width: 28px; height: 28px; color: #085DA6; margin-left: 8px; }
.js .chevron { display: inline-block; }
.js .panel .panel-body { display: none; }
.js .panel.open .panel-body { display: block; }
.js .panel.open .chevron { -webkit-transform: rotate(180deg); transform: rotate(180deg); }

/* Line charts (D-64) */
.chart { margin-bottom: 18px; }
.chart h3 { color: #064577; margin-bottom: 6px; }
.chart-svg { display: block; }
.chart-svg .grid { stroke: #E4DFD5; stroke-width: 1; }
.chart-svg .axis { stroke: #5B6472; stroke-width: 1.5; }
.chart-svg .tick { fill: #5B6472; font-size: 12px; }
.chart-svg .line { fill: none; stroke: #085DA6; stroke-width: 3; stroke-linejoin: round; }
.chart-svg .dot { fill: #085DA6; }
.chart-svg .dot.partial { fill: #fff; stroke: #085DA6; stroke-width: 2; }

/* Full tables (D-63) */
#panel-full h3 { color: #064577; margin-top: 18px; }
table.full td, table.full th { white-space: nowrap; }
table.full td:first-child { white-space: normal; min-width: 150px; }
table.full tr.total td { font-weight: bold; }
.download { margin: 12px 8px 0 0; font-size: 15px; }

.footer { color: #5B6472; font-size: 14px; padding-bottom: 30px; }
.chooser { text-align: center; padding-top: 40px; }

@media (max-width: 420px) {
  h1 { font-size: 23px; }
  .tile a { min-height: 190px; }
}

/* Example articles (#79, D-83). Floats only, for old stock browsers (D-34). */
.posts { list-style: none; padding: 0; margin: 0 0 8px; }
.post-card { border-bottom: 1px solid #E4DFD5; }
.post-card:last-child { border-bottom: 0; }
.post-card a { display: block; padding: 12px 0; color: #1C2430; text-decoration: none; overflow: hidden; }
.post-card .post-pic { float: left; width: 72px; height: 72px; margin-right: 12px; border-radius: 10px; text-align: center; }
.post-card .post-img { float: left; width: 96px; height: auto; margin: 0 12px 0 0; border-radius: 10px; }
.post-text { display: block; overflow: hidden; }
.post-card strong { display: block; font-size: 18px; color: #064577; margin: 2px 0 4px; }
.post-card a:hover strong, .post-card a:focus strong { text-decoration: underline; }
.post-summary { display: block; font-size: 15px; color: #5B6472; }
.post-meta { font-size: 14px; color: #5B6472; }
.post-type { font-weight: bold; }
.post-pic { display: block; background: #085DA6; color: #fff; }
.post-pic-icon { width: 36px; height: 36px; margin-top: 18px; }
.post-pic-campaign { background: #085DA6; }
.post-pic-event { background: #B8862E; }
.post-pic-visit { background: #4F7D68; }
.post-pic-result { background: #2F7A4F; }
.post-pic-publication { background: #064577; }
.post-campaign { color: #085DA6; }
.post-event { color: #8A5D10; }
.post-visit { color: #4F7D68; }
.post-result { color: #2F7A4F; }
.post-publication { color: #064577; }
.post-pic-large { padding: 36px 12px 16px; margin: 8px 0 16px; border-radius: 12px; text-align: center; }
.post-pic-large .post-pic-icon { width: 64px; height: 64px; margin: 0; }
.post-pic-large small { display: block; font-size: 14px; margin-top: 8px; }
.post-img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0 16px; }
.post h1 { margin-top: 4px; }
.crumbs { font-size: 15px; margin: 4px 0 12px; }
.more { font-weight: bold; margin: 4px 0 12px; }
.alert-example { background: #FDF6E7; border: 1px solid #E8D3A6; border-radius: 10px; padding: 10px 12px; font-size: 15px; color: #6B4E12; }

/* Get help: the nearest hospital (D-88). The finder needs JavaScript; without it the full
   list below is used. */
.needs-js { display: none; }
.js .needs-js { display: block; }
.finder #help-locate { margin-bottom: 12px; }
.hospital { border: 2px solid #4F7D68; border-radius: 10px; padding: 12px; margin: 12px 0; background: #fff; }
.hospital-kind { margin: 0 0 4px; font-size: 15px; font-weight: bold; color: #2F5A47; text-transform: uppercase; }
.hospital strong { font-size: 19px; color: #1C2430; }
.hospital-where { margin: 4px 0; }
.hospital .note { margin: 4px 0 10px; }
.hospital .call { display: block; text-align: center; }
.no-phone { color: #5B6472; font-style: italic; margin: 4px 0 0; }
.example-tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 8px; font-size: 13px;
  font-weight: bold; background: #FDF6E7; border: 1px solid #E8D3A6; color: #6B4E12; vertical-align: middle;
}
.hospital-others { padding-left: 20px; }
.hospital-others li { margin-bottom: 6px; }
.hospital-list dt { font-weight: bold; margin-top: 10px; }
.hospital-list dd { margin: 4px 0 0; }
.hospital-list ul { list-style: none; padding: 0; margin: 0; }
.hospital-list li { padding: 6px 0; border-bottom: 1px solid #E6E1D8; }
.hospital-list .kind { color: #5B6472; font-size: 15px; }
a.call { font-weight: bold; }
