<?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_ab02c881-789b-43a6-a08b-afddcd3edbc4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_f21dde72-3f54-4f64-b917-2adcdce73b48">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_0f3df6e4-bd72-4080-bd90-26537f196893">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_5d004d14-0211-4191-83fd-7f34dd118cdc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_d9445e5e-50a4-4825-a235-7598bb148f9c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_06a5f57d-d1b0-42fa-9a31-fae6130155c5">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_b08b55bc-f5da-4a2c-a59e-1e1874c010d9">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_9e49ba61-f22d-491c-b8c6-1e43265369cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_806afdef-ecb5-4af5-ae22-410ee87155d8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_04f77d40-1d7a-475e-af34-bc1dd52088ef">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      id="F_5309ced7-feaa-4049-b33d-6fe820e9ca73">&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;1,518,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_ab02c881-789b-43a6-a08b-afddcd3edbc4"
      decimals="-3"
      id="F_0711dfee-5695-44c3-926c-ab19f84bc016"
      unitRef="U_USD">1518000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
