
@font-face {
  font-family: "Rawline";
  font-weight: 400;
  font-style: normal;
  src: url(../fonts/rawline-latin-400-normal.woff2) format("woff2"),
       url(../fonts/rawline-latin-400-normal.woff) format("woff");
}

@font-face {
  font-family: "Rawline";
  font-weight: 400;
  font-style: italic;
  src: url(../fonts/rawline-latin-400-italic.woff2) format("woff2"),
       url(../fonts/rawline-latin-400-italic.woff) format("woff");
}

@font-face {
  font-family: "Rawline";
  font-weight: 700;
  font-style: normal;
  src: url(../fonts/rawline-latin-700-normal.woff2) format("woff2"),
       url(../fonts/rawline-latin-700-normal.woff) format("woff");
}

@font-face {
  font-family: "Rawline";
  font-weight: 700;
  font-style: italic;
  src: url(../fonts/rawline-latin-700-italic.woff2) format("woff2"),
       url(../fonts/rawline-latin-700-italic.woff) format("woff");
}

:root {
  --green: #17703a;
  --green2: #2a9a50;
  --blue: #183a73;
  --blue2: #2c5aa0;
  --yellow: #f2c500;
  --line: #b7c2cc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: /*#dde5ec*/ #feffe2;
  color: #222;
  font: 13px/1.5 "Rawline", Verdana, Arial, sans-serif;
}

a {
  color: #0b4ea2;
}

a:hover {
  color: #c0392b;
}

img {
  max-width: 100%;
}

/* Page Layout & Structure */
#page {
  max-width: 80%;
  margin: 10px auto;
  background: /*prev white only*/ #f1fff1;
  border: 1px solid #8a98a5;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

#topbar {
  background: #f1f1f1;
  border-bottom: 1px solid #ccc;
  padding: 3px 10px;
  font-size: 11px;
  overflow: hidden;
}

#topbar .l {
  float: left;
}

#topbar .r {
  float: right;
}

#topbar a.on {
  font-weight: 700;
  color: #222;
  text-decoration: none;
}

#topbar form {
  display: inline;
}

#topbar button {
  font-size: 11px;
  padding: 0 6px;
}

#header {
  background: linear-gradient(#2a9a50, #17703a);
  border-bottom: 4px solid var(--yellow);
  padding: 10px 14px;
  color: #fff;
  overflow: hidden;
}

#header img.logo {
  float: left;
  height: 60px;
  margin-right: 12px;
}

#header .name {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
/*  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);*/
  color: #fff;
  text-decoration: none;
}

#header .full {
  font-size: 12px;
  margin-top: 2px;
}

#header .tag {
  font-size: 11px;
  font-style: italic;
  color: #e6f5ea;
}

#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(var(--blue2), var(--blue));
  border-bottom: 1px solid #0d2850;
}

#nav a {
  display: block;
  padding: 6px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-right: 1px solid #0d2850;
}

#nav a:hover,
#nav a.on {
  background: linear-gradient(#ffe45c, var(--yellow));
  color: var(--blue);
}

#content {
  padding: 12px 14px;
}

.cols {
  display: flex;
  gap: 16px;
}

.cols .main {
  flex: 1;
  min-width: 0;
}

.cols .side {
  width: 250px;
  flex: none;
}

img.banner {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}

/* Typography */
h1 {
  font-size: 18px;
  color: var(--green);
  border-bottom: 1px dotted #999;
  padding-bottom: 3px;
  margin: 0 0 10px;
}

h2 {
  font-size: 15px;
  color: var(--blue);
  margin: 16px 0 4px;
}

p {
  margin: 0 0 8px;
}

/* UI Boxes & Components */
.box {
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: #fdffd8/*#fafcfd*/;
}

.box h3 {
  margin: 0;
  padding: 3px 8px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(var(--blue2), var(--blue));
}

.box .inner {
  padding: 6px 8px;
}

.box ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.box li {
  margin-bottom: 3px;
}

.small {
  font-size: 11px;
  color: #666;
}

