<?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_e4b93d2e-e798-445d-92e3-4ab7887ca2e8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_83f21941-4fd2-473f-b0da-540c2564851c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_b67c48aa-39f5-411f-a5cb-ac12e14cf971">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_f6e7d280-ae46-45fb-afea-f095b936068d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_7f68b8d3-64ed-483d-a04e-c0638d724da7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_40be9681-acbe-4f20-80a7-2f708a225f0c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_4cb5b67e-2b6e-4faf-875f-93730db6b053">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_0c1fb165-ce71-401d-b6a8-3ccf5e1403b0">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_fcc0f90d-c3ca-4072-aa59-ed1099d58839">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_59097162-b1dd-44ee-b6e2-f789446ce628">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      id="F_4db30ae3-8634-4b2a-916a-735fb1509612">&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;730,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_e4b93d2e-e798-445d-92e3-4ab7887ca2e8"
      decimals="-3"
      id="F_ebd494c4-ed5b-4b59-8f54-306199db8bab"
      unitRef="U_USD">730000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
