<?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_d6e33772-431c-4bcd-926a-807cdd781bfa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_72ed3326-1529-4761-9459-60ea2fc29493">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_6d020a8a-b8ef-4232-a66d-069d52f0a911">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_c4986b7e-c191-4c58-86a5-ac0511c27532">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_68cfddb3-2ff5-4db9-8781-ec791bdf8052">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_886127b6-4c43-4da7-a4d9-a2dcbe3d5fe6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_ee7fb8b3-c89a-4274-b1a8-19c719bd175c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_e43acae9-0377-420f-85d7-f0d65baf1c55">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_426a9d95-3cf5-4405-9509-1aac2f31f0bb">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_6dc68358-3d7b-4c78-8f31-59debf4e99b4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d6e33772-431c-4bcd-926a-807cdd781bfa"
      id="F_a3f5132a-5895-4fb3-9a54-7ada14f5cd45">&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,951,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_d6e33772-431c-4bcd-926a-807cdd781bfa"
      decimals="-3"
      id="F_e36687d6-11fb-4a3a-8e88-bb9131dd285d"
      unitRef="U_USD">1951000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
