<?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_fcb05197-534f-49bb-bde8-202fe5599a00">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-10</startDate>
            <endDate>2026-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_db208d79-d389-4671-beef-9c3c4957fe13">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_6d52cb85-c609-4ce3-af0e-c1da690f7508">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_70feef99-7627-43f7-82ff-e5c9bd03cd41">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_6158d2d7-5b9d-4b57-8064-a3e968849054">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_ec55d880-3a3f-453e-88c1-0cd206d042bc">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_a479dc28-fd5a-4b11-aeb0-5298b6e55c15">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_e2af334c-c125-47c4-a92b-29e6b0173b48">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_3843851d-f826-4c5b-811b-f46ed069141b">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_c79ad933-b568-4226-b879-b92f15e3e294">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fcb05197-534f-49bb-bde8-202fe5599a00"
      id="F_f7cee564-5650-4c6f-b244-dcfe8895dc97">&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_fcb05197-534f-49bb-bde8-202fe5599a00"
      decimals="-3"
      id="F_83f9016e-cf37-4e41-9a10-0b7481f56249"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
