<?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_82fb1f5d-66ed-4b7a-b986-8ba226b3582e">
        <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_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_afa123b3-571c-41a6-9dc9-c499cfec73fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_65c895cc-1817-44d3-a53a-a426469f88e1">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_13a2f31c-6721-47f7-b144-946a43b46b5f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_0240445a-f0a2-4e08-8136-098378f24100">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_ee2b509f-17a2-445d-9e48-50aca174ed9f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_d678b125-b3fe-471e-99d1-2ee344bb3f66">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_ef21b1c5-7df0-4b75-8066-1a1bbe1cd714">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_5cc3ab83-0a90-4d5f-910f-06c1c0d85211">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_78204fa7-00f5-4342-b404-743c4d4bc6fb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      id="F_aee38c95-9f2c-4e97-a6b7-a869f407fa67">&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;500,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_82fb1f5d-66ed-4b7a-b986-8ba226b3582e"
      decimals="-3"
      id="F_6b7f2f9d-9303-4c69-9e15-743fab0bca35"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
