<?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_700e6f38-cbd9-471f-a85e-c7d1e0ac7530">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_094f6c0e-6390-4a25-a478-7ff170d44ee1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_68cb48ed-4ffc-49f4-aa47-7344addc0ee9">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_2406499f-5d9a-4860-bd52-b65b246a35e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_d8efbd23-d3ef-47dd-9b9b-627b60f17f4a">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_60421edb-63b5-4da3-83ed-40ad8782a5a3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_eeb01558-95e3-4ee2-8615-a413d7b6b09c">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_e3c9515b-21bc-472b-b0ad-a26aa58cbeba">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_02429f8b-fcb4-47fa-847b-58319d405e1d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_ac1f0e22-f377-42fb-9d1f-6a7d50b427d1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      id="F_29bec579-33a6-41f8-b990-7475aef14540">&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;639,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_700e6f38-cbd9-471f-a85e-c7d1e0ac7530"
      decimals="-3"
      id="F_79b8b2a6-6a68-432b-a846-8f085fd8d10e"
      unitRef="U_USD">639000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
