/* ScotiaTel Online — 2006 edition stylesheet
   Scotia Telephone and Telegraph Company Limited
   FORM ST-831 (REV. 11/06) */

/* ---------- Palette (ScotiaTel design system) ----------
   scotiateal  #0e5c5d   deep-teal   #083b3c   teal-tint  #d3e4e1
   cream-stock #f4f0e6   plant-beige #e6e0d1   rule-beige #c9c2b1
   card-border #d8d1c1   line-ink    #1b2424   muted-ink  #3b4645
   signal-amber #e2a33a (dial holes only)                      */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 28px 12px 40px;
  background: #e6e0d1 linear-gradient(180deg, #d3e4e1 0px, #e6e0d1 420px) no-repeat;
  color: #1b2424;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a { color: #0e5c5d; }
a:hover { color: #083b3c; }

.display { font-family: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; }

/* ---------- Page box ---------- */
#page {
  max-width: 960px;
  margin: 0 auto;
  background: #f4f0e6;
  border: 1px solid #a39d8c;
  box-shadow: 0 2px 14px rgba(8, 59, 60, 0.22);
}

/* ---------- The mark (three bars) ---------- */
.mark { display: flex; flex-direction: column; flex: none; }
.mark span { display: block; }
.mark-lg { gap: 4px; width: 32px; }
.mark-lg span { height: 6px; }
.mark-lg span:nth-child(1) { width: 32px; }
.mark-lg span:nth-child(2) { width: 26px; }
.mark-lg span:nth-child(3) { width: 16px; }
.mark-cream span { background: #f4f0e6; }
.mark-teal span { background: #0e5c5d; }

/* ---------- Header ---------- */
#masthead {
  background: linear-gradient(180deg, #1d7778 0%, #136b6c 49%, #0e5c5d 50%, #0b5354 100%);
  border-bottom: 1px solid #083b3c;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
#logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
#logo .wordmark {
  font-weight: 800;
  font-size: 46px;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: #f4f0e6;
  text-shadow: 0 1px 2px rgba(8, 59, 60, 0.6);
}
#masthead .company { display: flex; flex-direction: column; gap: 2px; text-align: right; }
#masthead .legal { font-size: 11px; letter-spacing: 0.12em; color: #d3e4e1; }
#masthead .dept { font-size: 12px; color: #f4f0e6; }

/* ---------- Tabs ---------- */
#tabs {
  background: linear-gradient(180deg, #e6e0d1, #d8d1c1);
  border-bottom: 1px solid #a39d8c;
  padding: 10px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#tabs a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  background: linear-gradient(180deg, #ffffff, #e6e0d1);
  border: 1px solid #c9c2b1;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  color: #0e5c5d;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
#tabs a:hover { background: linear-gradient(180deg, #ffffff, #d3e4e1); }
#tabs a.current {
  margin-bottom: -1px;
  background: #f4f0e6;
  border: 1px solid #a39d8c;
  border-bottom: 1px solid #f4f0e6;
  color: #083b3c;
}

/* ---------- Feature banner ---------- */
#feature {
  margin: 20px 24px 0;
  background: linear-gradient(135deg, #136b6c 0%, #0e5c5d 45%, #083b3c 100%);
  border: 1px solid #083b3c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}
#feature .copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
#feature .kicker { font-size: 13px; letter-spacing: 0.16em; color: #d3e4e1; }
#feature h1 {
  margin: 0;
  font-weight: 800;
  font-size: 50px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #f4f0e6;
  text-shadow: 0 2px 3px rgba(8, 59, 60, 0.5);
}
#feature p { margin: 0; font-size: 15px; color: #d3e4e1; max-width: 30em; }

.gloss-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f0e6 50%, #e6e0d1 51%, #ddd6c5 100%);
  border: 1px solid #083b3c;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  color: #083b3c;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.gloss-button:hover { background: linear-gradient(180deg, #ffffff 0%, #eaf1ef 50%, #d3e4e1 51%, #c6dbd7 100%); color: #083b3c; }

/* ---------- Rotary dial ---------- */
.dial {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #145f60 0%, #083b3c 70%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}
.dial .hole {
  position: absolute;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #f4f0e6;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35);
  color: #083b3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
}
.dial .lit { background: radial-gradient(circle at 40% 35%, #f0bd63, #e2a33a); }
.dial .h1 { left: 176px; top: 58px; }
.dial .h2 { left: 145px; top: 27px; }
.dial .h3 { left: 102px; top: 15px; }
.dial .h4 { left: 58px;  top: 27px; }
.dial .h5 { left: 27px;  top: 58px; }
.dial .h6 { left: 15px;  top: 102px; }
.dial .h7 { left: 27px;  top: 145px; }
.dial .h8 { left: 58px;  top: 176px; }
.dial .h9 { left: 102px; top: 188px; }
.dial .h0 { left: 145px; top: 176px; }
.dial .stop {
  position: absolute;
  left: 213px;
  top: 149px;
  width: 8px;
  height: 27px;
  background: linear-gradient(90deg, #e6e0d1, #a39d8c);
  transform: rotate(-60deg);
}
.dial .card {
  position: absolute;
  left: 70px;
  top: 70px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff, #e6e0d1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.dial .card .mark { gap: 2px; width: 17px; }
.dial .card .mark span { height: 3px; background: #0e5c5d; }
.dial .card .mark span:nth-child(1) { width: 17px; }
.dial .card .mark span:nth-child(2) { width: 14px; }
.dial .card .mark span:nth-child(3) { width: 9px; }
.dial .card .num {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: 25px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #0e5c5d;
}

/* ---------- Body columns ---------- */
#columns { padding: 24px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
#content { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
#sidebar { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
#content p { margin: 0; }

h1.page-title, h2.section {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px dotted #a39d8c;
  font-family: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0e5c5d;
}
h1.page-title { font-size: 34px; line-height: 1.05; }
h2.section { font-size: 26px; line-height: 1.1; margin-top: 8px; }
h2.section:first-child { margin-top: 0; }
h2.with-link { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }

h3.group {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b4645;
}

.fine { font-size: 12px; color: #3b4645; }

/* ---------- Number cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card {
  background: #ffffff;
  border: 1px solid #c9c2b1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.card .head {
  padding: 8px 14px 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f0e6 49%, #e6e0d1 50%, #ddd6c5 100%);
  border-bottom: 1px solid #c9c2b1;
  font-family: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #0e5c5d;
}
.card.teal .head {
  padding: 10px 14px 8px;
  background: linear-gradient(180deg, #1d7778 0%, #136b6c 49%, #0e5c5d 50%, #0b5354 100%);
  border-bottom: 0;
  font-size: 36px;
  color: #f4f0e6;
}
.card .body { padding: 10px 14px 14px; }
.card .body b { color: #0e5c5d; }
.card .body span { font-size: 13px; }

a.card { display: flex; flex-direction: column; text-decoration: none; color: #1b2424; }
a.card .head { font-size: 20px; padding: 8px 14px; }
a.card:hover { border-color: #0e5c5d; }

/* ---------- RSS link ---------- */
.rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  text-decoration: none;
}
.rss-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, #1d7778, #0b5354);
}
.rss-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f4f0e6;
}
.rss-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #f4f0e6;
  border-right: 2px solid #f4f0e6;
  border-radius: 0 8px 0 0;
}

/* ---------- News ---------- */
.news .item {
  padding: 12px 0;
  border-bottom: 1px dotted #c9c2b1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.news .item:last-child { border-bottom: 0; }
.news .date { font-size: 12px; letter-spacing: 0.06em; color: #0e5c5d; }
.news b { font-size: 15px; }

/* ---------- Sidebar boxes ---------- */
.box { background: #ffffff; border: 1px solid #c9c2b1; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.box h2 {
  margin: 0;
  padding: 8px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f0e6 49%, #e6e0d1 50%, #ddd6c5 100%);
  border-bottom: 1px solid #c9c2b1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e5c5d;
}
.box p { margin: 0; padding: 10px 12px 12px; font-size: 13px; }
.box ul.links { margin: 0; padding: 10px 12px 12px; list-style: none; }
.box ul.links li { margin: 2px 0; }
.box ul.bullets { margin: 0; padding: 10px 12px 12px 30px; font-size: 13px; }
.box ul.bullets li { margin: 0 0 6px; }
.box .inner { padding: 12px; font-size: 13px; }
.box .inner p { padding: 0; margin: 8px 0; }
.box pre, .code {
  margin: 0;
  padding: 8px;
  background: #f4f0e6;
  border: 1px solid #d8d1c1;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------- Micro badges (80x15) ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex;
  height: 15px;
  border: 1px solid #083b3c;
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
  text-decoration: none;
}
.badge span { padding: 0 4px; }
.badge span:first-child { background: #0e5c5d; color: #f4f0e6; }
.badge span:last-child { background: #e6e0d1; color: #083b3c; }

/* ---------- Footer ---------- */
#footer {
  background: linear-gradient(180deg, #0e5c5d, #083b3c);
  color: #d3e4e1;
  padding: 18px 24px 20px;
  font-size: 12px;
}
#footer .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; margin-bottom: 8px; }
#footer a { color: #f4f0e6; }
#footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
#footer .form { font-size: 11px; letter-spacing: 0.06em; }

#fiction {
  max-width: 960px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: #3b4645;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  body { padding: 0 0 24px; }
  #page { border-left: 0; border-right: 0; }
  #masthead { padding: 16px; }
  #masthead .company { text-align: left; }
  #logo .wordmark { font-size: 38px; }
  #tabs { padding: 8px 12px 0; }
  #tabs a { padding: 0 12px; }
  #feature { margin: 12px 12px 0; padding: 24px 20px; }
  #feature h1 { font-size: 36px; }
  #columns { padding: 16px 12px; }
  #fiction { padding: 0 12px; }
}
