/* ==========================================================
   Dillonite Shared Styles
   Loaded by both public and administration pages
   ========================================================== */

/* Base */
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: #f7f4ee;
  color: #222;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  background: white;
  border: none;
  padding: 2rem 0;
  margin-top: 0;
}

.section + .section {
  border-top: 3px solid #222;
}

/* Masthead */
.masthead {
  background: #fff;
  text-align: center;
  padding: 12px 0 10px;
  border-bottom: 4px solid #222;
}

.masthead-image {
  width: 469px;
  max-width: 95%;
  height: auto;
}

.date-line {
  margin-top: 0.75rem;
  text-align: center;
}

.date-label {
  font-style: italic;
  color: #555;
}

.date-value {
  display: block;
  margin-top: 0.2rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  background: #2b2b2b;
  border-top: 1px solid #555;
  border-bottom: 2px solid #8b1e1e;
}

.nav a {
  color: #f5f5f5;
  display: inline-block;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  transition: background-color .2s ease;
}

.nav a:hover,
.nav a.active {
  background: #8b1e1e;
  color: white;
}

/* Section Headings */
.section-label {
  display: inline-block;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 700;
  color: #8b1e1e;
  margin-bottom: .4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: normal;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid #111;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

/* Buttons and Links */
.button {
  display: inline-block;
  background: #8b1e1e;
  color: white;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin: 0.25rem 0.5rem 0.25rem 0;
}

.button.secondary {
  background: #444;
}

.text-link {
  color: #8b1e1e;
  font-weight: bold;
}

.action-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.action-buttons .button {
  margin: 0;
}

/* Camera */
.camera-image,
.camera-full {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #bbb;
  box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.camera-frame {
  position: relative;
}

.camera-live-badge {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  padding: .45rem .65rem;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: .82rem;
  font-weight: bold;
  border-radius: 4px;
}

.caption {
  margin-top: .85rem;
  font-family: Arial, sans-serif;
  color: #666;
  line-height: 1.4;
}

.camera-links {
  margin-top: .75rem;
  text-align: center;
  font-family: Arial, sans-serif;
}

.camera-links a {
  color: #8b1e1e;
  font-weight: bold;
  text-decoration: none;
}

.camera-links a:hover {
  text-decoration: underline;
}

.subsection-title {
  margin: 2rem 0 .75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #222;
  border-bottom: 2px solid #8b1e1e;
  padding-bottom: .25rem;
}

/* Weather */
.weather-card {
  margin-top: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: none;
  font-family: Arial, sans-serif;
}

.weather-main {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #222;
}

.weather-icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto .5rem;
}

.weather-temperature {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #111;
}

.weather-description {
  margin-top: .4rem;
  font-size: 1.05rem;
  color: #555;
}

.weather-details {
  margin-top: 1rem;
}

.weather-detail {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid #ddd;
}

.weather-detail:last-child {
  border-bottom: none;
}

.weather-detail span {
  color: #666;
}

.weather-detail strong {
  color: #222;
  text-align: right;
}

.weather-forecast {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #222;
}

.weather-forecast strong {
  display: block;
  margin-bottom: .4rem;
  font-family: Arial, sans-serif;
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8b1e1e;
}

.weather-forecast p {
  margin: 0;
  line-height: 1.5;
  color: #444;
}

/* Placeholder */
.placeholder {
  width: 100%;
  height: 560px;
  border: 1px solid #ccc;
  background: #eee;
  display: grid;
  place-items: center;
  color: #666;
  font-family: Arial, sans-serif;
}

/* Footer */
.footer {
  margin-top: 2rem;
  border-top: 4px solid #222;
  background: #fff;
  text-align: center;
  color: #444;
  padding: 2rem 1rem;
  font-family: Arial, sans-serif;
}

.footer-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #111;
  margin-bottom: .5rem;
}

.footer p {
  margin: .25rem 0;
}

/* Responsive */
@media (max-width: 850px) {
  .section-header {
    display: block;
  }
}

@media (max-width: 700px) {
  .weather-icon {
    width: 72px;
    height: 72px;
  }

  .weather-temperature {
    font-size: 2.2rem;
  }
}

/* Publisher Beacon */

.masthead-container {

    position: relative;

}

.publisher-beacon {

    position: absolute;

    top: 16px;

    right: 20px;

    width: 10px;

    height: 10px;

    border-radius: 50%;

    box-shadow: 0 0 3px rgba(0,0,0,.35);

}

.publisher-beacon-red {

    background: #8b1e1e;

}

.publisher-beacon-amber {

    background: #d08b00;

}

.publisher-beacon-green {

    background: #1f7a1f;

}
