/* Readable text on the photo background (Selena 10-28, Bob: text colours are not right).
   Kept in its own file because acs-mobile.css is rewritten by the site builder on every run. */
#text-25 .textwidget div, #text-25 .textwidget div * { color:#fff !important; text-shadow:0 1px 3px rgba(0,0,0,.55); }
.sidelinks, .sidelinks em { color:#fff !important; text-shadow:0 1px 3px rgba(0,0,0,.85); }
#text-8 .textwidget, #text-8 .textwidget *:not(a), #text-8 strong { color:#fff !important; text-shadow:0 1px 3px rgba(0,0,0,.85); }
.sidelinks a, #text-8 a, #text-8 a *, #colophon a, #colophon .copy, .widget a, .textwidget a, .entry-content a, .post-content a, #content p a {
  color:#fff !important; text-shadow:0 1px 3px rgba(0,0,0,.85); }
#colophon, #colophon .copy { color:#fff !important; text-shadow:0 1px 3px rgba(0,0,0,.85); }
/* the pin label on the map keeps its own dark-on-white colours */
.acs-pin-label, .acs-pin-label * { color:#1c3d5a !important; text-shadow:none !important; }
#text-8 { clear:both; padding-top:30px; }

/* Tablet menu (481 to 900 px; phones at 480 and under keep the theme's Navigation drop-down, which works).
   Bob 11-01: no green bar across the page on the iPad; put the menu beside the bear logo and use the room for the page.
   The menu sits in the header to the right of the logo, in two columns on a soft blue panel; the page starts right under the photo.
   The two Process Server PDFs open on tap or hover. */
@media (min-width: 481px) and (max-width: 900px) {
  #branding { position: relative !important; }
  #branding .topPhone, .topPhone { position: absolute !important; top: 230px !important; left: 30px !important; right: auto !important; float: none !important; margin: 0 !important; width: 180px !important; text-align: center !important; font-size: 24px !important; line-height: 1.2 !important; z-index: 21 !important; text-shadow: 0 0 4px #000, 0 1px 3px #000 !important; }
  .topPhone a { color: #fff !important; }
  #menu-wrapper { position: absolute !important; top: -20px !important; left: 230px !important; right: 30px !important; width: auto !important; height: auto !important;
    padding: 0 !important; margin: 0 !important; background: transparent !important; z-index: 20 !important; }
  #main-menu, #menu-inner, .menu-middle, .menu-middle-inner { position: static !important; background: transparent !important; padding: 0 !important; margin: 0 !important;
    min-height: 0 !important; height: auto !important; width: auto !important; max-width: 100% !important; }
  .menu-left, .menu-right { display: none !important; }
  ul.sf-menu, ul.menu { display: flex !important; flex-wrap: wrap !important; align-content: flex-start !important; justify-content: flex-start !important;
    margin: 0 !important; padding: 0 12px !important; background: #889c72 !important; border-radius: 10px !important; width: auto !important; min-height: 180px !important; align-content: space-evenly !important; box-shadow: 0 2px 8px rgba(0,0,0,.35) !important; }
  ul.sf-menu > li, .menu > li, .nav > li { display: block !important; float: none !important; width: 50% !important; background: transparent !important; border-bottom: 0 !important; position: relative !important; margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; line-height: 1.2 !important; }
  ul.sf-menu > li > a, .menu > li > a, .nav > li > a { display: block !important; padding: 9px 10px !important; font-size: 14px !important; letter-spacing: .03em !important; line-height: 1.2 !important;
    text-transform: uppercase !important; color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.7) !important; }
  #menu-wrapper #main-menu #menu-inner .menu > li > a { padding: 11px 10px !important; line-height: 1.2 !important; font-size: 14px !important; font-weight: 700 !important; }
  #menu-wrapper .sub-menu a { font-weight: 700 !important; }
  li.menu-item-has-children > ul.sub-menu { display: none !important; }
  li.menu-item-has-children:hover > ul.sub-menu, li.menu-item-has-children:focus-within > ul.sub-menu {
    display: block !important; position: absolute !important; left: 0 !important; top: 100% !important; min-width: 220px !important; z-index: 9999 !important; }
  /* the page text was 10px on a tablet: make it readable, with room between the lines */
  #featured, #main, #bottom { font-size: 15px !important; }
  #main p, #main li, #main .textwidget, #featured p, #bottom p { font-size: 15px !important; line-height: 1.55 !important; }
}

/* Easier to read on a tablet or phone (Selena 11-01, Bob: "make the text easier to read"): stronger shadow behind the white copy,
   white text in the green document box, and light fields with dark text in the Contact Us form. */
@media screen {
  #main p, #main li, #featured p, #bottom p, #content p, .textwidget p, .entry-content { text-shadow: 0 0 3px rgba(0,0,0,.95), 0 1px 4px rgba(0,0,0,.95) !important; }
  .textwidget div[style*="889C72" i], .textwidget div[style*="889C72" i] * { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.75) !important; }
  .sidelinks, .sidelinks em { text-shadow: 0 0 3px rgba(0,0,0,.95), 0 1px 4px rgba(0,0,0,.95) !important; }
  #signUpForm h3, #signUpForm label { color: #fff !important; text-shadow: 0 0 3px #000, 0 1px 3px #000 !important; }
  #signUpForm input[type=text], #signUpForm input[type=email], #signUpForm input[type=tel], #signUpForm textarea {
    background: rgba(255,255,255,.93) !important; color: #16283a !important; border: 1px solid #1c3d5a !important; }
  #signUpForm ::placeholder { color: #4b5a68 !important; opacity: 1 !important; }
  #signUpForm input[type=submit], #signUpForm .wpcf7-submit { background: #1c3d5a !important; color: #fff !important; font-size: 16px !important; padding: 10px 20px !important; border: 1px solid #fff !important; text-shadow: none !important; }
}

