<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-13</startDate>
            <endDate>2025-11-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_d6365766-e895-41f2-87f7-7ec673652186">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_ade291d6-7828-4671-9338-31b5a43d7af0">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_ea5ed9f5-b367-417b-816d-04e593abc6d8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_56bf8a8c-ee05-4f3a-90a2-592bede4da35">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_08021470-3222-487d-9a28-a09ced1ad6ff">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_8f67dcbc-cd30-44d0-9136-dad9778d9517">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_7cc42313-bf51-4cef-a2e7-0a64be1bd56e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_f88e3d8d-9d2b-4486-aeca-79ce518fc782">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_cfef6ffa-9df2-48aa-9306-1c76efca478b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      id="F_c874ce2c-2c1c-4b66-b5ff-76a8c26c49c3">&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;419,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_9bac0d5e-f71d-43a8-a3d8-7d4fdc9b25ed"
      decimals="0"
      id="F_8d158bcd-496f-4bb5-ae89-fbcc5002bd63"
      unitRef="U_USD">419000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
