/* Global stuff */
body {
  background: #656868;
  color: #000000;
  font-family: 'Lucida Grande', verdana, arial, sans-serif;
}

a { color: #ac5519; }
a:visited { color: #734f37; }
a:active, a:hover { text-decoration: underline; }

a.external {
  background: url("http://london.randomness.org.uk/static/images/external-link-brown.png") no-repeat scroll right center transparent;
  padding-right: 13px;
}

.hidden {
  display: none;
}

.label { /* Labels for form elements */
  font-weight: bold;
}

input.form_button, div.cancel_edit a { /* form buttons */
  font-weight: bold;
  font-size: 0.9em;
  color: #FCF8E3;
  background: #595A38;
  border: 1px solid #3A3B22;
}

/* Page structure */
div#body_wrapper {
  background: #F2E9BC;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 1.5em;
  border: 1px solid black;
}

#maincontent {
  float: left;
  width: 70%;
  padding-left: 1em;
}

#maincontent_no_navbar {
  padding-left: 1em;
}

#content_text {
  margin-bottom: 2.5em;
  line-height: 140%;
  max-width: 50em;
  margin-left: 0.5em;
}

/* Header/banner */
#banner {
  padding-left: 0.5em;
  margin-top: -1.35em;
  background: #595A38;
  color: #fff;
}

#banner h1 {
  padding-top: 0.5em;
  padding-left: 0.5em;
}

#banner a {
  color: #F1C969;
  font-size: 0.8em;
  text-decoration: none;
}

#banner h1 a:active, #banner h1 a:hover { text-decoration: none; }

/* Summary bar - which we actually use as more of a status bar */
div#summary {
  margin-left: -0.5em;
  padding-left: 0.5em;
  padding-top: 5px;
  background: #A5A162 url('http://london.randomness.org.uk/summary_bar.jpg') top left;
  color: #000000;
  height: 25px; /* Yes yes I know but there's an image to line up with. */
}

div.summary_bar_link {
  float: right;
  padding: 0 0.6em;
}

#banner div.summary_bar_link a {
  color: #000000;
}

#banner div.summary_bar_link a:hover, #banner div.summary_bar_link a:active { text-decoration: underline; }

div.summary_bar_username {
  float: left;
  font-size: 0.8em;
}

/* Footer */
#footer {
  font-size: smaller;
  text-align: right;
  padding-right: 1em;
}

#footer_delete_link { /* The delete-this-page link in the footer */
  display: none;
}

#search_form { /* The search form in the footer */
  display: none;
}

/* Navbar */
#navbar {
  float: right;
  color: black;
  background: #F1C969;
  width: 25%;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  border-left: 1px dotted #595A38;
  border-bottom: 1px dotted #595A38;
}

#navbar a {
  text-decoration: none;
  color: #000000;
}

#navbar a:hover, #navbar a:active {
  text-decoration: underline;
}

.navbar_site_name {
  display: none;
}

.navbar_group_title {
  font-weight: bold;
  font-size: 0.75em;
  color: #FCF8E3;
  background: #595A38;
  padding: 0.2em 1em;
  margin: 0 0.5em;
  border: 1px solid #3A3B22;
}

#navbar ul {
  font-size: 0.8em;
}

#navbar li {
  margin-left: -1.7em;
  list-style: none;
}

#nav_search {
  color: #333333;
  background: #F2E9BC;
  padding-left: 0.2em;
  margin-bottom: 0.2em;
  border: 1px solid #58078E;
  width: 9em;
}

#navbar_search form input.form_button {
  width: 2em;
  margin-bottom: 0.2em;
}

#navbar_current_version_link, #navbar_this_revision_info, #navbar_version {
  font-size: 0.7em;
  text-align: right;
  padding-right: 0.5em;
}

/* Node page - header */
div#redirect_message {
  display: none;
}

h2.node_name {
  color: #A0410D;
  font-style: italic;
  font-size: 1.2em;
  padding-top: 0.5em;
  margin-bottom: 0.2em;
}

div#title_edit_link {
  display: inline;
  font-size: 0.8em;
  padding-left: 0.5em;
}

span.current_version_title_link {
  display: block;
}

/* Node page - image */
div#node_image_box {
  float: right;
  padding: 0.5em;
  margin-top: 2em;
  margin-right: -0.5em;
  font-size: 0.8em;
  text-align: right;
}

div#node_image_box img {
  border: 1px solid #595A38;
}

div#node_image_copyright {
  text-align: right;
  margin-bottom: 0.2em;
}

div#node_image_copyright a {
  color: black;
}

/* Node page - metadata */

div#metadata {
  font-size: 0.85em;
  margin-left: -1em;
  padding-top: 1em;
}

ul#categories_and_locales {
  margin-top: 0;
  padding-top: 0;
}