/* Soft panels behind the copy (Selena 11-01, Bob: "we need a table" behind the text, and the text in the boxes darker).
   Tablet and phone only: a see-through dark-green panel behind the page text and each sidebar block, so white type reads over the photo and the photo still shows. */
@media screen {
  #main aside.widget .widget-inner, #main aside.widget .textwidget { background: transparent !important; }
  .textwidget div[style*="889C72" i] { background: #889C72 !important; }
  /* the form: dark, bigger type in the boxes */
  #signUpForm input[type=text], #signUpForm input[type=email], #signUpForm input[type=tel], #signUpForm textarea {
    background: #fff !important; color: #0e1c2b !important; font-size: 17px !important; font-weight: 600 !important; border: 2px solid #1c3d5a !important; text-shadow: none !important; }
  #signUpForm ::placeholder { color: #1c2b3a !important; opacity: 1 !important; font-weight: 600 !important; }
  #signUpForm input[type=text], #signUpForm input[type=email], #signUpForm input[type=tel] { min-height: 42px !important; }
}

/* One panel behind the main column of every inner page (Bob 11-01: "check each page and put the transparent dark green box behind them"),
   so pages without an article block (Feedback, Cart, Log in) get it too. The article inside it stays clear so the panel is not doubled. */
@media screen {
  /* the Contact Us page's own form (it is not in the sidebar widget) */
  #content .wpcf7-form input[type=text], #content .wpcf7-form input[type=email], #content .wpcf7-form input[type=tel], #content .wpcf7-form textarea {
    background: #fff !important; color: #0e1c2b !important; font-size: 17px !important; font-weight: 600 !important; border: 2px solid #1c3d5a !important; text-shadow: none !important; }
  #content .wpcf7-form ::placeholder { color: #1c2b3a !important; opacity: 1 !important; font-weight: 600 !important; }
  #content .wpcf7-form input[type=submit], #content .wpcf7-form .wpcf7-submit { background: #1c3d5a !important; color: #fff !important; font-size: 16px !important; padding: 10px 22px !important; border: 1px solid #fff !important; text-shadow: none !important; }
  #content .wpcf7-form label { color: #fff !important; text-shadow: 0 0 3px #000, 0 1px 3px #000 !important; }
  /* text that was too dim on the dark panel (address block on Contact Us) */
  #content p, #content li, #content td, #content h1, #content h2, #content h3, #content h4, #content span { text-shadow: 0 0 3px rgba(0,0,0,.95), 0 1px 4px rgba(0,0,0,.95); }
}

/* Home page (Selena 11-01): the whole text block sits in one panel (list, video, towns), links are light, and the video box is
   640 px wide again. acs-mobile.css forced it to the full width and let the player collapse, which left a big black box. */
@media screen {
  #homepagecontent a, #content a { color: #fff !important; font-weight: 600 !important; }
  .acs-video { max-width: 640px !important; width: 100% !important; margin: 12px 0 !important; }
  .acs-video iframe { position: absolute !important; inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; }
}

/* Panels only around the white text (Selena 11-01, Bob: the big boxes hid the background; "just put it around the white text").
   Each paragraph, list, heading and sidebar note gets its own see-through dark-green panel, as wide as its text needs, so the photo shows everywhere else. */
@media screen {
  #content p:not(:empty):not(:has(img)):not(:has(iframe)):not(:has(.acs-video)), #content ul, #content ol, #content h1, #content h2, #content h3, #content h4,
  #content table, .sidelinks, #signUpForm h3, #content .wpcf7-form > p, .element-slogan .slogan-text {
    background: rgba(18,38,28,.30) !important; border-radius: 10px !important; padding: 8px 12px !important; width: fit-content !important; max-width: 100% !important; box-sizing: border-box !important; }
  #content ul, #content ol { padding-left: 30px !important; }
  #content li, #content li p, #content ul p, #content ol p, #content table p, #content .wpcf7-form > p p { background: transparent !important; padding: 0 !important; }
  #content p { margin: 8px 0 !important; }
  #main aside.widget, #main aside.widget .widget-inner, #main aside.widget .textwidget { background: transparent !important; padding: 0 !important; }
  #main aside.widget { margin-bottom: 14px !important; }
  .textwidget div[style*="889C72" i] { background: #889C72 !important; }
}

/* Contact Us fields (Selena 11-01, Bob: the white boxes look out of place): same light dark-green glass as the text panels,
   white bold type, so they sit in the page and the photo shows through. Later in the file than the white-field rules, so it wins. */
@media screen {
  #signUpForm input[type=text], #signUpForm input[type=email], #signUpForm input[type=tel], #signUpForm textarea,
  #content .wpcf7-form input[type=text], #content .wpcf7-form input[type=email], #content .wpcf7-form input[type=tel], #content .wpcf7-form textarea {
    background: rgba(18,38,28,.38) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.75) !important; border-radius: 8px !important;
    font-size: 17px !important; font-weight: 600 !important; text-shadow: 0 1px 3px rgba(0,0,0,.9) !important; }
  #signUpForm ::placeholder, #content .wpcf7-form ::placeholder { color: #fff !important; opacity: .95 !important; font-weight: 600 !important; text-shadow: 0 1px 3px rgba(0,0,0,.9) !important; }
  #signUpForm textarea, #content .wpcf7-form textarea { min-height: 120px !important; height: 140px !important; }
  #signUpForm input[type=submit], #signUpForm .wpcf7-submit, #content .wpcf7-form input[type=submit], #content .wpcf7-form .wpcf7-submit {
    background: rgba(18,38,28,.55) !important; color: #fff !important; border: 1px solid #fff !important; border-radius: 8px !important; }
  .acs-cf-msg { background: rgba(18,38,28,.7) !important; color: #fff !important; text-shadow: 0 1px 3px #000 !important; }
}

