/* Ported from Hampton theme on cambrickyard.com — cleaned up. */

:root {
  --c-bg: #eeeeee;
  --c-text: #333333;
  --c-muted: #666666;
  --c-rule: #dddddd;
  --c-link: #336699;
  --c-accent: #a34438;
  --c-dark: #111111;
  --f-sans: Arial, Helvetica, sans-serif;
  --f-serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font: 1em/1.5 var(--f-sans);
  color: var(--c-text);
  background: var(--c-bg);
}

#page-wrapper {
  background: url(/assets/img/floral.png) 50% 140px no-repeat;
}

.width-wrapper {
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

a { color: var(--c-link); font-weight: bold; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 1em;
  font-family: var(--f-sans);
  line-height: 1.2;
}

p, ul, ol { margin: 0 0 1em; }

/* ---- Primary nav (the light top bar) ---- */

#secondary-links {
  height: 80px;
  line-height: 80px;
  background: #ffffff url(/assets/img/secondary-links-bg.png) top repeat-x;
  text-align: center;
  border-bottom: 1px solid var(--c-rule);
}
#secondary-links .menu {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
#secondary-links .menu li {
  display: inline;
}
#secondary-links .menu li a {
  padding: 0 12px 0 10px;
  font-size: 1.3em;
  color: var(--c-muted);
  border-right: 1px dashed #cccccc;
  letter-spacing: 0.1em;
  font-weight: normal;
}
#secondary-links .menu li.last a { border-right: 0; }
#secondary-links .menu li a:hover { color: var(--c-accent); text-decoration: none; }

/* ---- Masthead ---- */

#header-wrapper { border-top: 1px solid #ffffff; }
.header-wrapper-inner { padding: 30px 0; text-align: center; }
#site-name { letter-spacing: 12px; }
#site-name h1 {
  margin: 0;
  font: normal 4em/1.5 "Times New Roman", Times, serif;
  text-shadow: 1px 1px #ffffff;
}
#site-name h1 a { color: #333; font-weight: normal; }
#site-name h1 a:hover { text-decoration: none; }

/* ---- 3 featured cards (home only) ---- */

#top-user-regions .top-user-regions-inner {
  margin: 0 10px;
  background: url(/assets/img/drop-shadow.png) 50% 0 no-repeat;
  display: flex;
  gap: 0;
}
#top-user-regions .user-region { flex: 1 1 0; min-width: 0; }
#top-user-regions .user-region-inner {
  padding: 40px 10px;
  text-align: center;
  color: var(--c-muted);
  position: relative;
}
#top-user-regions .views-field-image img {
  display: block;
  width: 100%;
  aspect-ratio: 293 / 180;
  object-fit: cover;
}
#top-user-regions .views-field-view-node {
  position: relative;
  margin-top: -40px;
  margin-right: 10px;
  text-align: right;
  z-index: 2;
}
#top-user-regions .views-field-view-node a {
  display: inline-block;
  border: 3px solid #ffffff;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.85em;
  letter-spacing: 0.1em;
  font-weight: bold;
}
#top-user-regions .views-field-view-node a:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}
#top-user-regions .views-field-title {
  margin-top: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  font-size: 1.3em;
  color: var(--c-dark);
  font-weight: bold;
}
#top-user-regions .views-field-subtitle {
  font-style: italic;
  color: var(--c-muted);
  text-shadow: 1px 1px #ffffff;
}

/* ---- Social bar ---- */