ul#general_metadata {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

div#metadata ul li {
  list-style: none;
}

div#metadata ul li span.metadata_label {
  font-style: italic;
  margin-left: -1em;
}

/* Node page - within-content formatting */
div.last_verified, div.free_geodata, div.old_info, div.getting_here {
  font-size: 0.8em;
  line-height: 130%;
}

div.inline_hint {
  padding: 0.5em;
  margin-left: 1em;
  margin-bottom: 0.5em;
  float: right;
  width: 35%;
  font-size: 0.8em;
  border: 1px dotted #595A38;
}

div.old_info {
  clear: both;
  padding: 0.5em;
  border: 1px dotted #595A38;
}

a.photo:before {
  content: "[";
}

a.photo:after {
  content: "]";
}

/* Node page - location searches at bottom (nearest Tube etc) */
#location_stuff {
  clear: both;
  background: #F1C969;
  padding: 0.8em;
  font-size: 0.8em;
  border: 1px dotted #3A3B22;
}

#location_stuff select {
  background: #F2E9BC;
  border: 1px solid #58078E;
}

span#nearby_tube_text, span#nearby_tube_results {
  display: block;
  float: left;
}

span#nearby_tube_results span {
  padding-left: 0.5em;
  width: 20em;
}

div#walkit_link, div#gmaps_link {
  display: inline;
}

/* Node page - info at very bottom */
#coordinates { /* Coords at the bottom of the node content */
  font-size: 0.7em;
  padding-top: 0.4em;
}

#version { /* Version information at the bottom of the node content */
  display: none;
}

/* Front page - featured article */
div#featured_article {
  float: right;
  width: 240px;
  margin-left: 0.5em;
  margin-bottom: 0.5em;
  border: 1px dotted #595A38;
  margin-top: 1em;
}

div#featured_article_header {
  background: #F1C969;
  text-align: center;
  font-weight: bold;
  padding: 0.2em;
  border-bottom: 1px dotted #595A38;
}

img#featured_article_image {
  border-bottom: 1px dotted #595A38;
}

div#featured_article_image_copyright {
  text-align: right;
  font-size: 0.6em;
  padding: 0.2em 0.4em 0 0;
}

div#featured_article_blurb {
  text-align: center;
  padding: 0.5em;
  font-size: 0.8em;
}

#featured_article_title {
  display: inline;
  font-weight: bold;
}

/* News page */
div.news_comment {
  padding-top: 0;
  margin-top: -1em;
  text-align: right;
  font-size: 0.8em;
  padding-bottom: 0.5em;
  border-bottom: 1px dotted #595A38;
}

/* Recent changes */
#recent_changes_feeds {
  display: none;
}

h2.recentchanges_section_header {
  padding-top: 0.5em;
  margin-bottom: 0;
}

td.recentchanges_node_name, td.recentchanges_meta {
  padding-top: 1.5em;
  vertical-align: top;
}

.recentchanges_node_name {
  font-size: 0.8em;
  min-width: 12em;
  padding-right: 2em;
}

.recentchanges_meta, .recentchanges_user, .recentchanges_comment {
  font-size: 0.8em;
}

/* Locale pages - neighbouring postcodes/locales grid */
div.neighbouring_postcodes, div.neighbouring_locales_list {
  clear: both;
  font-size: 0.8em;
  border: 1px dotted #595A38;
  margin-left: 0.5em;
  margin-right: 0.5em;
  padding: 0.5em;
}

div.neighbouring_postcodes_grid {
  font-size: 0.8em;
  clear: right;
  float: right;
  text-align: right;
  margin-top: 1em;
  margin-left: 1em;
}

div.neighbouring_postcodes_grid table td {
  border:1px dotted #595A38;
  padding: 0.3em;
  text-align: center;
}

/* Map indexes */
div#map_index_canvas {
  height: 600px;
  margin-top: 1em;
}

div#map_index_node_list {
  float: right;
  width: 30%;
  height: 600px;
  overflow: auto;
}

div#map_index_node_list li {
  margin-left: -1em;
}

.leaflet-popup-tip {
  border: 1px solid #9c9c9c;
  position: relative;
  top: -1px;
}

/* Search page */
div.see_other_searches {
  text-align: right;
  font-size: 0.8em;
  padding-top: 0.5em;
  margin-bottom: -1em;
}

/* Diff view */
.diff1 { /* before */
  background-color: #F7A8A8;
}

.diff2 { /* after */
  background-color: #C1F7A8;
}

/* Create page */
div#create_new_page {
  padding-top: 2em;
}

div#create_new_page input#pagename {
  margin-top: 1em;
}

