/*
Theme Name: 醫傳美emedia
Theme URI: https://emedia.example.com
Author: 醫傳美設計團隊
Author URI: https://emedia.example.com
Description: 醫美知識內容網站專屬主題。白底黑字 + 金色 #B89A68 重點色，襯線體（Noto Serif TC + Forum），編輯閱讀導向。Classic theme，搭配 ACF 管理 Hero 內容。
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emedia
Tags: editorial, magazine, blog, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/*
  本主題的視覺與互動樣式統一寫在 assets/css/main.css，
  並由 functions.php 透過 wp_enqueue_style 載入。
  本檔僅保留主題 metadata 與 WordPress 必要的最小重置。
*/

/* WordPress 內容對齊 class — 圖片插入文章時使用 */
.alignleft   { float: left;  margin: 0.5em 1.5em 0.5em 0; }
.alignright  { float: right; margin: 0.5em 0 0.5em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* 編輯器選取的 caption */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
}
.wp-caption-text {
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  color: var(--color-text-meta);
  text-align: center;
  margin-top: 0.5em;
}

/* 略過內容跳轉連結 — 鍵盤可存取 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--color-text);
  color: var(--color-text-inverse);
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* WordPress 必要的螢幕閱讀器隱藏 class */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--color-bg);
  clip: auto;
  clip-path: none;
  color: var(--color-text);
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
