<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_17d59da1-f82c-459b-b0b2-8adaefc3a717">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_092d6296-e897-4a54-886c-e53e8a9a7ee0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_0dc349b8-c420-484d-bfd6-a0151cd177b2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_0f73270c-bfd1-4279-a41e-1332038d9f53">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_ec26f76d-1449-41e9-9911-a07b8a3ede74">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_6d8f57ec-9135-492d-b033-1d398d15273f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_184fb629-252d-402d-a3d2-db0b8430740c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_dca7b255-8874-4278-ab00-f3e451f4222c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_29fc8480-918c-46fd-8b8a-c2975e21c52b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_c61c7fba-4b63-41ae-9371-bd12526ad973">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      id="F_5e2f7668-872c-4db9-b40c-f6cee62e034f">&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;13,493,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_17d59da1-f82c-459b-b0b2-8adaefc3a717"
      decimals="0"
      id="F_b36344a2-7a48-4a73-b5c0-1f20a7e97940"
      unitRef="U_USD">13493000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
