<?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_76624239-b81d-4b27-9c3b-7a67780746ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_16a54385-29d6-4ccc-88fb-c44eccec0190">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_a3b13d83-d7fe-46ad-9014-adf954583ce5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_819fd87f-9243-4f88-b3d9-78d418728547">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_de0cdddc-042f-471f-9f9f-899fb2d995eb">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_fac13785-1016-4760-924c-69d757cbc43f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_f9646359-bc1a-48ce-986e-ed4138b0d07f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_1311c889-9b9a-4a39-877d-9fb82c2992be">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_02345723-5184-4959-b0c2-d0a5cf980638">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_176004f1-3643-4280-8145-702f49d915cd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_76624239-b81d-4b27-9c3b-7a67780746ad"
      id="F_59635d16-8406-4363-bc8d-19705a03addc">&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;3,813,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_76624239-b81d-4b27-9c3b-7a67780746ad"
      decimals="-3"
      id="F_f79b040a-ebcd-47bf-a959-95ad002ce747"
      unitRef="U_USD">3813000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
