<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_112e181c-0152-4c84-a72a-eb8cfff4e48a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_2e3c0be2-012e-459e-b85c-4187e6ce05a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_7f51d3ca-32a8-4b4d-8693-a86d5d629b1c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_5173943b-c00b-47ce-92f7-f028591593dc">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_0cd2341b-9a0c-44c7-9864-a9d5b0a13c3a">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_d9724c4b-4b6d-488b-9724-3e6c801ae1a8">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_9f62f50d-92f3-4aa6-b983-954f2e171301">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_8e0ae7a6-e853-4fa0-9418-6fa6f762ee6d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_be570128-68b3-4465-84fc-84a3157616ee">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_b0554fbe-c83a-4df5-aba4-0f2d7b954b4a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      id="F_c90b0109-8ff1-4cac-bfa3-b9f3248ae175">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;475,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_112e181c-0152-4c84-a72a-eb8cfff4e48a"
      decimals="0"
      id="F_ba9f13ea-d086-4c7f-b909-889136f681d9"
      unitRef="U_USD">475000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>