<?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_474289ed-51dd-4d34-8094-6e09029cbfa8">
        <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>
    <ffd:SubmissnTp
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_7f2c3cfb-de45-4cac-8207-6c32a167373e">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_357daed6-a07e-42a2-9f1e-098032126852">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_bf973780-2a3e-4473-b08c-0e3946997a0d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_a150db64-8a7a-4460-ba85-6c9b02304bde">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_b7f7b6cd-b01b-468d-a000-b96529997679">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_8acdb042-1510-4d43-a3ef-09c08b8afc41">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_49ff4eb9-80f1-4ad0-9286-0a04103f6ff9">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_f2202338-574d-4c4b-934a-1b229730fd4d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_d2802ed4-cdb1-4a49-a74e-e7cdce8717d7">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_474289ed-51dd-4d34-8094-6e09029cbfa8"
      id="F_7f7feffb-3604-478b-a59a-2bb3ba71722c">&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;9,000,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_474289ed-51dd-4d34-8094-6e09029cbfa8"
      decimals="-6"
      id="F_4cffac1f-0c96-4a4f-a4d5-024b94d815f9"
      unitRef="U_USD">9000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
