<?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_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-23</startDate>
            <endDate>2026-03-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_6af9e8a4-1fd7-4899-a48a-532146be804d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_c41dcf95-7aa2-45ff-98d4-3b191a6308fe">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_2e34c979-a348-4333-ba30-99db19030540">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_c76e787f-a1ba-457e-99b3-b3abf70d39d3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_53eda506-da3b-4669-9244-c509fdb2aa9b">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_75c093f9-4e29-48d2-98ae-dbcad40162a4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_bb12c25a-4870-4f43-ace1-b3f36c4d210b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_b5a5544c-59e4-4a62-8b6c-05d3276124d4">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_1e742d06-6ce4-408c-8c33-5248594aca0f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      id="F_91f37481-7239-4674-9878-00b289d410b9">&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;500,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_ce33ca0f-9675-4b51-b7f0-0b5d6b1b1fb8"
      decimals="0"
      id="F_76e25d02-cb5d-400b-88a9-ff59a2cc8948"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
