/* --- Hub-specific styles --- */

.hub-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border: 3px solid #2b2b2b;
    box-shadow: 12px 12px 0 #d9d0c1;
}

header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 4px double #666;
    padding-bottom: 25px;
}

.logo-large {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    filter: grayscale(100%) contrast(130%);
}

.subtitle2 {
    font-size: 13px;
    color: #777;
    letter-spacing: 1px;
    font-style: italic;
}

.directorate {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.dept-card {
    border: 2px solid #555;
    padding: 20px;
    background: #fcfaf5;
    box-shadow: 4px 4px 0 #ccc;
    transition: background 0.2s, box-shadow 0.2s;
}

.dept-card:hover {
    background: #f0ece1;
    box-shadow: 6px 6px 0 #bbb;
}

.dept-card a {
    text-decoration: none;
    color: #2b2b2b;
    display: block;
}

.dept-card h2 {
    margin-top: 0;
    font-size: 20px;
    letter-spacing: 2px;
    border-bottom: 1px solid #999;
    padding-bottom: 6px;
}

.dept-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.status {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ab3b3b;
}

.dept-card.restricted .status {
    color: #888;
    font-style: italic;
}

footer {
    text-align: center;
    font-size: 12px;
    color: #888;
    border-top: 1px dashed #ccc;
    padding-top: 25px;
    margin-top: 40px;
}
/* Optional: Apply a subtle paper-noise texture to the main content blocks */
.archive-container,
.charter-document {
    position: relative;
    background-color: #fdfaf4; /* Slightly warm paper base */
}

.archive-container::before,
.charter-document::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicks through */
    opacity: 0.08; /* Very subtle — increase for more grit */
    z-index: 1;

    /* The noise texture as an inline SVG filter */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}
/* ---------- Vintage Black Clocks ---------- */
.clock-panel {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.clock-wrapper {
  text-align: center;
}
.clock-label {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.vintage-clock {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 90%);
  border: 3px solid #c9b16e;         /* aged brass/gold rim */
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.8),
    4px 4px 0 rgba(0,0,0,0.3);
  position: relative;
  display: inline-block;
  /* subtle paper‑grit overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
}
.clock-face {
  width: 100%;
  height: 100%;
  position: relative;
}
/* Hands */
.hour-hand, .minute-hand, .second-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: #d4c4a8;               /* pale gold / aged ivory */
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
  border-radius: 2px;
}
.hour-hand {
  width: 4px;
  height: 30px;
  margin-left: -2px;
  background: #e6d7b4;
}
.minute-hand {
  width: 3px;
  height: 45px;
  margin-left: -1.5px;
  background: #d4c4a8;
}
.second-hand {
  width: 1px;
  height: 55px;
  margin-left: -0.5px;
  background: #c0392b;              /* subtle red */
  box-shadow: 0 0 2px #c0392b;
}
.center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #c9b16e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(0,0,0,0.8);
}