/* Dim grey text inside the page (address block on Contact Us, testimonial quotes) was hard to read: make it white with a shadow on tablets and phones. */
@media screen {
  #content :not(input):not(textarea):not(button):not(a):not(img):not(svg):not(select):not(option) { color: #fff !important; text-shadow: 0 0 3px rgba(0,0,0,.95), 0 1px 4px rgba(0,0,0,.95) !important; }
}

/* Shop notices keep their own light box, so their text stays dark. */
@media screen {
  #content .woocommerce-info, #content .woocommerce-info *, #content .woocommerce-message, #content .woocommerce-message *, #content .woocommerce-error, #content .woocommerce-error * { color: #16283a !important; text-shadow: none !important; }
}

/* Desktop too (Bob 11-01, photo of the Services page on his monitor): readable type, same panels, glass fields. */
@media screen {
  #featured, #main, #bottom { font-size: 15px !important; }
  #content p, #content li, #content td, #content .textwidget p { font-size: 15px !important; line-height: 1.55 !important; }
}

/* Headings and lists inside page bodies (new pages made with make_page.py use them) */
#content .entry-content h2 { font-size: 1.35em !important; font-weight: 700 !important; margin: 18px 0 6px !important; }
#content .entry-content h3 { font-size: 1.1em !important; font-weight: 700 !important; margin: 12px 0 4px !important; }
#content .entry-content ul.wp-block-list { list-style: disc !important; padding-left: 34px !important; }
#content .entry-content ol.wp-block-list { list-style: decimal !important; padding-left: 34px !important; }
#content .entry-content li { margin: 5px 0 !important; }
#content .acs-draft, #content .acs-draft * { color: #431407 !important; text-shadow: none !important; }

/* Steve 11-02: the Location box on the photo is white */
#text-2 .textwidget, #text-2 .textwidget *, #text-2 h3, #text-2 a { color:#fff !important; text-shadow:0 1px 3px rgba(0,0,0,.85); }

/* Steve 11-02 (note C-3CA44B): the Location text on the home page is all white, links included */
#text-8 .textwidget, #text-8 .textwidget *, #text-8 h3, #text-8 .textwidget a, #text-8 a { color:#fff !important; text-shadow:0 1px 3px rgba(0,0,0,.85); }

/* Steve 11-02: where text is white it is all the same white; body links keep an underline so they still read as links */
.entry-content a, .post-content a, #content p a, #content li a, #homepagecontent a { color:#fff !important; text-decoration: underline !important; }

/* Steve 11-02 (note C-5D638A): the phone number at the top is red */
.topPhone, .topPhone a, #header-phone-area .topPhone a { color:#d40000 !important; font-weight:700 !important; text-shadow:0 0 3px #fff, 0 0 6px rgba(255,255,255,.9) !important; }
