<?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_7be8c6cb-e649-4bde-a0c6-14840bf53057">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_b7ccf1ff-1c40-4c2c-adf9-19c19fcf1e34">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_07e96fdd-c483-46f3-8837-7dd0bacafd9e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_77bb882c-445e-46f9-9f0f-bcdcde293b3c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_e01fe94f-8b40-4116-8e53-ab0aa5c1ede9">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_37af8cd9-7159-4e0e-a9e2-515db038492b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_98c1f6f4-34de-4208-ac7c-da6bc9bdffa5">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_925c6259-3846-4821-93b0-97ce8f4c691f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_deccdd7f-c843-48fa-8995-145c8882f3e9">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_37b96d49-f1f3-4b31-be68-a600ff32cdd3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      id="F_72991823-d225-4a2a-bfc5-d2155ff08f35">&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;7,122,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_7be8c6cb-e649-4bde-a0c6-14840bf53057"
      decimals="-3"
      id="F_fa84ab37-bc30-4728-8568-99421abd3d34"
      unitRef="U_USD">7122000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
