<?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_913df73d-d715-4e29-87c1-1a4d7358240f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_48122fbd-e4a6-4f38-8275-b72a3b64725d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_57c46e34-14f0-4a24-8544-f6bf9f153529">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_d8194563-61b9-4a90-8064-aab42f461bcb">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_9741f8d3-5d86-4516-ab43-437e612ceaf0">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_81afddb2-8f54-4de1-89e9-20cb3d59654e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_43efa269-ff87-4cc8-8fe8-96fcabf43b03">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_be0db5ae-f9ff-4967-b6e5-44cd15c708df">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_e8cd10bd-4013-46e7-a32c-546575464fda">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_58fd667d-d9ed-4598-90f4-23a0167c3429">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_913df73d-d715-4e29-87c1-1a4d7358240f"
      id="F_f1e74a38-2db4-4cfa-8c24-8cda4bbb8838">&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;17,351,300&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_913df73d-d715-4e29-87c1-1a4d7358240f"
      decimals="0"
      id="F_fb43c71a-2fae-42ea-b7eb-bdd7e3e29dce"
      unitRef="U_USD">17351300</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
