<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_02a36318-8f22-45d4-a727-7d53a430c641">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_b1960c31-3e5b-4198-b46a-4677144f7255">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_5e97e069-a180-47be-80dc-27c406b7284f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_f2b26eb9-0ac5-45fe-812c-3a481f365ff6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_83292d76-a7e9-4cee-bf6c-19ef969ea2b8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_50dd8a69-64e3-4a71-8207-2a8f2939b987">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_a61f89e5-6403-4492-9a6b-3385e447c0c0">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_f0745885-793e-4ac8-abad-81c4fa64db2c">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_6280a513-c335-4a9c-b228-b63ca4fe6901">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_ca165ddb-3209-402a-a0d7-c8a40fc226a9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_02a36318-8f22-45d4-a727-7d53a430c641"
      id="F_9bc7ba64-e609-4f43-b495-de88de806af6">&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;3,409,000.00&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_02a36318-8f22-45d4-a727-7d53a430c641"
      decimals="2"
      id="F_4b0c2a49-082e-4be2-8ee2-0769608c10be"
      unitRef="U_USD">3409000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
