<?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_ee99ae01-fd9c-40a2-9cb2-3be9c609a119">
        <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:SubmissnTp
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_85a66482-b9c7-43fa-83c7-a97d990a9ddc">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_87eb659d-bb89-4824-be71-0d479efc2eaa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_8aaf1195-b533-4f78-aaae-329030869067">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_a69691cf-864d-46f7-b8d4-65354a82037f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_f9111f09-b37b-41d2-9dd0-99e4ae1ff815">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_04f81dae-7b82-4e9f-ad3a-c7781160d31f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_007c4029-2e6f-42a9-a22a-12cc911353ee">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_49383a6f-5ac3-41e3-b89c-b7d26f1de068">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_f3a54ca8-2c79-405b-aee0-27e19c397786">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      id="F_7c5569af-cb88-4db1-878c-fc5873ec703d">&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;1,235,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_ee99ae01-fd9c-40a2-9cb2-3be9c609a119"
      decimals="-3"
      id="F_a33721dc-3050-49b6-a876-209fd1a563cd"
      unitRef="U_USD">1235000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