button,
.btn {
  font: 12px "Rawline", Verdana, Arial, sans-serif;
  padding: 3px 10px;
  border: 1px solid #6d7b88;
  border-radius: 3px;
  background: linear-gradient(#fff, #d6dde3);
  color: #222;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}

button:hover,
.btn:hover {
  background: linear-gradient(#fff, #c4ced7);
  color: #222;
}

.danger {
  color: #a02020;
}

input[type=text],
input[type=email],
input[type=password],
input[type=date],
input[type=time],
input[type=number],
select,
textarea {
  font: 13px "Rawline", Verdana, Arial, sans-serif;
  padding: 3px 4px;
  border: 1px solid #9aa7b3;
  width: 100%;
  max-width: 440px;
  background: #fff;
}

input[type=color] {
  width: 44px;
  height: 24px;
  padding: 0;
  border: 1px solid #9aa7b3;
}

textarea {
  height: 80px;
}

.flash {
  padding: 5px 8px;
  margin-bottom: 8px;
  border: 1px solid;
}

.flash.ok {
  background: #e6f4e6;
  border-color: #8cc58c;
}

.flash.error {
  background: #fbe6e6;
  border-color: #d58a8a;
}

/* Tables & Forms */
table.list {
  border-collapse: collapse;
  width: 100%;
  margin: 6px 0;
}

table.list th {
  background: #e4eaf0;
  text-align: left;
  border: 1px solid #c3ccd4;
  padding: 3px 6px;
}

table.list td {
  border: 1px solid #d5dce2;
  padding: 3px 6px;
  vertical-align: top;
}

table.list tr:nth-child(even) td {
  background: #f6f8fa;
}

.scroll {
  overflow-x: auto;
}

table.form {
  border-collapse: collapse;
  width: 100%;
}

table.form th {
  text-align: left;
  width: 210px;
  vertical-align: top;
  padding: 5px 8px 5px 0;
  font-weight: 700;
}

table.form td {
  padding: 3px 0;
}

.adminnav {
  background: #eef2f6;
  border: 1px solid var(--line);
  padding: 4px 8px;
  margin-bottom: 12px;
  font-size: 12px;
}

.adminnav a {
  margin-right: 12px;
}

.badge {
  display: inline-block;
  font-size: 10px;
  padding: 0 4px;
  border: 1px solid;
  border-radius: 2px;
  line-height: 1.4;
  font-weight: 700;
  vertical-align: 1px;
}

.b-pt {
  color: #0d5a2a;
  background: #e2f3e7;
  border-color: #8cc58c;
}

.b-open {
  color: #183a73;
  background: #e3ebf7;
  border-color: #9bb3d9;
}

.b-priv {
  color: #7a4a00;
  background: #fdf1d8;
  border-color: #e0b86a;
}

.sw {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 3px -1px 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

/* People (members page, home sidebar) */
.person {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dotted #ccd4db;
}

.person:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 2px;
  background: #fff;
  flex: none;
}

.pinfo {
  min-width: 0;
}

.bio {
  margin-top: 2px;
}

.side .avatar {
  width: 44px;
  height: 44px;
}

.side .bio {
  font-size: 11px;
  color: #444;
}

/* Highlights: Cover Flow (left) + Info of the front cover (right) */
.hl {
  margin: 10px 0 14px;
}

.cfwrap {
  display: flex;
}

.coverflow {
  position: relative;
  flex: 0 0 50%;
  height: 190px;
  overflow: hidden;
  perspective: 620px;
  background: linear-gradient(#ffffff, #e7e7e7 65%, #dfdfdf);
}

.cf-item {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 130px;
  height: 130px;
  margin-left: -65px;
  display: block;
  opacity: 0;
  background: #222;
  border: 1px solid #000;
  transition: transform .6s ease, opacity .6s ease;
  -webkit-box-reflect: below 2px linear-gradient(transparent 55%, rgba(255, 255, 255, .28));
}

.cf-item:first-child {
  opacity: 1;
}

.cf-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
}

.cf-infos {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  background: #fafcfd;
}

.cf-info {
  display: none;
}

.cf-info.on {
  display: block;
}

.cf-info div {
  margin-bottom: 3px;
}

.cf-title {
  font-size: 15px;
  font-weight: 700;
}

/* Calendar */
.calnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
  gap: 6px;
}

.calnav .m {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

table.cal {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 6px;
}

table.cal th {
  background: linear-gradient(#e9eef3, #d3dce5);
  border: 1px solid #b5c0ca;
  padding: 2px;
  font-size: 11px;
  text-align: center;
}

table.cal td {
  border: 1px solid #c3ccd4;
  height: 84px;
  vertical-align: top;
  padding: 2px;
  background: #fff;
  overflow: hidden;
}

table.cal td.other {
  background: #f0f2f4;
}

table.cal td.other .dn {
  color: #aaa;
}

table.cal td.today {
  background: #fff6c9;
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.dn {
  display: block;
  text-align: right;
  font-size: 11px;
  color: #555;
  line-height: 1.2;
}

.dn a.add {
  float: left;
  text-decoration: none;
  color: #999;
  font-weight: 700;
}

a.ev {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.3;
  padding: 1px 3px;
  margin: 1px 0;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.ev:hover {
  filter: brightness(1.15);
  color: #fff;
}

a.ev.private {
  outline: 1px dashed #000;
  outline-offset: -2px;
}

dl.tl {
  margin: 6px 0;
}

dl.tl dt {
  float: left;
  width: 60px;
  font-weight: 700;
  color: var(--blue);
}

dl.tl dd {
  margin: 0 0 6px 70px;
}

table.detail th {
  text-align: left;
  padding: 2px 14px 2px 0;
  vertical-align: top;
  white-space: nowrap;
}

#footer {
  border-top: 3px solid var(--blue);
  background: #f1f1f1;
  padding: 8px 14px;
  font-size: 11px;
  color: #555;
  text-align: center;
}


/* Unified Members Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 24px 0;
}

/* Individual Member Card */
.person-card {
  display: flex;
  flex-direction: column;
  background: #fafcfd;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Category Badge Inside the Box */
.person-card .role-badge {
  align-self: flex-start;
  margin-bottom: 10px;
  font-size: 10px;
  padding: 2px 6px;
}

/* Adjust the person macro layout inside the card for large avatars */
.person-card .person {
  display: flex;
  gap: 14px;
  align-items: flex-start; /* Aligns top of image with top of text */
  border-bottom: none;
  padding-bottom: 0;
  margin: 0;
}

/* Enforce 120px size and prevent flex-shrinking */
.person-card .avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 2px;
  background: #fff;
  flex: none; /* Stops flexbox from squishing the image */
}

.person-card .pinfo {
  flex: 1;
  min-width: 0; /* Prevents text overflow breaking the flex layout */
}

.person-card .bio {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
}

/* Media Queries */
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  
  #page {
    max-width: none;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }
  
  #header .name {
    font-size: 22px;
  }
  
  #header img.logo {
    height: 46px;
  }
  
  #nav a {
    padding: 7px 10px;
  }
  
  #nav li {
    flex: 1 1 auto;
    text-align: center;
  }
  
  .cols {
    flex-direction: column;
  }
  
  .cfwrap {
    flex-direction: column;
  }
  
  .coverflow {
    flex: none;
    width: 100%;
  }
  
  .cols .side {
    width: auto;
  }
  
  table.form th,
  table.form td {
    display: block;
    width: auto;
  }
  
  table.form th {
    padding-bottom: 0;
  }
  
  /* Calendar on phones: coloured dots, details in the list below */
  table.cal td {
    height: 50px;
    padding: 1px;
  }
  
  table.cal th {
    font-size: 10px;
  }
  
  a.ev {
    display: inline-block;
    width: 10px;
    height: 10px;
    padding: 0;
    margin: 1px;
    border-radius: 50%;
    font-size: 0;
    vertical-align: top;
  }
  
  .calnav .btn {
    padding: 3px 6px;
  }
}
