<?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_5250f8f4-7027-48b6-827e-34d4cb3a5432">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_699e064a-74ca-43cb-b9a4-ec00836e479e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_147cb11b-a13a-40e8-9dc2-c1a94a09aa78">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_592737ed-45aa-435a-934f-82c2993258cb">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_5ae0b9c9-fed0-4a01-a3d7-76cb2a4497ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_5a1ace84-b121-4579-8a83-9330c01c64e1">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_88cff56a-77b8-402a-a1e5-3d3aacf9562f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_33db31de-596f-425a-be99-3ba56f9ee60f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_d8d81de3-05e0-460a-ab03-9567a2fb62ec">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_16eb7566-01bc-40dc-9366-9e2edfc172c9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      id="F_4662a1e5-c366-4df6-8c7a-b996fdf6416f">&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;2,000,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_5250f8f4-7027-48b6-827e-34d4cb3a5432"
      decimals="-6"
      id="F_6a228338-2676-4014-b08e-bc1659c2da0d"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
