/*
Theme Name: ORRIS Shaanxi
Theme URI: https://orris.cn
Author: Shaanxi Orris Demonstration Base
Author URI: https://orris.cn
Description: Custom theme for the Shaanxi Orris Demonstration Base. The page designs live in the templates; the words and photographs live in WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orris
*/

/* ------------------------------------------------------------------
   The site design itself is in assets/css/site.css (unchanged from the
   static build). This file only holds what WordPress needs on top of it:
   menu markup, editor images, article typography, the admin bar.
   ------------------------------------------------------------------ */

/* 1. WordPress menu output: <li> inside <nav class="nav"> */
.nav > li { list-style: none; margin: 0; padding: 0; }
.nav > li > a { display: inline-block; }
.nav > li.menu-item-has-children > a::after { content: ""; }

/* 2. Admin bar pushes the sticky header down */
.admin-bar .site-head { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-head { top: 46px; }
}

/* 3. Honeypot field on the enquiry form — invisible to people, visible to bots */
.hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }

/* 4. Inline images coming out of the editor */
.entry img, .prose img { border-radius: 3px; }
.wp-block-image figcaption,
.entry figcaption {
  font-size: 13px; color: var(--muted); margin-top: 10px;
  border-left: 2px solid var(--clay); padding-left: 12px;
}
.alignwide { max-width: 1240px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }

/* 5. Article pages (/journal/...) */
.prose { max-width: 76ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .55em; }
.prose h3 { font-size: 1.2rem; margin: 1.7em 0 .5em; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  border-left: 3px solid var(--gold); margin: 1.6em 0; padding: 4px 0 4px 20px;
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1.6em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-d); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--tint); padding: 1px 5px; border-radius: 2px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.post-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-top: 1px solid var(--line); padding: 22px 0; }
.post-list h3 { font-size: 1.25rem; margin-bottom: 6px; }
.post-list p { color: var(--ink-2); font-size: 15px; }

/* 6. Search / 404 helpers */
.search-form { display: flex; gap: 10px; max-width: 520px; }

/* 7. Print — keep the price list and spec tables readable on paper */
@media print {
  .site-head, .site-foot, .nav, .cta-bar { display: none !important; }
  body { background: #fff; }
}