.social-links .social-links-inner {
  margin: 0 10px 20px;
  padding: 10px;
  color: #999999;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  border-top: 7px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}
.social-links ul.social { margin: 0; padding: 0; list-style: none; }
.social-links ul.social li {
  display: inline;
  padding: 0 8px;
  vertical-align: middle;
}
.social-links ul.social li a {
  padding-left: 20px;
  color: var(--c-muted);
  background: left center no-repeat;
  font-weight: bold;
  letter-spacing: 0.1em;
}
.social-links .twitter a { background-image: url(/assets/img/twitter.png); }
.social-links .facebook a { background-image: url(/assets/img/facebook.png); }
.social-links ul.social li a:hover { color: var(--c-accent); text-decoration: none; }

/* ---- Middle wrapper / main content ---- */

#middle-wrapper { padding-bottom: 30px; }
#main-content-inner { margin: 0 10px; }

.breadcrumb {
  padding: 10px 0;
  font-size: 0.85em;
  color: var(--c-muted);
}
.breadcrumb a { color: var(--c-muted); font-weight: normal; }

h1.title {
  margin: 0.2em 0 0.8em;
  font-family: var(--f-serif);
  font-size: 2em;
  color: var(--c-dark);
  letter-spacing: 0.05em;
}

/* Welcome To Cambrick Yard block (home) */
.content-top { margin-bottom: 20px; }
.content-top .block-inner {
  padding: 20px;
  background: #dddddd;
  color: #444444;
  font-style: italic;
  font-family: var(--f-serif);
}
.content-top .block-inner h3.title {
  margin: 0 0 0.5em;
  color: var(--c-accent);
  font-weight: bold;
  font-style: normal;
  font-family: var(--f-sans);
  font-size: 1.2em;
  letter-spacing: 0.05em;
}

/* Article / teaser */
.node { margin-bottom: 30px; }
.teaser .title { font-family: var(--f-serif); letter-spacing: 0.05em; font-size: 1.5em; }
.teaser .title a { color: var(--c-dark); font-weight: normal; }
.teaser .title a:hover { color: var(--c-accent); text-decoration: none; }
.teaser .content {
  color: var(--c-muted);
  text-shadow: 1px 1px #ffffff;
}
.teaser .content p:last-child { margin-bottom: 0.5em; }
.teaser .links { text-align: right; }

.full-node .content {
  color: var(--c-text);
}
.full-node .content p {
  margin-bottom: 1em;
  line-height: 1.6;
}

/* Image frame (the multi-side border emboss) */
.field-field-image {
  float: left;
  margin: 5px 1em 0.5em 0;
  border: 1px solid #bbbbbb;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  background: #fff;
}
.field-field-image img { display: block; }

/* Smaller, thumbnail-sized image for home teasers */
.teaser-image { max-width: 200px; }
.teaser-image img { width: 200px; height: auto; }

/* Medium-sized hero image inside a full post body */
.full-node .field-field-image { max-width: 350px; }
.full-node .field-field-image img { width: 350px; height: auto; }

/* Read-more pill button */
.read-more {
  display: inline-block;
  margin: 0.5em 0;
  padding: 4px 14px;
  color: var(--c-muted);
  font-size: 0.85em;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(#fcfcfc, #e8e8e8);
  border: 1px solid #d2d2d2;
  border-bottom-color: #b4b4b4;
  border-radius: 10px;
  text-shadow: 1px 1px #ffffff;
}
.read-more:hover {
  background: #f9f9f9;
  text-decoration: none;
  color: var(--c-dark);
}

/* Jobs listing */
.jobs-group { margin-bottom: 1.5em; }
.jobs-group h3 {
  margin: 0 0 0.5em;
  font-family: var(--f-sans);
  font-size: 0.95em;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.jobs-list { margin: 0 0 1em; padding: 0; list-style: none; }
.jobs-list li {
  padding: 0.3em 0;
  border-bottom: 1px solid #f1f1f1;
}
.jobs-list li:last-child { border-bottom: 0; }
.job-loc { color: var(--c-muted); font-size: 0.9em; }
.job-new-badge {
  display: inline-block;
  margin-left: 0.4em;
  padding: 1px 6px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.7em;
  font-weight: bold;
  letter-spacing: 0.1em;
  border-radius: 3px;
  vertical-align: middle;
}
.jobs-new h3 { color: var(--c-accent); }

/* Author block on posts */
.author {
  margin-top: 2em;
  padding: 1.25em;
  background: #e6e6e6;
  border-top: 7px solid #cccccc;
  font-size: 0.95em;
  color: var(--c-muted);
  overflow: hidden;
}
.author h3 {
  margin: 0 0 0.5em;
  font-size: 1em;
  font-weight: bold;
  color: var(--c-dark);
  text-shadow: 1px 1px #ffffff;
}
.author-photo { float: left; margin: 0 1em 0.5em 0; }
.author-photo img { display: block; max-width: 80px; }

/* clearfix for any floated children */
.full-node .content::after,
.teaser::after,
.author::after { content: ""; display: block; clear: both; }

/* ---- Footer ---- */

#footer {
  padding: 20px 0;
  color: #444444;
  font-size: 0.8em;
  background: var(--c-dark);
  text-align: center;
}
#footer p { margin: 0; }
#footer a { color: #888; }

/* ---- Responsive ---- */

@media (max-width: 720px) {
  body { font-size: 0.95em; }
  #site-name { letter-spacing: 6px; }
  #site-name h1 { font-size: 2.4em; }
  #secondary-links { height: auto; line-height: 1; padding: 12px 0; }
  #secondary-links .menu li { display: block; padding: 8px 0; }
  #secondary-links .menu li a { border-right: 0; font-size: 1.1em; }
  #top-user-regions .top-user-regions-inner { flex-direction: column; }
  .field-field-image { float: none; margin: 0 0 1em; max-width: 100%; }
  .field-field-image img { width: 100%; height: auto; }
}
