<?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_d28b3a31-cb48-4e7f-bed6-e34df56f33a5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_17cca4c0-1857-46cc-89d2-97c55319b8d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_ef1ec2d3-ff66-429d-a883-6db26f7bfcae">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_df2c9c45-5239-4687-aecb-bdf96707fd2e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_9a1d8af3-524b-4013-876d-f8aa02a0150f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_ca38cd92-4b1c-4e9a-b48c-5ec59732d0b0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_9b42a12a-0f64-4558-9ecb-3f5577e79615">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_2ee78ce6-772f-4d72-a40c-4245611d0848">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_082939ea-3222-45ac-9719-0142403907ed">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_bb71a78a-a786-484d-85d2-b807637570ce">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      id="F_338ffba9-3455-4e3d-8a9f-5a6e6c5e7195">&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;811,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_d28b3a31-cb48-4e7f-bed6-e34df56f33a5"
      decimals="-3"
      id="F_325e8a4f-7f3f-453d-82a4-a4eea20f220e"
      unitRef="U_USD">811000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