div.disallowed_characters_note {
  padding: 0.5em;
  margin-left: 1em;
  margin-bottom: 0.5em;
  float: right;
  width: 30%;
  font-size: 0.8em;
  border: 1px dotted #595A38;
  margin-top: 1em;
}

div.new_page_notes {
  padding: 1em;
  font-size: 0.9em;
}

/* Edit page */
div.edit_form_actions {
  text-align: center;
}

div.preview_edit, div.edit_form_actions div.cancel_edit {
  float: left;
  width: 33%;
}

div.commit_edit {
  float: right;
  width: 33%;
}

div.preview_actions div.cancel_edit {
  text-align: center;
  margin-top: -1em;
}

div.cancel_edit a {
  padding: 0.1em 0.4em;
  text-decoration: none;
}

div.jump_to_edit_form {
  clear: both;
  margin-top: 0.5em;
  font-size: 0.8em;
  float: left;
}

div.preview_actions {
  margin-bottom: 1em;
}

#maincontent.preview div#summary {
  background: #c9c885;
  margin-left: 0;
  font-size: 0.8em;
  font-style: italic;
  clear: both;
}

#maincontent.preview div#summary:before {
  content: "Summary: ";
}

#maincontent.preview h2 {
  text-align: center;
  margin-bottom: 1em;
}

#maincontent.preview {
  background: #c9c885;
  margin-bottom: 1em;
  float: none;
  margin: auto;
  padding: 0.5em 1em 0.5em 1em;
}

#maincontent.preview p {
  line-height: 140%;
}

h1.edit_form_title {
  text-align: center;
  font-size: 1.5em;
}

form.edit_page_form fieldset {
  margin: 1em;
}

fieldset legend {
  font-size: 0.9em;
}

div.edit_form_group {
  position: relative;
}

div.edit_form_group label {
  font-size: 0.8em;
  font-weight: bold;
}

div.edit_box textarea, input, select {
  border: 1px solid #000000;
}

div.edit_box textarea, div.edit_box input {
  width: 98%;
  padding: 0.2em;
}

div.edit_box textarea {
  margin-bottom: 1em;
}

div.edit_box input {
  margin-top: 0.1em;
  margin-bottom: 0.1em;
}

fieldset#openguides_information {
  margin-bottom: 0;
  padding-bottom: 0;
  margin-top: 0;
  padding-top: 0;
}

fieldset#main_information {
  clear: both;
}

div#locales_group {
  float: left;
  width: 45%;
}

div#categories_group {
  float: right;
  width: 45%;
}

fieldset#additional_information label {
  display: block;
  width: 23%;
  float: left; /* Labels on the left, fields on the right */
}

fieldset#additional_information div.edit_box {
  width: 72%;
  float: right;
}

div#summary_group, fieldset#additional_information div.edit_form_group {
  clear: both;
}

span.photo_note {
  font-size: 0.8em;
}

fieldset#openguides_information {
  clear: both;
  display: table;
}

fieldset#openguides_information div.edit_form_group {
  display: table-cell;
  padding: 0.5em;
  vertical-align: bottom;
}

div#username_group {
  width: 20%;
}

div#username_group label a {
  white-space: nowrap;
}

div#edit_type_group {
  width: 15%;
}

div.moderation_warning {
  text-align: center;
  border: 1px dotted #595A38;
  margin: 1em;
  padding: 1em;
}

/* Nodes needing photos */
div#total_photo_count_message {
  padding: 0.5em;
  margin-left: 1em;
  margin-bottom: 0.5em;
  background: #F1C969;
  float: right;
  width: 15%;
  font-size: 0.8em;
  border: 1px dotted #595A38;
}

/* Foodsearch and pubsearch */
div.criteria_search_group label {
  display: block;
  float: left;
  width: 25%;
}

div.criteria_search_box {
  float: right;
  width: 75%;
}

div.criteria_search_checkbox {
  clear: both;
  float: left;
  width: 5%;
}

div.criteria_search_checkbox_group label {
  display: block;
  float: right;
  width: 95%;
}

div.criteria_search_group, div.criteria_search_checkbox_group {
  clear: both;
}

div.criteria_category {
  clear: both;
  padding-top: 1em;
}

div.criteria_category_header {
  font-weight: bold;
}

div#vegan_friendly_group, div#food_style_group {
  padding-top: 1em;
}

div.criteria_search_submit {
  clear: both;
  padding-top: 1em;
}

dl.criteria_search_results dt {
  margin-left: 2em;
}

dl.criteria_search_results dd {
  font-style: italic;
  font-size: 0.9em;
}

/* Category search */
div.category_search_example {
  font-size: 0.8em;
  padding-top: 1em;
  text-align: right;
}

table.category_search_results {
  font-size: 0.9em;
}

table.category_search_results td {
  padding: 0.5em;
  padding-right: 0.5em;
}
